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 was archived by the owner on Sep 3, 2022. It is now read-only.
Repository navigation
This repository was archived by the owner on Sep 3, 2022. It is now read-only.
react native sim data doesn’t work in ejected project #14
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(
Activity
devzsms commentedon Mar 25, 2020
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