mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
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:
committed by
Facebook GitHub Bot
parent
263478b91c
commit
52b45a44b4
+1
-1
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user