1.0.2 • Published 5 years ago

react-native-zkzy1-network v1.0.2

Weekly downloads
8
License
ISC
Repository
-
Last release
5 years ago

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

  1. 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 the getPackages() method
  1. 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')
  2. 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;