I’m trying to eject to a regular RN project. When I start the iOS project it complains about not being able to find index.js (“The resource /...../MyApp/index.js
was not found”). I tried adding an index.js to the root of my project, with following contents:
import { AppRegistry } from 'react-native';
import App from './App';
AppRegistry.registerComponent('MyApp', () => App);
(I saw this solution in a Github issue).
And the error is still exactly the same. I confirmed by opening the exact path shown in the error message and the file definitely exists.