You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 3, 2022. It is now read-only.
unfortunately react-native-sim-data doesnt work in ejected project.
I Try this module in a new react native project and it works fine.
But when try to use It in ejected project It returns null.
with this code
You need to add include ':react-native-sim-data'project(':react-native-sim-data').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-sim-data/android')
to your settings.gradle
and implementation project(':react-native-sim-data')
to your build.gradle inside dependencies(){}
and last
add this to the Mainactivity import eu.sigrlami.rnsimdata.RNSimDataReactPackage;
still in Mainactivity add this this new RNSimDataReactPackage(),
inside protected List<ReactPackage> getPackages() { return Arrays.<ReactPackage>asList(
just like another modules does
maybe this help
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
unfortunately react-native-sim-data doesnt work in ejected project.
I Try this module in a new react native project and it works fine.
But when try to use It in ejected project It returns null.
with this code
first Butoon for getting permission and second one for getting device Id But it returns:
null is not an Object(evaluating _reactnativesimdata getinfo()…)
The text was updated successfully, but these errors were encountered: