UNPKG

react-native-phone-number-input-formatted

Version:
64 lines (62 loc) 1.37 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: 400, height: 50, backgroundColor: 'white', flexDirection: 'row', justifyContent: 'center', }, flagButtonView: { width: 35, height: '100%', 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: { backgroundColor: '#F8F9F9', textAlign: 'left', flexDirection: 'row', alignItems: 'center', }, codeText: { margin: 7, fontSize: 16, fontWeight: '500', textAlign: 'center', color: '#000000' }, numberText: { width: 150, fontSize: 16, color: '#000000' }, }); export default styles;