thegamenicorus / react-native-phone-input

Phone input box for React Native
https://www.npmjs.com/package/react-native-phone-input
MIT License
394 stars 447 forks source link

No onSubmitEditing action or event? #21

Closed evanjmg closed 6 years ago

evanjmg commented 6 years ago

Is there anyway for the use to confirm that they are done typing the number?

andwaal commented 6 years ago

You got two options, use the textComponent props and pass your own TextInput element or you can use the textProps where you can pass down the onSubmit event:

   textProps={{
            returnKeyType: "done",
            onSubmitEditing: () => console.log("onSubmit")
          }}