This is code for full phone number input (with country code) with search feature. It depends on Popular react-native-elements project.
Just download FullPhoneNumber.js
file along with countryCodes.json
. And use it like this
<FullPhoneNumber
onChangeText={(text)=>{
console.log(text)
}}
errorMessage=''
/>
You can change the path of the countryCodes.json
in componentDidMount
method in FullPhoneNumber.js
.