Skip to main content

Setup

Install the PRESTOplay for React Native:

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

Android / Android TV

  1. The minimum supported compileSdkVersion is 34. Update the ./android/build.gradle file if necessary:

    buildscript {
    ext {
    compileSdkVersion = 34
    }
    }
  2. Add the castLabs repository to your ./android/build.gradle. Pay attention to the order of repository declarations for optimal build times:

    allprojects {
    repositories {
    google()
    mavenCentral()
    maven {
    url "https://artifact.plugin.npaw.com/artifactory/plugins/android/"
    content { includeGroup "com.npaw.plugin" }
    }
    maven { url 'https://mvn.players.castlabs.com/' }
    }
    }

iOS / tvOS

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

    source 'https://repo.plugin.npaw.com/release/plugin-ios-cocoapods.git'
    source 'https://github.com/castlabs/Specs.git'