title: adding code push to react native appcenter app
body: <p>My react native app is working ok, but now need to add code push,</p>
  <p>my question is where to add the</p>
  <blockquote>
  <p>CodePush</p>
  </blockquote>
  <p>On the &quot;App&quot;</p>
  <p>Here my code,</p>
  <pre><code>const App = () =&gt; (
    
    &lt;Provider store={store}&gt;
      &lt;NavigationContainer&gt;
        &lt;SafeAreaProvider&gt;
          &lt;View style={styles.container}&gt;
            &lt;Main/&gt;
          &lt;/View&gt;
        &lt;/SafeAreaProvider&gt;
      &lt;/NavigationContainer&gt;
    &lt;/Provider&gt;
  );
  
  // let codePushOptions = { checkFrequency: CodePush.CheckFrequency.ON_APP_START };
  
  // App = CodePush(codePushOptions)(App);
  
  export default App;
  </code></pre>
  <p>But if I uncomment</p>
  <pre><code>let codePushOptions = { checkFrequency: CodePush.CheckFrequency.ON_APP_START };
  
  App = CodePush(codePushOptions)(App);
  </code></pre>
  <p>export default App;</p>
  <p>is Crashing...</p>
  <p>How to properly add the CodePush to my App?</p>