Skip to content

Commit d74f3c8

Browse files
committed
fix: could not find view for tag warnings
1 parent 1fdc1c2 commit d74f3c8

1 file changed

Lines changed: 9 additions & 5 deletions

File tree

  • src/components/KeyboardAwareScrollView

src/components/KeyboardAwareScrollView/index.tsx

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -164,11 +164,15 @@ const KeyboardAwareScrollView = forwardRef<
164164
onLayout?.(e);
165165

166166
if (handle !== null) {
167-
const { y } = await KeyboardControllerNative.viewPositionInWindow(
168-
handle,
169-
);
170-
171-
scrollViewPageY.value = y;
167+
try {
168+
const { y } = await KeyboardControllerNative.viewPositionInWindow(
169+
handle,
170+
);
171+
172+
scrollViewPageY.value = y;
173+
} catch {
174+
// ignore
175+
}
172176
}
173177
},
174178
[onLayout],

0 commit comments

Comments
 (0)