Skip to content

Instantly share code, notes, and snippets.

@gergardiol
Created November 28, 2019 15:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gergardiol/7ffe183b009ef19b9a208f32e75205e8 to your computer and use it in GitHub Desktop.
Save gergardiol/7ffe183b009ef19b9a208f32e75205e8 to your computer and use it in GitHub Desktop.
Example code for codepush library integration with React Native
import codePush from 'react-native-code-push';
const codePushOptions = { checkFrequency: codePush.CheckFrequency.ON_APP_START };
class MyApp extends Component {
render() {
return (
<View>
/* My App Code.. */
</View>
);
}
}
export default codePush(codePushOptions)(MyApp);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment