mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Fix SVC for RCTModalHostView
Summary: Making the native ViewConfig for RCTModalHostView match its static ViewConfig. Changelog: [Internal] Reviewed By: JoshuaGross Differential Revision: D33303419 fbshipit-source-id: 6fac237d670ee221ad867f79e54d5a3576c156da
This commit is contained in:
committed by
Facebook GitHub Bot
parent
3c86e82a02
commit
26d05d8dd7
@@ -99,15 +99,19 @@ public class ReactModalHostManager extends ViewGroupManager<ReactModalHostView>
|
||||
}
|
||||
|
||||
@Override
|
||||
@ReactProp(name = "presentationStyle")
|
||||
public void setPresentationStyle(ReactModalHostView view, @Nullable String value) {}
|
||||
|
||||
@Override
|
||||
@ReactProp(name = "animated")
|
||||
public void setAnimated(ReactModalHostView view, boolean value) {}
|
||||
|
||||
@Override
|
||||
@ReactProp(name = "supportedOrientations")
|
||||
public void setSupportedOrientations(ReactModalHostView view, @Nullable ReadableArray value) {}
|
||||
|
||||
@Override
|
||||
@ReactProp(name = "identifier")
|
||||
public void setIdentifier(ReactModalHostView view, int value) {}
|
||||
|
||||
@Override
|
||||
@@ -146,6 +150,10 @@ public class ReactModalHostManager extends ViewGroupManager<ReactModalHostView>
|
||||
MapBuilder.<String, Object>builder()
|
||||
.put(RequestCloseEvent.EVENT_NAME, MapBuilder.of("registrationName", "onRequestClose"))
|
||||
.put(ShowEvent.EVENT_NAME, MapBuilder.of("registrationName", "onShow"))
|
||||
// iOS only
|
||||
.put("topDismiss", MapBuilder.of("registrationName", "onDismiss"))
|
||||
// iOS only
|
||||
.put("topOrientationChange", MapBuilder.of("registrationName", "onOrientationChange"))
|
||||
.build());
|
||||
return eventTypeConstants;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user