react-native-sim-data
react-native-sim-data copied to clipboard
.getSimInfo() method is giving null object error.
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 Did you find any solution related to siminfo()?
I am facing the same issue. Does anyone has solve the issue.