ueno-llc / react-native-starter

Professional react-native starter kit with everything you'll ever need to deploy rock solid apps
https://ueno-llc.github.io/react-native-starter
MIT License
573 stars 89 forks source link

The application does not start on the emulator #226

Closed tsepen closed 5 years ago

tsepen commented 5 years ago

I run react-native start

Then react-native run-android

I see an error in the emulator (Android studio SDK 28 android 9) 'Error: Unable to resolve module ./index from ``:

None of these files exist:

I tried and it did not help react-native start --reset-cache

birkir commented 5 years ago

Hey, so its looking for a index.js in your root directory.

Either

a) create a file in your root directory ./index.js and the contents:

require('./src/index');

b) Edit your entry point like its done here: https://github.com/ueno-llc/react-native-starter/blob/master/android/app/build.gradle#L18