Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: ReactDelegate crashing New Architecture apps by invoking `setCon…
…tentView` Summary: Fixes facebook#46566 Currently `ReactFragment` and `ReactDelegate` don't work in OSS + New Architecture because we call `Activity.setContentView` on the host activity. That result on us replacing the whole activity layout, even when the user wants to use a Fragment. As we do have `ReactActivityDelegate` that already does this: https://github.com/facebook/react-native/blob/94b77938435693792e57c96d76691d58d7361530/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/ReactActivityDelegate.java#L138 So this call is unncessary. I've also updated the relative documentation here: facebook/react-native-website#4232 Changelog: [Android] [Fixed] - fix: ReactDelegate/ReactFragment crashing on New Architecture apps Differential Revision: D63464367
- Loading branch information