Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/amitkothari/react-native-flurry
React Native wrapper for Flurry
https://github.com/amitkothari/react-native-flurry
Last synced: 3 months ago
JSON representation
React Native wrapper for Flurry
- Host: GitHub
- URL: https://github.com/amitkothari/react-native-flurry
- Owner: amitkothari
- License: mit
- Created: 2016-01-18T07:03:08.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2016-01-23T07:23:15.000Z (about 9 years ago)
- Last Synced: 2024-08-03T07:04:22.571Z (7 months ago)
- Language: Objective-C
- Size: 6.84 KB
- Stars: 9
- Watchers: 2
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-react-native - react-native-flurry ★9 - React Native wrapper for Flurry (Components / Integrations)
- awesome-react-native - react-native-flurry ★9 - React Native wrapper for Flurry (Components / Integrations)
- awesome-react-native - react-native-flurry ★9 - React Native wrapper for Flurry (Components / Integrations)
- awesome-react-native-ui - react-native-flurry ★6 - React Native wrapper for Flurry (Components / Integrations)
- awesome-react-native - react-native-flurry ★9 - React Native wrapper for Flurry (Components / Integrations)
README
# React-Native-Flurry
React Native wrapper for [Flurry](http://flurry.com)
## Installation
[](https://nodei.co/npm/react-native-flurry/)
### 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("");//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](https://github.com/cosmith/) for [sample code](https://gist.github.com/cosmith/5fd26d0125767d88f288)### Licence
Licensed under the [MIT License](http://opensource.org/licenses/MIT)