You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Remove unused NativeModalManager spec and all related code
Summary:
Changelog: [INTERNAL]
Remove the dead `NativeModalManager` TurboModule spec and all its dependents — 13 files, 192 deletions across JS spec, Modal.js usage, native registration, CXX API snapshots, blocklist entries, and test mocks. The spec was never implemented and the Modal component no longer needs the event subscription pattern since transitioning to the new renderer.
Differential Revision: D114652881
// T88715063: NativeEventEmitter only used this parameter on iOS. Now it uses it on all platforms, so this code was modified automatically to preserve its behavior
45
-
// If you want to use the native module on other platforms, please remove this condition and test its behavior
46
-
Platform.OS!=='ios' ? null : NativeModalManager,
47
-
)
48
-
: null;
49
-
50
34
// In order to route onDismiss callbacks, we need to uniquely identifier each
51
35
// <Modal> on screen. There can be different ones, either nested or as siblings.
52
36
// We cannot pass the onDismiss callback to native as the view will be
@@ -257,7 +241,6 @@ class Modal extends React.Component<ModalProps, ModalState> {
0 commit comments