react-native-gemius-plugin
v1.7.0
Published
Gemius plugin for react-native
Readme
react-native-gemius-plugin
Getting started
$ npm install react-native-gemius-plugin --save
Mostly automatic installation
$ react-native link react-native-gemius-plugin
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-gemius-pluginand addGemiusPlugin.xcodeproj - In XCode, in the project navigator, select your project. Add
libGemiusPlugin.ato your project'sBuild Phases➜Link Binary With Libraries - Run your project (
Cmd+R)<
Android
- Open up
android/app/src/main/java/[...]/MainApplication.java
- Add
import com.reactlibrary.GemiusPluginPackage;to the imports at the top of the file - Add
new GemiusPluginPackage()to the list returned by thegetPackages()method
- Append the following lines to
android/settings.gradle:include ':react-native-gemius-plugin' project(':react-native-gemius-plugin').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-gemius-plugin/android') - Insert the following lines inside the dependencies block in
android/app/build.gradle:compile project(':react-native-gemius-plugin')
Usage
import GemiusPlugin from 'react-native-gemius-plugin';
// TODO: What to do with the module?
GemiusPlugin;