react-native-sim-data
react-native-sim-data copied to clipboard
App gets Sim data on second load
Install the app on your phone and you wont get the Sim details at first load. Kill the app and reopen or reload it then only you will get the Sim data.
I am facing the same problem. Did anyone got solution for that?
im using react-native-restart for this problem.
after granted permission, then rnrestart.
Did you find any solution ?
Same problem here to
it's a chicken / egg problem: the code (which is a constant) is evaluated on app load, but if the permissions were not granted, it fails to update. the code could be changed to re-evaluate at every call