Skip to main content

Setup

Install the PRESTOplay SDK for React Native:

npm install --save @castlabs/react-native-prestoplay@beta

Android

  1. Add the castLabs repository to the ./android/build.gradle file. Pay attention to the order of repository declarations for optimal build times:

    allprojects {
    repositories {
    google()
    mavenCentral()
    maven { url 'https://mvn.players.castlabs.com/' }
    }
    }

iOS

  1. Add the castLabs repository in ./ios/Podfile:

    source 'https://github.com/castlabs/Specs.git'