UNPKG

react-native-phone-number-input

Version:
65 lines (63 loc) 1.34 kB
import {StyleSheet, Dimensions} from 'react-native'; const {width: viewportWidth, height: viewportHeight} = Dimensions.get('window'); function wp(percentage) { const value = (percentage * viewportWidth) / 100; return Math.round(value); } function hp(percentage) { const value = (percentage * viewportHeight) / 100; return Math.round(value); } const styles = StyleSheet.create({ container: { width: wp(80), backgroundColor: 'white', flexDirection: 'row', }, flagButtonView: { width: wp(20), height: '100%', minWidth: 32, justifyContent: 'center', flexDirection: 'row', alignItems: 'center', }, flagButtonExtraWidth: { width: wp(23), }, shadow: { shadowColor: 'rgba(0,0,0,0.4)', shadowOffset: { width: 1, height: 5, }, shadowOpacity: 0.34, shadowRadius: 6.27, elevation: 10, }, dropDownImage: { height: 14, width: 12, }, textContainer: { flex: 1, backgroundColor: '#F8F9F9', paddingHorizontal: wp(4), paddingVertical: hp(2), textAlign: 'left', flexDirection: 'row', alignItems: 'center', }, codeText: { fontSize: 16, marginRight: 10, fontWeight: '500', color: '#000000', }, numberText: { fontSize: 16, color: '#000000', flex: 1, }, }); export default styles;