GitHub

  • Spawn/fork an instance of the CodePush saga
  • Within your app’s main saga, import the saga module
  • Redux saga that handles synchronizing a React Native app with the CodePush service
  • yield spawn (codePushSaga, { syncActionName : ” NAVIGATE_HOME ” });
  • yield spawn (codePushSaga, { syncOnResume : false , syncOnInterval : 5 * 60 }); // Don’t disrupt the user with an update after // initially installing the app, until either 10 // minutes have passed or when the “ONBOARDING_COMPLETE” // action is dispatched.

Read the full article, click here.


@LostInTangent: “Put together a sample Redux Saga for #reactnative apps to declaratively customize their sync strategy with CodePush”


react-native-code-push-saga – Redux saga that handles synchronizing a React Native app with the CodePush service


GitHub