Closed tomsdev closed 3 years ago
Hi, to optimize first load size, would it be possible with this integration to code split and lazy load the components of the other screens/routes?
Yup.
To lazy load, use the getComponent prop on React navigation's Screen component instead of component.
getComponent
Screen
component
You can also use my package react-navigation-heavy-screen
react-navigation-heavy-screen
Hi, to optimize first load size, would it be possible with this integration to code split and lazy load the components of the other screens/routes?