UNPKG

react-native-dropdown-picker-plus

Version:

A single / multiple, categorizable, customizable, localizable and searchable item picker (drop-down) component for react native which supports both Android & iOS.

171 lines (167 loc) 3.33 kB
import { StyleSheet } from 'react-native'; import Colors from '../../constants/colors'; export const ICONS = { ARROW_DOWN: require('./icons/arrow-down.png'), ARROW_UP: require('./icons/arrow-up.png'), TICK: require('./icons/tick.png'), CLOSE: require('./icons/close.png'), }; export default StyleSheet.create({ arrowIcon: { height: 20, width: 20, }, arrowIconContainer: { marginLeft: 10, }, badgeDotStyle: { backgroundColor: Colors.GREY, borderRadius: 10 / 2, height: 10, marginRight: 8, width: 10, }, badgeSeparator: { width: 5, }, badgeStyle: { alignItems: 'center', backgroundColor: Colors.ALTO, borderRadius: 10, flexDirection: 'row', paddingHorizontal: 10, paddingVertical: 5, }, closeIcon: { height: 30, width: 30, }, closeIconContainer: { marginLeft: 10, }, container: { width: '100%', }, customItemContainer: {}, customItemLabel: { fontStyle: 'italic', }, dropDownContainer: { backgroundColor: Colors.EBONY_CLAY, borderColor: Colors.BLACK, borderRadius: 8, borderWidth: 1, overflow: 'hidden', position: 'absolute', width: '100%', zIndex: 1000, }, extendableBadgeContainer: { flexDirection: 'row', flexWrap: 'wrap', flex: 1, }, extendableBadgeItemContainer: { marginEnd: 7, marginVertical: 3, }, flatListContentContainer: { flexGrow: 1, }, iconContainer: { marginRight: 10, }, itemSeparator: { backgroundColor: Colors.SHUTTLE_GREY, height: 1, }, label: { color: Colors.HEATHER, flex: 1, }, labelContainer: { flex: 1, flexDirection: 'row', }, listBody: { height: '100%', }, listBodyContainer: { alignItems: 'center', flexGrow: 1, }, listChildContainer: { paddingLeft: 40, }, listChildLabel: {}, listItemContainer: { alignItems: 'center', flexDirection: 'row', height: 40, justifyContent: 'space-between', paddingHorizontal: 10, }, listItemLabel: { color: Colors.HEATHER, flex: 1, }, listMessageContainer: { alignItems: 'center', flex: 1, justifyContent: 'center', padding: 10, }, listMessageText: { color: Colors.HEATHER, }, listParentContainer: {}, listParentLabel: {}, modalContentContainer: { backgroundColor: Colors.EBONY_CLAY, flexGrow: 1, }, modalTitle: { color: Colors.HEATHER, fontSize: 18, }, searchContainer: { alignItems: 'center', borderBottomColor: Colors.SHUTTLE_GREY, borderBottomWidth: 1, flexDirection: 'row', padding: 10, }, searchTextInput: { borderColor: Colors.SHUTTLE_GREY, borderRadius: 8, borderWidth: 1, color: Colors.WHITE, flexGrow: 1, flexShrink: 1, margin: 0, paddingHorizontal: 10, paddingVertical: 5, }, selectedItemContainer: {}, selectedItemLabel: {}, style: { alignItems: 'center', backgroundColor: Colors.EBONY_CLAY, borderColor: Colors.BLACK, borderRadius: 8, borderWidth: 1, flexDirection: 'row', justifyContent: 'space-between', minHeight: 50, paddingHorizontal: 10, paddingVertical: 3, width: '100%', }, tickIcon: { height: 20, width: 20, }, tickIconContainer: { marginLeft: 10, }, });