From bdfcdbcf381e0b86df8e79b2e4a70c1c77ba4e92 Mon Sep 17 00:00:00 2001 From: Marcos Rodriguez Velez Date: Thu, 4 Jul 2024 15:55:58 -0400 Subject: [PATCH] wip --- components/BottomModal.tsx | 4 +++- ios/Podfile.lock | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/components/BottomModal.tsx b/components/BottomModal.tsx index 656a076f1..d66f4a54c 100644 --- a/components/BottomModal.tsx +++ b/components/BottomModal.tsx @@ -1,6 +1,6 @@ import React, { forwardRef, useImperativeHandle, useRef, ReactElement, ComponentType } from 'react'; import { SheetSize, SizeInfo, TrueSheet, TrueSheetProps } from '@lodev09/react-native-true-sheet'; -import { StyleSheet, View } from 'react-native'; +import { Keyboard, StyleSheet, View } from 'react-native'; interface BottomModalProps extends TrueSheetProps { children?: React.ReactNode; @@ -28,6 +28,7 @@ const BottomModal = forwardRef( useImperativeHandle(ref, () => ({ present: async () => { + Keyboard.dismiss(); if (trueSheetRef.current?.present) { await trueSheetRef.current.present(); } else { @@ -35,6 +36,7 @@ const BottomModal = forwardRef( } }, dismiss: async () => { + Keyboard.dismiss(); if (trueSheetRef.current?.dismiss) { await trueSheetRef.current.dismiss(); } else { diff --git a/ios/Podfile.lock b/ios/Podfile.lock index f20353deb..68fa9216a 100644 --- a/ios/Podfile.lock +++ b/ios/Podfile.lock @@ -1,6 +1,6 @@ PODS: - boost (1.76.0) - - BugsnagReactNative (7.24.0): + - BugsnagReactNative (7.25.0): - React-Core - BVLinearGradient (2.8.3): - React-Core @@ -778,7 +778,7 @@ EXTERNAL SOURCES: SPEC CHECKSUMS: boost: 7dcd2de282d72e344012f7d6564d024930a6a440 - BugsnagReactNative: 65729c7ee7d9f61b8dbd9f046d920bb38a43931a + BugsnagReactNative: 5b7370cd797d247983ace25aa07cca0058d7d505 BVLinearGradient: 880f91a7854faff2df62518f0281afb1c60d49a3 CocoaAsyncSocket: 065fd1e645c7abab64f7a6a2007a48038fdc6a99 DoubleConversion: 5189b271737e1565bdce30deb4a08d647e3f5f54