mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2025-02-22 06:52:41 +01:00
wip
This commit is contained in:
parent
7ce2b979d5
commit
bdfcdbcf38
2 changed files with 5 additions and 3 deletions
|
@ -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<BottomModalHandle, BottomModalProps>(
|
|||
|
||||
useImperativeHandle(ref, () => ({
|
||||
present: async () => {
|
||||
Keyboard.dismiss();
|
||||
if (trueSheetRef.current?.present) {
|
||||
await trueSheetRef.current.present();
|
||||
} else {
|
||||
|
@ -35,6 +36,7 @@ const BottomModal = forwardRef<BottomModalHandle, BottomModalProps>(
|
|||
}
|
||||
},
|
||||
dismiss: async () => {
|
||||
Keyboard.dismiss();
|
||||
if (trueSheetRef.current?.dismiss) {
|
||||
await trueSheetRef.current.dismiss();
|
||||
} else {
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue