Integrate Flurry SDK for React Native¶
Integrating with the Flurry SDK is easy and straightforward for React Native developers.
Follow these instructions and in no time at all, you’ll be ready to start logging events and monetizing your apps.
Prerequisites: Flurry React Native plugin supports Android API level 16 and higher, and Xcode 8 and iOS 8 and higher.
Create an App & Get Your API Key¶
Start by creating an app. Once you create the app, you’ll receive a Flurry API Key, which you’ll need when using the SDK.
You need to have the administrator role on your company’s account to be able to create a new app within the company.
Each app that is created will acquire a unique Flurry API Key. For example, two API keys are needed to release on both Android and iOS platforms.
Install Flurry SDK React Native Plugin¶
First time using Node? Please visit Node.js for the installation instructions.
Follow the Getting Started section to install and build a React Native app.
Add the following calls to use the Flurry SDK in your project and initialize the Flurry SDK with the project’s API key:
Now test run the app and ensure that it builds without errors. If everything is working properly, a session will be recorded in Flurry and should be visible on the Real Time dashboard within 30 seconds.
If you created the Flurry app within the last 5 minutes, the app may not yet be live on our servers and thus will not reflect real-time data. Re-run your app after 5 minutes to see your session recorded on the Real Time dashboard.
Congratulations! Your React Native app is now ready to be used with Flurry Analytics.
The React Native plugin supports the following Flurry optional features.