diff --git a/src/components/KeyboardAwareScrollView/index.tsx b/src/components/KeyboardAwareScrollView/index.tsx index fc5ec35ec8..a2a1820a34 100644 --- a/src/components/KeyboardAwareScrollView/index.tsx +++ b/src/components/KeyboardAwareScrollView/index.tsx @@ -164,11 +164,15 @@ const KeyboardAwareScrollView = forwardRef< onLayout?.(e); if (handle !== null) { - const { y } = await KeyboardControllerNative.viewPositionInWindow( - handle, - ); - - scrollViewPageY.value = y; + try { + const { y } = await KeyboardControllerNative.viewPositionInWindow( + handle, + ); + + scrollViewPageY.value = y; + } catch { + // ignore + } } }, [onLayout],