react-native-sim-data icon indicating copy to clipboard operation
react-native-sim-data copied to clipboard

Returns NULL in Android 10

Open gitnasr opened this issue 5 years ago • 6 comments

Device: Honor 10 Lite SIM: 2 sim card Permission: Granted Result: Returns Null

gitnasr avatar Sep 04 '20 13:09 gitnasr

does it work after restarting? lot of people are having problems with this lately #13 #1

pocesar avatar Sep 04 '20 16:09 pocesar

nope. not working even after clean the cache and reinstall Node Modules.

gitnasr avatar Sep 07 '20 21:09 gitnasr

I met the same problem,phoneNumber0 is null, but phoneNumber1 is ok, I change the sim's position, and result is the same. Checked, it should be related to sim card

xhbisme avatar Dec 08 '20 09:12 xhbisme

It's return null with expo. Can i get sim info using expo?

orhangazi avatar Jan 18 '21 21:01 orhangazi

any updates I'm receving null too

Chasty avatar Apr 07 '21 20:04 Chasty

Using android 10, getting null on both RNSimData.getSimInfo().phoneNumber1 and RNSimData.getSimInfo().phoneNumber0, error looks like this:

TypeError: null is not an object (evaluating '_reactNativeSimData.default.getSimInfo().phoneNumber1')

any suggestions or hints how to make this work?

zishon89us avatar May 09 '21 19:05 zishon89us