Tencent X5 browser wrapper
$ npm install raininfall/react-native-x5 --save
$ react-native link react-native-x5
android/app/src/main/java/[...]/MainActivity.java
import github.raininfall.react.x5.RNX5Package;
to the imports at the top of the filenew RNX5Package()
to the list returned by the getPackages()
methodandroid/settings.gradle
:
include ':react-native-x5'
project(':react-native-x5').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-x5/android')
android/app/build.gradle
:
compile project(':react-native-x5')
import RNX5 from 'react-native-x5';
// TODO: What to do with the module?
RNX5;