Open
Description
There has been a conversation around this problem on different thread, please see:
facebook/react-native#6391 (comment)
The problem is essentially that as of now it is not possible to import or require modules dynamically or programatically (using a variable).
With import() in Stage 3 in TC39 this feature is fast becoming a standard language element and the lack of this facility in React Native is becoming all the more limiting.
Also, as per the above conversation there are very legitimate scenarios (dependency injection for example), where such lazy and conditional loading is a must.
Based on all this I would like to make a feature request for this (please let me know if this is not the right forum for doing so).
Metadata
Metadata
Assignees
Labels
No labels