// @flow

import {AppRegistry} from 'react-native'
import App from './app'
import codePush from 'react-native-code-push'

// I'm not importing the exported variable because I just want to initialize
// the file here.
import './bugsnag'

const codePushOptions = {
  checkFrequency: codePush.CheckFrequency.ON_APP_RESUME,
  installMode: codePush.InstallMode.ON_NEXT_RESUME,
}

AppRegistry.registerComponent('AllAboutOlaf', () =>
  codePush(codePushOptions)(App),
)

@@ -234,12 +234,10 @@
 g'%0A%0A
-cons
+le
 t co
@@ -311,16 +311,16 @@
 RESUME,%0A
-
   instal
@@ -366,16 +366,242 @@
 UME,%0A%7D%0A%0A
+if (process.env.NODE_ENV !== 'production') %7B%0A  // essentially disable codepush on dev mode%0A  codePushOptions = %7B%0A    checkFrequency: codePush.CheckFrequency.MANUAL,%0A    installMode: codePush.InstallMode.ON_NEXT_RESUME,%0A  %7D%0A%7D%0A%0A
 AppRegis

disable codepush on non-release builds