Structure React project

1

Galera,

I created a react-native project and I want to structure it with folders, for example create the screens folder to create the components.

The beginner's doubt. Whenever I run the project it is redirected to index.android.js

In this case if I create a ./screens/index.js, do I need to redirect to index.android.js?

    
asked by anonymous 09.08.2017 / 20:50

1 answer

0

Correct.

Both platforms will always first run the index.ios.js or index.android.js files. You can use this to your advantage and make platform-specific customizations using these files.

Ideally you will give require to another window (within ./screens , for example) within these index files and will open them.

    
16.08.2017 / 06:17