diff options
Diffstat (limited to 'src/components/Dialog')
-rw-r--r-- | src/components/Dialog/index.tsx | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/src/components/Dialog/index.tsx b/src/components/Dialog/index.tsx index c9455c5cc..f16a9925d 100644 --- a/src/components/Dialog/index.tsx +++ b/src/components/Dialog/index.tsx @@ -214,12 +214,15 @@ export const ScrollableInner = React.forwardRef<ScrollView, DialogInnerProps>( } }) - useKeyboardHandler({ - onEnd: e => { - 'worklet' - runOnJS(setKeyboardHeight)(e.height) + useKeyboardHandler( + { + onEnd: e => { + 'worklet' + runOnJS(setKeyboardHeight)(e.height) + }, }, - }) + [], + ) const basePading = (isIOS ? 30 : 50) + (isIOS ? keyboardHeight / 4 : keyboardHeight) |