React Native wrapper for Flurry
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
RNFlurry.xcodeproj Updated header search path Jan 23, 2016
RNFlurry Initial commit Jan 18, 2016
.gitignore Initial commit Jan 18, 2016
LICENSE Initial commit Jan 18, 2016
README.md Update README.md Jan 23, 2016
package.json Updating version Jan 23, 2016

README.md

React-Native-Flurry

React Native wrapper for Flurry

Installation

NPM

1. Install

npm install react-native-flurry --save

2. Integrate Flurry

Download Flurry iOS SDK and follow the instructions to integrate Flurry to your app.

Please make sure the Flurry library is under project_root/ios/Flurry folder.

3. Add react-native-flurry to your project

  • In Xcode project navigator, right click on Libraries, click on Add Files to "Project Name" and add node_modules/react-native-flurry/RNFlurry.xcodeproj.

  • Under the project's 'Build Phases' tab, add libRNFlurry.a to 'Link Binary With Libraries'.

Usage

//Require the module
var RNFlurry = require('NativeModules').RNFlurry;

//Start Session
RNFlurry.startSession("<FLURRY_API_KEY>");

//Set UserID
RNFlurry.setUserID("USER_ID");

//Log event 
RNFlurry.logEvent("EVENT NAME");

//Log event with parameters
RNFlurry.logEventWithParameters("EVENT NAME", {param1:'value1', param2:'value2'});

//Log error with title and message
RNFlurry.logError("ERROR TITLE","ERROR MESSAGE");

TODO

  • Add Android support
  • Expose other functions supported by Flurry SDK
  • Add tests

Thanks to

cosmith for sample code

Licence

Licensed under the MIT License