garganurag893 / react-native-phone-number-input

React Native component for phone number.
MIT License
372 stars 212 forks source link

Keyboard not opening on iOS 13 #162

Open apple-blossom opened 2 months ago

apple-blossom commented 2 months ago

I'm using react-native-phone-number-input ^2.1.0, works fine on Android, on iPhone not opening keyboard after clicking on the field

iOS version: 13

Component usage:

<PhoneInput
         defaultCode ='US'
         backgroundColor = 'white'
         containerStyle = {{
                               width: '100%',
                               height: 50,
                               fontSize : 60,
                               fontWeight : 'bold',
                               marginTop : -5,
                               borderBottomWidth: 2,
                               borderBottomColor: mainColor,
                              }}
         textContainerStyle={{ backgroundColor: 'white', borderBottomColor: 'white', marginTop : -5, }}
         textInputProps = {{showSoftInputOnFocus: false}}
         autoFocus={false}
         onChangeFormattedText={setValue}
         value={props.value}
         onChangeText={setValue}
         placeholder={props.placeholder}
       />