Event should infer UIManagerType by presence of SurfaceId

Summary:
See comments inline for motivation. It's not safe to use viewtag of an Event to infer whether or not the view is in a Fabric or non-Fabric RootView.

Changelog: [Internal]

Reviewed By: mdvacca

Differential Revision: D28365566

fbshipit-source-id: 187ddcc5d5a43a31a71232fdb2f1f5b334bec8c2
This commit is contained in:
Joshua Gross
2021-05-12 09:12:53 -07:00
committed by Facebook GitHub Bot
parent 263478b91c
commit 52b45a44b4
2 changed files with 21 additions and 2 deletions
@@ -535,7 +535,7 @@ import java.util.Queue;
return;
}
UIManager uiManager =
UIManagerHelper.getUIManagerForReactTag(mReactApplicationContext, event.getViewTag());
UIManagerHelper.getUIManager(mReactApplicationContext, event.getUIManagerType());
if (uiManager == null) {
return;
}