Skip to content

Commit 4593669

Browse files
committed
chore: returned back fallback strategy
1 parent 1ea57a7 commit 4593669

File tree

3 files changed

+10
-6
lines changed

3 files changed

+10
-6
lines changed

package/src/components/ImageGallery/components/ImageGalleryFooter.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff 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-
1917
import { ImageGalleryVideoControl } from './ImageGalleryVideoControl';
2018

2119
import { useTheme } from '../../../contexts/themeContext/ThemeContext';
@@ -29,6 +27,7 @@ import {
2927
} from '../../../native';
3028

3129
import { FileTypes } from '../../../types/types';
30+
import { SafeAreaView } from '../../UIComponents/SafeAreaViewWrapper';
3231
import type { Photo } from '../ImageGallery';
3332

3433
const ReanimatedSafeAreaView = Animated.createAnimatedComponent

package/src/components/ImageGallery/components/ImageGalleryHeader.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff 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-
1412
import { useOverlayContext } from '../../../contexts/overlayContext/OverlayContext';
1513
import { useTheme } from '../../../contexts/themeContext/ThemeContext';
1614
import { useTranslationContext } from '../../../contexts/translationContext/TranslationContext';
1715
import { Close } from '../../../icons';
1816

1917
import { getDateString } from '../../../utils/i18n/getDateString';
18+
import { SafeAreaView } from '../../UIComponents/SafeAreaViewWrapper';
2019
import type { Photo } from '../ImageGallery';
2120

2221
const ReanimatedSafeAreaView = Animated.createAnimatedComponent

package/src/components/UIComponents/SafeAreaViewWrapper.tsx

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
import 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

511
export const SafeAreaViewWrapper = ({
612
children,

0 commit comments

Comments
 (0)