react-native-code-push-plugin
v1.0.7
Published
Config plugin to auto configure react-native-code-push on prebuild
Downloads
1,511
Maintainers
Readme
react-native-code-push-plugin
Config plugin to auto-configure react-native-code-push
when the native code is generated (npx expo prebuild
).
⚠️ Remove Expo updates completely ⚠️
Before installing this package, you need completely remove Expo updates from your project:
- Expo updates configurations
- Expo updates execution code in your app
- Expo updates package
npm uninstall -s expo-updates
oryarn remove expo-updates
- Any other thing you have done with Expo updates
Add the package to your npm dependencies
Tested against Expo SDK 50
yarn add react-native-code-push react-native-code-push-plugin
After installing this npm package, add the config plugin to the plugins
array of your app.json
or app.config.js
:
{
"expo": {
"plugins": [
[
"react-native-code-push-plugin",
{
"android": {
"CodePushDeploymentKey": "YOUR_ANDROID_CODE_PUSH_KEY"
},
"ios": {
"CodePushDeploymentKey": "YOUR_IOS_CODE_PUSH_KEY"
}
}
]
]
}
}
Next, rebuild your app as described in the "Adding custom native code" guide.
Disclaimer
This was published interim while this PR isn't merged and the plugin isn't published under @config-plugins: https://github.com/expo/config-plugins/pull/204