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 ...
The simplest folder structure for this case seems to be the “group files by their types” option mentioned in the React docs. This makes our lives easy: Components go in the components folder, hooks in the hooks folder, and contexts in the contexts folder.
I recommend using Flux or something similar and then putting the actions/stores/dispatcher/etc in their own folders. This is my app structure:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With