File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
packages/gluestack-core/src/toast/creator Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import { useKeyboardBottomInset } from '@gluestack-ui/utils/hooks';
33import { Overlay } from '../../overlay/creator' ;
44import React from 'react' ;
55import { Platform , View } from 'react-native' ;
6- import { SafeAreaProvider , SafeAreaView } from 'react-native-safe-area-context' ;
6+ import { initialWindowMetrics , SafeAreaProvider , SafeAreaView } from 'react-native-safe-area-context' ;
77import { OverlayAnimatePresence } from './OverlayAnimatePresence' ;
88import { ToastContext } from './ToastContext' ;
99import type { IToast , ToastPlacement } from './types' ;
@@ -92,7 +92,7 @@ export const ToastList = () => {
9292 >
9393 { toastInfo [ position ] . map ( ( toast : IToast ) => {
9494 return (
95- < SafeAreaProvider key = { toast . id } >
95+ < SafeAreaProvider key = { toast . id } initialMetrics = { initialWindowMetrics } >
9696 < SafeAreaView style = { { pointerEvents : 'box-none' } } >
9797 < OverlayAnimatePresence
9898 visible = { visibleToasts [ toast . id ] }
You can’t perform that action at this time.
0 commit comments