Skip to content

Commit d96bbcd

Browse files
realsoelynnfacebook-github-bot
authored andcommitted
Back out "Back out "Adding shouldForwardToReactInstance check in ReactDelegate for Bridgeless"" (#52323)
Summary: Pull Request resolved: #52323 Original commit changeset: b144ca6db6f7 Original Phabricator Diff: D77388413 Reverting the revert since it did not fix our javascript crash problem for v270 https://fburl.com/scuba/errorreporting_system_vros_javascripterrors/mtexik9e Original diff stack: D76908041 Revert diff stack: D77388940 Changelog[Internal]: Puting back the Kotlin Migration for ReactDelegate file Reviewed By: cortinico Differential Revision: D77448293 fbshipit-source-id: ed40836c3ecb4ca551b23cb64de2c34cfda0dea1
1 parent faef2b1 commit d96bbcd

File tree

1 file changed

+2
-1
lines changed
  • packages/react-native/ReactAndroid/src/main/java/com/facebook/react

1 file changed

+2
-1
lines changed

packages/react-native/ReactAndroid/src/main/java/com/facebook/react/ReactDelegate.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,8 @@ public open class ReactDelegate {
195195
shouldForwardToReactInstance: Boolean
196196
) {
197197
if (ReactNativeNewArchitectureFeatureFlags.enableBridgelessArchitecture() &&
198-
reactHost != null) {
198+
reactHost != null &&
199+
shouldForwardToReactInstance) {
199200
reactHost?.onActivityResult(activity, requestCode, resultCode, data)
200201
} else {
201202
if (reactNativeHost?.hasInstance() == true && shouldForwardToReactInstance) {

0 commit comments

Comments
 (0)