File tree Expand file tree Collapse file tree 3 files changed +10
-6
lines changed Expand file tree Collapse file tree 3 files changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -14,8 +14,6 @@ import Animated, {
1414 useAnimatedStyle ,
1515} from 'react-native-reanimated' ;
1616
17- import { SafeAreaView } from 'react-native-safe-area-context' ;
18-
1917import { ImageGalleryVideoControl } from './ImageGalleryVideoControl' ;
2018
2119import { useTheme } from '../../../contexts/themeContext/ThemeContext' ;
@@ -29,6 +27,7 @@ import {
2927} from '../../../native' ;
3028
3129import { FileTypes } from '../../../types/types' ;
30+ import { SafeAreaView } from '../../UIComponents/SafeAreaViewWrapper' ;
3231import type { Photo } from '../ImageGallery' ;
3332
3433const ReanimatedSafeAreaView = Animated . createAnimatedComponent
Original file line number Diff line number Diff line change @@ -9,14 +9,13 @@ import Animated, {
99 useAnimatedStyle ,
1010} from 'react-native-reanimated' ;
1111
12- import { SafeAreaView } from 'react-native-safe-area-context' ;
13-
1412import { useOverlayContext } from '../../../contexts/overlayContext/OverlayContext' ;
1513import { useTheme } from '../../../contexts/themeContext/ThemeContext' ;
1614import { useTranslationContext } from '../../../contexts/translationContext/TranslationContext' ;
1715import { Close } from '../../../icons' ;
1816
1917import { getDateString } from '../../../utils/i18n/getDateString' ;
18+ import { SafeAreaView } from '../../UIComponents/SafeAreaViewWrapper' ;
2019import type { Photo } from '../ImageGallery' ;
2120
2221const ReanimatedSafeAreaView = Animated . createAnimatedComponent
Original file line number Diff line number Diff line change 11import React , { PropsWithChildren } from 'react' ;
2- import { ViewStyle } from 'react-native' ;
3- import { SafeAreaProvider , SafeAreaView , SafeAreaViewProps } from 'react-native-safe-area-context' ;
2+ import { SafeAreaView as RNFSafeAreaView , ViewStyle } from 'react-native' ;
3+ import {
4+ SafeAreaProvider ,
5+ SafeAreaView as SafeAreaViewOriginal ,
6+ SafeAreaViewProps ,
7+ } from 'react-native-safe-area-context' ;
8+
9+ export const SafeAreaView = SafeAreaViewOriginal ?? RNFSafeAreaView ;
410
511export const SafeAreaViewWrapper = ( {
612 children,
You can’t perform that action at this time.
0 commit comments