Structuring the React project

Asked

Viewed 97 times

1

Galley,

I created a React-Native project and I want to structure along with folders, for example create the screens folder to create the.

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

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

1 answer

0


Correct.

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

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

Browser other questions tagged

You are not signed in. Login or sign up in order to post.