0.0.3 • Published 5 years ago
react-native-jg-screens v0.0.3
react-native-jg-screens
Getting started
$ npm install react-native-jg-screens --save
Mostly automatic installation
$ react-native link react-native-jg-screens
Manual installation
Android
- Open up
android/app/src/main/java/[...]/MainActivity.java
- Add
import com.jg.screens.RNJgScreensPackage;
to the imports at the top of the file - Add
new RNJgScreensPackage()
to the list returned by thegetPackages()
method
- Append the following lines to
android/settings.gradle
:include ':react-native-jg-screens' project(':react-native-jg-screens').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-jg-screens/android')
- Insert the following lines inside the dependencies block in
android/app/build.gradle
:compile project(':react-native-jg-screens')
Usage
import RNJgScreens from 'react-native-jg-screens';
// TODO: What to do with the module?
RNJgScreens;