Getting Started

🧪 BETA VERSION - React Native SDK is currently in beta.

This guide will help you get started with Digia React Native SDK integration in your mobile application.

Prerequisites

Before you begin, ensure you have:

  • Node.js 16.0 or later

  • React Native 0.60 or later

  • TypeScript 4.0 or later (recommended)

  • A Digia Studio project with published configurations

Project Setup

1. Create a New React Native Project

npx react-native init MyDigiaApp
cd MyDigiaApp

2. Install Dependencies

Install the Digia React Native SDK and required peer dependencies:

3. iOS Setup

For iOS development, install CocoaPods dependencies:

Quick Start with Template

For a faster setup, you can use our React Native template repository that comes pre-configured with Digia UI SDK:

Using the Template

This template includes:

  • ✅ Pre-configured Digia UI SDK integration

  • ✅ Sample Digia Studio project setup

  • ✅ Ready-to-run example app

Manual Setup (Alternative)

If you prefer to set up manually, follow the steps below.

Step 1: Get Your Project Access Key

  1. Open your project

  2. Go to SettingsApp Settings

  3. Copy your Access Key

Screenshot showing the App Settings page in Digia Studio with the Access Key field highlighted.
Locate your Access Key in the App Settings section of your Digia Studio project.

Step 2: Initialize Digia UI SDK

Create a new file src/DigiaApp.tsx:

Step 3: Update App.tsx

Modify your main App.tsx to use the Digia app:

Running Your App

iOS

Android

Testing the Integration

  1. Open the app on your device or simulator

  2. Verify the loading screen appears

  3. Check that your Digia Studio content loads

  4. Test basic interactions (buttons, navigation, etc.)

Troubleshooting

Common Issues

SDK Not Initializing

  • Check your access key is correct and active

  • Verify internet connection for initial load

  • Check console logs for detailed error messages

Components Not Rendering

  • Ensure your Digia Studio project has published content

  • Check flavor configuration matches your project setup

  • Verify component configurations in Digia Studio

  • Confirm React Navigation is properly configured

  • Check stack navigator setup in your integration

  • Verify page configurations in Digia Studio

Last updated