Setup
Install the PRESTOplay SDK for React Native:
npm install --save @castlabs/react-native-prestoplay
Android
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
info
Please note that the PRESTOplay SDK for React Native is distributed as a dynamic library and static linkage is not supported.
Add the Castlabs repository in ./ios/Podfile:
source 'https://github.com/castlabs/Specs.git'
Web
- Add peer dependecies in
package.json:
"dependencies" {
"react-native-web": "~0.19.6",
"@castlabs/prestoplay": "^6.25.1",
"mux.js": "5.14.1"
}