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