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

.getSimInfo() method is giving null object error.

Open PoojaPanc opened this issue 4 years ago • 2 comments

After creating an object of the const simData = RNSimData.getSimInfo(); while accessing the method, the method returns [TypeError: null is not an object (evaluating 'simData.simSerialNumber0')] error. Permission has been given in AndroidManifest file

<uses-permission android:name="android.permission.READ_PHONE_STATE" />
<uses-permission android:name="android.permission.READ_PRIVILEGED_PHONE_STATE" />

PoojaPanc avatar Oct 11 '21 14:10 PoojaPanc

@PoojaPanc Did you find any solution related to siminfo()?

RutujTailor28 avatar Oct 18 '21 10:10 RutujTailor28

I am facing the same issue. Does anyone has solve the issue.

Abhishek25031991 avatar Sep 02 '22 11:09 Abhishek25031991