title: React Native Module AppRegistry is not a registered callable module
body: <p>I am having issues with a shared github project our team is working on. I have been banging my head against this issue for about a week now without any luck. </p>
  
  <p>The issue is a brand new clone that is working on my teams computers, will not run correctly on my computer. It throws the error, "Module AppRegistry is not a callable module". I am working on a ios project. I have deleted all folders and started again. I have created new users with various permissions and no luck. </p>
  
  <p>Is there anything else that I am missing to try? Thanks!</p>
  
  <hr>
  
  <p>Index.ios.js</p>
  
  <pre><code>const { AppRegistry } = require('react-native');
  const setup = require('./app/setup');
  
  AppRegistry.registerComponent('mobileapps', setup);
  </code></pre>
  
  <p>Setup.js</p>
  
  <pre><code>import App from './index';
  import React, { Component } from 'react';
  import { Provider } from 'react-redux';
  import configureStore from './store';
  
  const store = configureStore();
  
  function setup() {
    class Root extends Component {
      render() {
        return (
          &lt;Provider store={store}&gt;
            &lt;App /&gt;
          &lt;/Provider&gt;
        );
      }
    }
  
    return Root;
  }
  
  module.exports = setup;
  </code></pre>