Skip to content

Installation

Before integrating the Ascend React Native SDK, ensure your project meets the following requirements:

  • React Native: 0.60.0 or higher
  • Node.js: 14.0.0 or higher
  • TypeScript: 4.0.0 or higher (recommended)
  • iOS: iOS 11.0 or higher
  • Android: API Level 21 (Android 5.0) or higher

Terminal window
npm install @dreamhorizonorg/ascend-react-native
Terminal window
yarn add @dreamhorizonorg/ascend-react-native

After installing the package, run the following command to install iOS dependencies:

Terminal window
cd ios && pod install

No additional setup required for Android. The SDK will work out of the box.


After installation, import the SDK in your JavaScript/TypeScript files:

import { Ascend, Experiments } from '@dreamhorizonorg/ascend-react-native';

After installation, verify that you can import the SDK:

import { Ascend } from '@dreamhorizonorg/ascend-react-native';

If the import succeeds, the SDK is properly installed.