In my React Native app, when I run react-native bundle --dev false --platform ios --entry-file index.js --bundle-output ios/main.jsbundle --assets-dest ./ios it throws the error Error: Unable to resolve module ./App from <path to app>/index.js:. My file at <path to app>/index.js is
import {AppRegistry} from 'react-native';
import App from './App';
import {name as appName} from './app.json';
AppRegistry.registerComponent(appName, () => App);
The file ./App that is causing the error is at <path to app>/src/App.js.
What am I doing wrong here?