/
githubmr
/
facebook-react-native
Обзор
Документация
Войти
/
githubmr
/
facebook-react-native
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
main
packages/react-native/React/Fabric/Mounting/ComponentViews/Modal/RCTModalHostViewComponentView.h
31 строка
1 KB
zhongwuzw
Fabric: Fixes Modal onRequestClose not called (#48037)
02 дек 2024, 15:06
02 дек 2024, 15:06
28ced2e
Код
Авторство
О чём код?
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #import <React/RCTViewComponentView.h> /** * UIView class for root <ModalHostView> component. */ @interface RCTModalHostViewComponentView : RCTViewComponentView <UIAdaptivePresentationControllerDelegate> /** * Subclasses may override this method and present the modal on different view controller. * Default implementation presents the modal on `[self reactViewController]`. */ - (void)presentViewController:(UIViewController *)modalViewController animated:(BOOL)animated completion:(void (^)(void))completion; /** * Subclasses may override this method. * Default implementation calls `[UIViewController dismissViewControllerAnimated:completion:]`. */ - (void)dismissViewController:(UIViewController *)modalViewController animated:(BOOL)animated completion:(void (^)(void))completion; @end