Replies: 1 comment 2 replies
-
The easiest way is to do it in code. I'm not sure what do you mean generate chunks based on route exactly but if you're using // MyScreen.js
function MyScreen() {
// ...
}
// somewhere
const MyScreen = React.lazy(() => import('./MyScreen.js'));
<Stack.Navigator>
<Stack.Screen name="MY_SCREEN" component={MyScreen} />
</Stack.Navigator> |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
in web projects, we can generate chunks based on route, in react-native projects, we use
react-navigation
for example, How can I generate different chunks based on that?I read the
webpack.config.js
, the entry is just:Beta Was this translation helpful? Give feedback.
All reactions