Expo Config Plugin to auto-configure @appzung/react-native-code-push when the native code is generated (npx expo prebuild).
Ensure you use versions that work together!
expo |
Old arch | New arch | @appzung/react-native-code-push |
@appzung/expo-config-code-push |
|---|---|---|---|---|
| 52+ | ✅ | ❌ | 10+ | ^1.0.0 |
| 52+ | ✅ | ✅ | 11+ | ^1.0.0 |
This package cannot be used in the "Expo Go" app because it requires custom native code.
- (optional) If your app doesn't target iOS >= 15.5, add the compatible
deploymentTargetwith expo-build-properties
Note that bare React Native apps can use our module with iOS < 15.5. If you need this for your expo app, please contact us at [email protected].
npx expo install expo-build-properties{
"plugins": [
"...other plugins",
[
"expo-build-properties",
{
"ios": {
"deploymentTarget": "15.5"
}
}
]
]
}Then update the deployment target in your native files with npx expo prebuild.
- Install the AppZung CodePush packages with yarn, npm, or
npx expo install.
npx expo install @appzung/react-native-code-push @appzung/expo-config-code-push- Add the config plugin to the
pluginsarray of yourapp.jsonorapp.config.js:
{
"plugins": [
"...other plugins",
[
"@appzung/expo-config-code-push",
{
"ios": {
"CodePushReleaseChannelPublicId": "YOUR_IOS_PUBLIC_ID",
"CodePushSigningPublicKey": "YOUR_SIGNING_KEY"
},
"android": {
"CodePushReleaseChannelPublicId": "YOUR_ANDROID_PUBLIC_ID",
"CodePushSigningPublicKey": "YOUR_SIGNING_KEY"
}
}
]
]
}-
Replace
YOUR_ANDROID_PUBLIC_IDandYOUR_IOS_PUBLIC_IDwith your public IDs ($ appzung release-channels list). -
Either replace
YOUR_SIGNING_KEYwith your Code Signing key, or remove theCodePushSigningPublicKeyfields. -
Rebuild your app as described in the "Adding custom native code" guide.
-
Use AppZung CodePush in your JS code, follow the docs.