import { Dimensions, StyleSheet } from 'react-native' import R from '../../res' const { width: sWidth, height: sHeight } = Dimensions.get('window') const DIALOG = { width: sWidth * 0.8, maxHeight: sHeight * 0.5, minHeight: sHeight * 0.2, } export const DropdownMaterialStyles = StyleSheet.create({ rootContainer: { width: '100%', height: 45, marginBottom: 32, }, button: { height: '120%', }, icon: { height: 14, width: 14, resizeMode: 'contain', tintColor: R.colors.white, }, label: { color: R.colors.black, fontSize: 16, }, modalContainer: { flex: 1, backgroundColor: 'rgba(0,0,0,0.8)', }, modalBackgroundTouchable: { width: '100%', height: '100%', justifyContent: 'center', alignItems: 'center', }, dialog: { backgroundColor: R.colors.white, paddingVertical: 16, borderRadius: 2, alignItems: 'center', justifyContent: 'center', width: DIALOG.width, maxHeight: DIALOG.maxHeight, shadowColor: R.colors.black, shadowOffset: { width: 3, height: 2, }, shadowOpacity: 0.3, shadowRadius: 3, }, flatListContainer: { width: DIALOG.width, }, }) export const DropdownListItemStyles = StyleSheet.create({ rootContainer: { paddingVertical: 4, minWidth: 100, alignItems: 'center', }, button: { width: '100%', minHeight: 35, justifyContent: 'center', alignItems: 'center', backgroundColor: R.colors.white, paddingHorizontal: 8, }, buttonSelected: { width: '100%', minHeight: 35, justifyContent: 'center', alignItems: 'center', backgroundColor: R.colors.tint, paddingHorizontal: 8, }, text: { fontSize: 18, fontWeight: '600', textAlign: 'center', color: R.colors.black, }, })