From d4f6e84f29bf0860f059a12ff25b9145a6babdbb Mon Sep 17 00:00:00 2001 From: Samuel Newman Date: Wed, 17 Apr 2024 00:30:28 +0100 Subject: [PATCH] scope legacy modals --- src/view/shell/Composer.tsx | 31 ++++++++++++++++++------------- 1 file changed, 18 insertions(+), 13 deletions(-) diff --git a/src/view/shell/Composer.tsx b/src/view/shell/Composer.tsx index 962b5d73b2..56d02206af 100644 --- a/src/view/shell/Composer.tsx +++ b/src/view/shell/Composer.tsx @@ -4,7 +4,9 @@ import {StatusBar} from 'expo-status-bar' import {observer} from 'mobx-react-lite' import {isIOS} from '#/platform/detection' +import {Provider as LegacyModalProvider} from '#/state/modals' import {useComposerState} from 'state/shell/composer' +import {ModalsContainer as LegacyModalsContainer} from '#/view/com/modals/Modal' import { Outlet as PortalOutlet, Provider as PortalProvider, @@ -25,19 +27,22 @@ export const Composer = observer(function ComposerImpl({}: { presentationStyle="formSheet" animationType="slide" onRequestClose={() => ref.current?.onPressCancel()}> - - - - {isIOS && } - + + + + + + + + {isIOS && } ) })