I\'m stuck on a problem in a react-native project. I\'m trying to do a general require file, where I export all my modules. After that I would like to require only my \"requ
Add @providesModule moduleName in your file header comment. And you can import using require('moduleName') other place in your project.
See this issue.
BTW, how come that such a amazing feature never documented anywhere ?