react-native-phone-number-input
react-native-phone-number-input copied to clipboard
React Native component for phone number.
Default Value prop is not working for me. Please help me! { setPhoneNum(text); }} // onChangeFormattedText={(text) => { // setFormattedValue(text); // }} />
Hello the package is very useful so far but I just need to know how to set the country code after the component has already rendered. For example if I...
Once again thanks for the library. I was testing this on my app and realized when I go the page which has this component in, when the number is loaded,...
I have a formatted number and I want to set this as the value (or defaultValue, either), for an edit screen. However, I cannot set the original phone number in...
Instead of a number looking like `+12353535353` It would be nice if it would show up as ` +1 (555) 555-1234` while the user is typing in real time. Thank...
I know to save on the size we are using native country flags here. To make this library more usable I think we need to consider adding custom flags. Current...
When i try to render a text input I receive the following error message: ``` error: Error: While trying to resolve module `react-async-hook` from file `.../node_modules/react-native-country-picker-modal/lib/Flag.js`, the package `.../node_modules/react-native-country-picker-modal/node_modules/react-async-hook/package.json` was...
{ setValue(text); }} onChangeFormattedText={text => { setFormattedValue(text); setCountryCode(phoneInput.current?.getCountryCode() || ''); }} countryPickerProps={{withAlphaFilter: true}} // withDarkTheme withShadow autoFocus flagButtonStyle={{ backgroundColor: '#000', }} containerStyle={{height: 60, borderRadius: 15}} textContainerStyle={{ borderTopRightRadius: 15, borderBottomRightRadius: 15,...
This is PR includes AsYouTypeFormatter and also adds to it ComponentDidUpdate to keep up with changes of countryCode. `npm install https://github.com/akhan118/react-native-phone-number-input.git --save `
Hi! 👋 Firstly, thanks for your work on this project! 🙂 Today I used [patch-package](https://github.com/ds300/patch-package) to patch `[email protected]` for the project I'm working on. Here is the diff that solved...