How to get own cell phone number suggestion on EXPO like this photo? Photo
CodePudding user response:
You cannot, as this would be a pretty big privacy concern. Just ask the use to enter the number if that's what you're after.
CodePudding user response:
You can do that like, save every phone number to the list of AsyncStorage or redux-persist (if you're using redux) whenever you hit the submit with entered phone number, push that item to the list of AsyncStorage.
With that, create a Modal
like the above image and made that enable every time you focus on TextInput
and when the AsyncStorage
is not empty, then you'll get the result like this.
Hope this works for you.