@hanselio_public/react-native-hansel
v8.2.0
Published
React Native wrapper for Hansel iOS SDK
Downloads
4
Keywords
Readme
react-native-hansel
Getting started
$ npm install react-native-hansel --save
Mostly automatic installation
$ react-native link react-native-hansel
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-hansel
and addHanselRn.xcodeproj
- In XCode, in the project navigator, select your project. Add
libHanselRn.a
to your project'sBuild Phases
➜Link Binary With Libraries
- Run your project (
Cmd+R
)<
Usage
import {NativeModules} from 'react-native';
// TODO: You can access Hansel SDK classes this way.
NativeModules.HanselConfigsRn;
NativeModules.HanselTrackerRn;
NativeModules.HanselUserRn;
NativeModules.HanselRn;