How do you work with @gorhom/bottom-sheet #387
|
In order to add the keyboard handling feature, I need to follow Bottom Sheet Keyboard Handling Docs and add |
Answered by
kacperzolkiewski
Jan 23, 2026
Replies: 3 comments 2 replies
const handleOnFocus = useCallback(
(args: NativeSyntheticEvent<TextInputFocusEventData>) => {
animatedKeyboardState.set(state => ({
...state,
target: args.nativeEvent.target,
}));
if (onFocus) {
onFocus(args);
}
},
[onFocus, animatedKeyboardState]
);I need |
2 replies
|
@kacperzolkiewski That works! |
0 replies
|
As discussed, types will be fixed once #389 is merged |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @likeSo,
I think there’s a bug in our type definitions. Both
onBlurandonFocusdo emit event data.Could you try accessing it via
.nativeEvent.targetand ignore the type error for now? Let me know if that works -> if it does, we’ll fix the typings in the next release.Thanks!