From 551d7d84b860e922831c24e4e6a28cca8fc2473f Mon Sep 17 00:00:00 2001 From: pvicens <112896251+pvicensSpacedev@users.noreply.github.com> Date: Sat, 6 Apr 2024 10:13:38 -0300 Subject: [PATCH] fix modal closing when typing (#2408) * fix modal closing when typing * fix linter issue * lint --------- Co-authored-by: Robinnnnn --- .../GalleryBottomSheet/GalleryBottomSheetModal.tsx | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/apps/mobile/src/components/GalleryBottomSheet/GalleryBottomSheetModal.tsx b/apps/mobile/src/components/GalleryBottomSheet/GalleryBottomSheetModal.tsx index 0aa0a7f4fb..3d734e4998 100644 --- a/apps/mobile/src/components/GalleryBottomSheet/GalleryBottomSheetModal.tsx +++ b/apps/mobile/src/components/GalleryBottomSheet/GalleryBottomSheetModal.tsx @@ -2,7 +2,7 @@ import { ANIMATION_CONFIGS, BottomSheetModal, BottomSheetModalProps } from '@gorhom/bottom-sheet'; import { NavigationContext, useNavigation } from '@react-navigation/native'; import { ForwardedRef, forwardRef, useEffect, useRef } from 'react'; -import { Keyboard } from 'react-native'; +import { Keyboard, Platform } from 'react-native'; import { ReduceMotion, SharedValue } from 'react-native-reanimated'; import { GalleryBottomSheetBackdrop } from '~/components/GalleryBottomSheet/GalleryBottomSheetBackdrop'; @@ -41,9 +41,14 @@ function GalleryBottomSheetModal( [navigation] ); + const androidAnimationConfigs = { + ...ANIMATION_CONFIGS, + reduceMotion: ReduceMotion.Never, + }; + return ( { bottomSheetRef.current = element; if (typeof ref === 'function') {