react-native-channel-info
Channel Information for react-native 使用美团方案统计Android分发渠道
Installation
First you need to install react-native-channel-info:
npm install react-native-channel-info --save
Installation (iOS)
Not Support Now, Always return IAPPSTORE
Installation (Android)
- In
android/setting.gradle
...include ':react-native-channel-info', ':app'project(':react-native-channel-info').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-channel-info/android')
- In
android/app/build.gradle
...dependencies { ... compile project(':react-native-channel-info')}
- register module (in MainActivity.java)
On newer versions of React Native (0.18+):
// <--- import