UNPKG

react-native-multicolor-progress-bar

Version:

This package allows the user to use different colours to display multiple items in a single linear progress bar

30 lines (29 loc) 715 B
import {StyleSheet} from 'react-native'; import { colors } from '../commons'; export const styles = StyleSheet.create({ parentView: { flexDirection: 'column', justifyContent: 'flex-start', alignItems: 'stretch' }, bar: { flexDirection: 'row', justifyContent: 'flex-start', alignItems: 'stretch', backgroundColor: colors.light_grey, borderRadius: 8.5, height: 12 }, onStartProgressStyle:{ borderTopLeftRadius: 8.5, borderBottomLeftRadius: 8.5, }, onEndProgressStyle: { borderTopRightRadius: 8.5, borderBottomRightRadius: 8.5 }, textStyle: { fontSize: 10, textAlign: 'center' } })