Installation
Prerequisites
Section titled “Prerequisites”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
Package Installation
Section titled “Package Installation”Using NPM
Section titled “Using NPM”npm install @dreamhorizonorg/ascend-react-nativeUsing Yarn
Section titled “Using Yarn”yarn add @dreamhorizonorg/ascend-react-nativePlatform Setup
Section titled “Platform Setup”iOS Setup
Section titled “iOS Setup”After installing the package, run the following command to install iOS dependencies:
cd ios && pod installAndroid Setup
Section titled “Android Setup”No additional setup required for Android. The SDK will work out of the box.
Import Statements
Section titled “Import Statements”After installation, import the SDK in your JavaScript/TypeScript files:
import { Ascend, Experiments } from '@dreamhorizonorg/ascend-react-native';Verify Installation
Section titled “Verify Installation”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.