$ npm install react-native-estimote-wrapper --save
- Naviage to ios folder, add podfile and install pod
pod 'EstimoteSDK','~>4.26.3' - In XCode, in the project navigator, right click
Libraries➜Add Files to [your project's name] - Go to
node_modules➜react-native-estimote-wrapperand addRNEstimoteWrapper.xcodeproj - In XCode, in the project navigator, select your root project. Add
libRNEstimoteWrapper.ato your project'sBuild Phases➜Link Binary With Libraries - Build (
Cmd+B) or Run your project (Cmd+R)<
- Open up
android/app/src/main/java/[...]/MainApplication.java
- Add
import com.reactlibrary.RNEstimoteWrapperPackage;to the imports at the top of the file - Add
new RNEstimoteWrapperPackage()to the list returned by thegetPackages()method
- Append the following lines to
android/settings.gradle:include ':react-native-estimote-wrapper' project(':react-native-estimote-wrapper').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-estimote-wrapper/android') - Insert the following lines inside the dependencies block in
android/app/build.gradle:compile project(':react-native-estimote-wrapper')
import { NativeEventEmitter, Platform } from 'react-native';
import RNBeaconManager from 'react-native-estimote-wrapper';
const RNBeaconEmitter = new NativeEventEmitter(RNEstimoteBeaconManager);
// TODO: What to do with the module?
RNBeaconManager;