Closed mlecoq closed 1 week ago
Describe the bug When I add KeyboardProvider and I use withTiming in an animation, my app freezes (only on android).
KeyboardProvider
withTiming
Code snippet
const onInputFocus = useCallback( (e: NativeSyntheticEvent<TextInputFocusEventData>) => { onFocus?.(e); isFocused.value = withTiming(1, {duration: 300}); // freezes on android // isFocused.value = 1; }, [isFocused, onFocus], ); const onInputBlur = useCallback( (e: NativeSyntheticEvent<TextInputFocusEventData>) => { onBlur?.(e); isFocused.value = withTiming(0, {duration: 300}); // freezes on android //isFocused.value = 0; }, [isFocused, onBlur], );
in this code
Repo for reproducing https://github.com/mlecoq/keyboardControllerIssue
To Reproduce Steps to reproduce the behavior:
Smartphone (please complete the following information):
Describe the bug When I add
KeyboardProvider
and I usewithTiming
in an animation, my app freezes (only on android).Code snippet
in this code
withTiming
, my app doesn't freeze.KeyboardProvider
my app doesn't freeze.Repo for reproducing https://github.com/mlecoq/keyboardControllerIssue
To Reproduce Steps to reproduce the behavior:
Smartphone (please complete the following information):