Closed MohitGoel9456 closed 8 months ago
I also encounter some problems. When I open index.android.bundle, the app enters the background, and then returns to the app. The activity of index.android.bundle that I load will directly destroy and return to the main activity
Noo
Le ven. 16 juil. 2021 à 11:41, 赵伟 @.***> a écrit :
I also encounter some problems. When I open index.android.bundle, the app enters the background, and then returns to the app. The activity of index.android.bundle that I load will directly destroy and return to the main activity
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/facebook/react-native/issues/31862#issuecomment-881317422, or unsubscribe https://github.com/notifications/unsubscribe-auth/AS54BT33DZOORMYS3KYAU53TX75E7ANCNFSM5ANAOYEA .
This issue is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 7 days.
This issue was closed because it has been stalled for 7 days with no activity.
Hi, I am creating this issue after reading this blog https://github.com/react-native-community/discussions-and-proposals/issues/152
Description
I have created two bundles with two different entry points. One is default index.android.bundle and other i have created sample.android.bundle with sample.js screen as entry point.
I am using following command for generating bundle npx react-native bundle --platform android --config metro.config.js --dev false --entry-file index.js --bundle-output android/app/src/main/assets/index.android.bundle --assets-dest android/app/src/main/res
npx react-native bundle --platform android --config sample.config.js --dev false --entry-file sample.js --bundle-output android/app/src/main/assets/sample.android.bundle --assets-dest android/app/src/main/res
I have two buttons in MainActivity and I am navigating to different bundles on click event and it is working fine as expected. I am facing two issues.
Code for communicating between native android and React Native.
}
Code for launching index.android.bundle
Code in SampleScreen.js to switch to index.android.bundle. App is crashing when I click on button.
Error Message
Sharing link to github repository
https://github.com/MohitGoel9456/Code-Splitting/tree/main