Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

React native beginner index.android.js is not showing

There is no code. I am creating a project but some files are missing.

Using command react-native init helloworld project is created, but index.android.js and index.ios.js aren't generated or missing, only index.js is appearing.

like image 932
saurabh nanda Avatar asked Oct 11 '17 10:10

saurabh nanda


2 Answers

This is due to a recent update.

New projects have a single entry-point (index.js) from now on (6e99e31) - @fson

This shouldn't cause you any trouble during the compilation or run-time.

like image 172
Louis Lecocq Avatar answered Oct 21 '22 22:10

Louis Lecocq


You can try out this:

npx react-native bundle --platform android --dev false --entry-file index.js --bundle-output android/app/src/main/assets/index.android.bundle --assets-dest android/app/src/main/res
like image 31
Rohit Chahal Avatar answered Oct 21 '22 23:10

Rohit Chahal