React Native SDK Installation

This guide will help you install and set up the Linkrunner SDK in your React Native application.

Installation

Step 1: Install Prerequisites

The Linkrunner SDK depends on several packages. Install them with the following command:

# Using npm
npm install react-native-device-info @react-native-community/netinfo @react-native-async-storage/async-storage react-native-play-install-referrer @sparkfabrik/react-native-idfa-aaid

# Using yarn
yarn add react-native-device-info @react-native-community/netinfo @react-native-async-storage/async-storage react-native-play-install-referrer @sparkfabrik/react-native-idfa-aaid

Step 2: Install Linkrunner SDK

# Using npm
npm install rn-linkrunner

# Using yarn
yarn add rn-linkrunner

Step 3: iOS Configuration

If you’re developing for iOS, follow these additional steps:

  1. Install pods for the package:
cd ios && pod install
  1. Add the following code to your info.plist file:
<key>NSUserTrackingUsageDescription</key>
<string>This identifier will be used to deliver personalized ads and improve your app experience.</string>

Expo Support

If you are using Expo, follow the above steps to install the required packages. After this, you will need to use development builds since the Linkrunner SDK relies on native libraries. Follow the Expo Development Builds Documentation to get started.

Next Steps

After installation of the above packages, proceed to the Usage Guide to learn how to initialize and use the SDK in your application.