@heytea/react-native-heytea-growingio
v1.0.3
Published
growingIO
Downloads
3
Readme
react-native-heytea-growingio
Getting started
$ npm install react-native-heytea-growingio --save
Mostly automatic installation
$ react-native link react-native-heytea-growingio
Manual installation
iOS
- In XCode, in the project navigator, right click
Libraries
➜Add Files to [your project's name]
- Go to
node_modules
➜react-native-heytea-growingio
and addRNReactNativeHeyteaGrowingio.xcodeproj
- In XCode, in the project navigator, select your project. Add
libRNReactNativeHeyteaGrowingio.a
to your project'sBuild Phases
➜Link Binary With Libraries
- Run your project (
Cmd+R
)<
Android
- Open up
android/app/src/main/java/[...]/MainActivity.java
- Add
import com.heytea.growingio.RNReactNativeHeyteaGrowingioPackage;
to the imports at the top of the file - Add
new RNReactNativeHeyteaGrowingioPackage()
to the list returned by thegetPackages()
method
- Append the following lines to
android/settings.gradle
:include ':react-native-react-native-heytea-growingio' project(':react-native-react-native-heytea-growingio').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-react-native-heytea-growingio/android')
- Insert the following lines inside the dependencies block in
android/app/build.gradle
:compile project(':react-native-react-native-heytea-growingio')