I'm new to nodejs, react native and I'm planning to create several react native applications.
These applications are going to share some code like session management, storage manager, formatters, etc...
So I want to organize my code in the following structure:
- app_1
- app_2
- app_n
- package_that_every_app_imports
My problem is that some modules in project_that_every_app_includes will have to be configured per application.
In order to do so I'm thinking that I could set a global variable that all modules even from different packages would have access to.
Is there any other way to do configuration of the package_that_every_app_imports? (except of course by passing configuration into the instances of the things that are going to be used)
Aucun commentaire:
Enregistrer un commentaire