Created
November 28, 2019 15:55
-
-
Save gergardiol/7ffe183b009ef19b9a208f32e75205e8 to your computer and use it in GitHub Desktop.
Example code for codepush library integration with React Native
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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