Getting Started

Compatibility Overview

This SDK supports both the React Native new and old architecture. There is one known Android limitation: embedded Lucra views use Jetpack Compose, which is not supported by react-native-screens. If you need embedded components on Android, stay on the old architecture for now.

Minimum platform requirements:

  • iOS deployment target: 15.1

  • Android minSdk: 24

Private Package Access (Required)

You need a Personal Access Token (PAT) to:

  • Install the NPM package from GitHub Packages

  • Access the private iOS CocoaPods repository

Note: Android SDK artifacts are published to Maven Central and do not require authentication.

  1. Create a PAT: https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens

  2. Select "Classic" with packages:read and repo permissions

  3. Name it something like Lucra Token

  4. Use it when prompted during install or in CI

NPM Install

Create a .npmrc at the root of your app:

Install the package:

Do not commit .npmrc to your repo. Add it to .gitignore.

Expo (Prebuild/Ejected Only)

This SDK does not work with Expo Go. You must use expo prebuild, a dev client, or a standalone build.

Using Expo Build Properties

Update app.config.js to set native build properties and register the Lucra plugin:

Custom Fonts

Follow the expo-font guide and ensure Lucra can resolve your font family:

  • Android: pass paths relative to fonts/.

  • iOS: pass the font family name (as shown in Font Book).

  • Provide all variations: Regular, Medium, SemiBold, Bold.

Expo Dev Client

If you use expo-dev-client, make sure networkInspector is false. The SDK uses libraries that block network inspection.

Add iOS Info.plist entries for Venmo:

iOS Setup

Deployment Target

Set the minimum iOS version to 15.1:

CocoaPods Sources

In your ios/Podfile, add Lucra's private repo and CocoaPods source at the top:

Flipper

If you use Flipper, disable it when use_frameworks! is enabled:

Add Lucra Private Pod Repo

Example for CI:

Required Info.plist Permissions

Firebase (Optional)

If you use react-native-firebase, enable static frameworks:

Android Setup

Maven Repository Setup

Lucra Android Native SDK artifacts are published to Maven Central. No additional authentication is required.

Ensure your root android/build.gradle includes Maven Central:

Auth0 Compliance (If Your App Does Not Use Auth0)

Minimum API Version

Lucra SDK requires API 24 or higher:

Manifest Requirements

Application Requirements

Lucra uses Coilarrow-up-right for images and SVGs. Provide the Lucra image loader in your Application:

Firebase Crashlytics (Optional)

Add the Crashlytics Gradle plugin:

Apply the plugin in android/app/build.gradle:

Next Step

Once your project is set up, continue with initialization:

LucraSDK Initialization

Last updated