Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@revopush/expo-code-push-plugin

ashirman335MIT1.0.1TypeScript support: included

Expo plugin to configure Revopush OTA for React Native

expo, react-native, react-native-code-push, revopush, ota, codepush

readme

Expo plugin for Revopush OTA

To integrate Revopush into your Expo project, you need to modify the native part of the application. This is done using Expo Configuration Plugins.

This plugin will automatically generate all the necessary changes to integrate Revopush OTA.

Full setup guide for Revopush with Expo.

Setup Revopush SDK

Revopush SDK doesn't work with Expo Go because it requires native code changes.

Expo SDK Revopush SDK Revopush Expo plugin
52+ 1.3.0 1.0.0

Install Revopush SDK

npx expo install @revopush/react-native-code-push

Install Revopush Expo plugin

npx expo install @revopush/expo-code-push-plugin

Extend Plugin section in your Expo config with:

module.exports = ({ config }: { config: ExpoConfig }) => ({
    ...config,
    plugins: [
        ["@revopush/expo-code-push-plugin", {   
            ios: {  // [!code ++]
                CodePushDeploymentKey: 'YOUR_DEPLOYMENT_KEY',   
                CodePushServerUrl: 'https://api.revopush.org'   
            },
            android: { 
                CodePushDeploymentKey: 'YOUR_DEPLOYMENT_KEY', 
                CodePushServerUrl: 'https://api.revopush.org' 
            } 
        }] 
    ],
});

Run prebuild command to generate native ios and android folders

npx expo prebuild --clean

If you faced with ios target version error, add expo-build-properties plugin and set ios deploymentTarget to 15.5