项目作者: raininfall

项目描述 :
Tencent X5 browser wrapper
高级语言: Java
项目地址: git://github.com/raininfall/react-native-x5.git
创建时间: 2017-10-23T08:16:19Z
项目社区:https://github.com/raininfall/react-native-x5

开源协议:

下载


react-native-x5

Getting started

$ npm install raininfall/react-native-x5 --save

Mostly automatic installation

$ react-native link react-native-x5

Manual installation

Android

  1. Open up android/app/src/main/java/[...]/MainActivity.java
    • Add import github.raininfall.react.x5.RNX5Package; to the imports at the top of the file
    • Add new RNX5Package() to the list returned by the getPackages() method
  2. Append the following lines to android/settings.gradle:
    1. include ':react-native-x5'
    2. project(':react-native-x5').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-x5/android')
  3. Insert the following lines inside the dependencies block in android/app/build.gradle:
    1. compile project(':react-native-x5')

Usage

  1. import RNX5 from 'react-native-x5';
  2. // TODO: What to do with the module?
  3. RNX5;