mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-03 22:48:25 +08:00
Fix modals when using Nodes
Summary: Modals were broken in Nodes, because the custom measurement logic for all the children of the ReactModalShadowNode was not being applied (because we wrapped it in a NativeViewWrapper). This change adds a custom flat node type for modals. Differential Revision: D3499557
This commit is contained in:
@@ -57,6 +57,7 @@ public class FlatUIImplementation extends UIImplementation {
|
||||
viewManagers.add(new RCTTextInlineImageManager());
|
||||
viewManagers.add(new RCTImageViewManager());
|
||||
viewManagers.add(new RCTTextInputManager());
|
||||
viewManagers.add(new RCTModalHostManager(reactContext));
|
||||
|
||||
ViewManagerRegistry viewManagerRegistry = new ViewManagerRegistry(viewManagers);
|
||||
FlatNativeViewHierarchyManager nativeViewHierarchyManager = new FlatNativeViewHierarchyManager(
|
||||
|
||||
Reference in New Issue
Block a user