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