Package Exports
- react-native-lantern
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (react-native-lantern) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
react-native-lantern
Getting started
$ npm install react-native-lantern --save
Mostly automatic installation
$ react-native link react-native-lantern
Manual installation
Android
- Open up
android/app/src/main/java/[...]/MainActivity.java
- Add
import com.reactlibrary.RNReactNativeLanternPackage;to the imports at the top of the file - Add
new RNReactNativeLanternPackage()to the list returned by thegetPackages()method
- Append the following lines to
android/settings.gradle:include ':react-native-lantern' project(':react-native-lantern').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-lantern/android') - Insert the following lines inside the dependencies block in
android/app/build.gradle:compile project(':react-native-lantern')
Usage
import RNReactNativeLantern from 'react-native-lantern';
// TODO: What to do with the module?
RNReactNativeLantern;