react-native project/directory structure setup

MeetMahPuppy picture MeetMahPuppy · Nov 2, 2015 · Viewed 17.1k times · Source

I'm learning react-native(android) on windows environment. I've manage to start a project on android(even though they only support for apple). I want some advice for naming good structures of files and folders for the project before I go deep into the code/learning. I want to organize things beforehand. Can anyone help me?

Ex. for html something like

www
 |-js
 |-css
 |-img
build
 |-js
 |-css
 |-less
...

react-native init structures have something like

android
node_modules
package.json
index.android.js
...

Answer

eyal83 picture eyal83 · Nov 3, 2015

I recommend using Flux or something similar and then putting the actions/stores/dispatcher/etc in their own folders. This is my app structure: React Native app structure