How to use the react-native-code-push.notifyAppReady function in react-native-code-push

To help you get started, we’ve selected a few react-native-code-push examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github RN-ONE / RNFrameWorkNew / app / util / CheckCodePushUpdateUtil.js View on Github external
instance.install(codePush.InstallMode.IMMEDIATE).then(() => {
                console.log("安装完成");
                codePush.notifyAppReady();
                codePush.allowRestart();
                codePush.restartApp(true);
            }).catch(reason => {
                CheckCodePushUpdateUtil.error();
github tranhoangduong1994 / react-native-boilerplate / src / App / index.js View on Github external
async function init() {
  codePush.notifyAppReady();
  buildTheme();
  store = await configStore();
  store.subscribe(handleSubscribe);
  registerScreens(store, Provider);
  setI18nConfig();
  RNLocalize.addEventListener('change', () => {
    setI18nConfig();
  });
}
github shoutem / extensions / shoutem-code-push / app / app.js View on Github external
export function appWillMount() {
  if (isProduction()) {
    return codePush.notifyAppReady();
  }
}
github HarishJangra / react-native-easy-starter / src / Services / CheckVersion.js View on Github external
useEffect(() => {
    CodePush.notifyAppReady();
    CodePush.sync(
      {
        installMode: CodePush.InstallMode.ON_NEXT_RESTART,
        updateDialog: {
          title: 'An OTA update is available',
          description: 'Would you like to install it?',
        },
        rollbackRetryOptions: {
          delayInHours: 0.1,
          maxRetryAttempts: 1,
        },
      },
      codePushStatusDidChange,
      downloadProgressCallback,
    );