0.0.14 • Published 7 years ago
react-native-zaius v0.0.14
react-native-zaius
Getting started
$ npm install react-native-zaius --save
Manual installation
iOS pod
- Add
pod 'RNZaius', :path => '../node_modules/react-native-zaius'in yourPodfile - Run
pod install
Android
- Open up
android/app/src/main/java/[...]/MainActivity.java
- Add
import com.leciseau.RNZaiusPackage;to the imports at the top of the file - Add
new RNZaiusPackage()to the list returned by thegetPackages()method
- Append the following lines to
android/settings.gradle:include ':react-native-zaius' project(':react-native-zaius').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-zaius/android') - Insert the following lines inside the dependencies block in
android/app/build.gradle:compile project(':react-native-zaius')
Usage
import Zaius from 'react-native-zaius';
// TODO: What to do with the module?
RNZaius;