-
Notifications
You must be signed in to change notification settings - Fork 16
Contributing
Within /source
, there are several folders.
Most of the things that need to happen at app startup go in ./init
.
Reusable, small, components go into ./components
, as do functions intended for use in the GUI.
Reusable functions not for use by the GUI go in ./lib
.
Larger, reusable, components, such as EventsList or FancyMenu, go into ./modules
.
Each "module" mush have an index.js
file that exports its public interface.
Other modules must not bypass this declared interface (this has not yet been accomplished.) If you need something, export it from the index.js
file.
The index.js
file should contain nothing other than import and export statements. Any code should live in another file that is exported by index.js
.
A Homescreen View is controlled by a file in ./views
.
Each Homescreen View imports the modules that it needs, instantiates any other *Navigators that are required, and configures the tab-related navigator props.
It then exports the views, view names, and homescreen config for itself.