You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Very interesting bug with useAnimatedReaction hook.
This hook works globally for keyboard on all screens, so if GiftedChat was rendered and we keep it in memory then any keyboard opening calls handleTextInputFocusWhenKeyboardShow callback that tries to focus on GiftedChat TextInput. And it breaks all TextInputs in apps.
Steps to Reproduce / Code Snippets
(optional) Use @react-navigation in your app (with setting to keep rendered screens in app memory)
Add <GiftedChat /> to the second screen of your app
Add some another <TextInput /> to the first screen of your app
Open your app and focus on your <TextInput /> on the first screen
Touch some place out of the this text input (it works correctly, keyboard is hide)
Open the second screen with GiftedChat (to render this component first time)
Open the first screen with <TextInput /> again
Touch some place out of the this text input (it works incorrect alreadt, keyboard is show anyway)
Expected Results
Keyboard is hide on the last step when we tap out of the our <TextInput />
Additional Information
Nodejs version: 18
React version: 18.3.1
React Native version: 0.75.4
react-native-gifted-chat version: 2.6.4
Platform(s) (iOS, Android, or both?): both
TypeScript version: 5.0.4
The text was updated successfully, but these errors were encountered:
Issue Description
Very interesting bug with
useAnimatedReaction
hook.This hook works globally for keyboard on all screens, so if GiftedChat was rendered and we keep it in memory then any keyboard opening calls
handleTextInputFocusWhenKeyboardShow
callback that tries to focus on GiftedChat TextInput. And it breaks allTextInput
s in apps.Steps to Reproduce / Code Snippets
@react-navigation
in your app (with setting to keep rendered screens in app memory)<GiftedChat />
to the second screen of your app<TextInput />
to the first screen of your app<TextInput />
on the first screen<TextInput />
againExpected Results
Keyboard is hide on the last step when we tap out of the our
<TextInput />
Additional Information
The text was updated successfully, but these errors were encountered: