Open nkubatyi opened 2 weeks ago
:warning: | Newer Version of React Native is Available! |
---|---|
:information_source: | You are on a supported minor version, but it looks like there's a newer patch available - 0.72.15. Please upgrade to the highest patch for your minor or latest and verify if the issue persists (alternatively, create a new project and repro the issue in it). If it does not repro, please let us know so we can close out this issue. This helps us ensure we are looking at issues that still exist in the most recent releases. |
As per the above repro provided. I am seeing keyboardWillHide
keyboardDidHide
events on focus of TextInput with showSoftInputOnFocus as false.
As per your problem statement it's called when we blur the TextInput. @nkubatyi Can you confirm once on this.
Description
I'm encountering an issue with the TextInput component in React Native when using the
showSoftInputOnFocus
prop. When theTextInput
gains focus, the keyboard does not open, thekeyboardWillShow
andkeyboardDidShow
events are not triggered. However, upon losing focus, thekeyboardWillHide
andkeyboardDidHide
events are fired.This behavior causes problems with Keyboard Aware components that listen for these events.
Steps to reproduce
TextInput
component with theshowSoftInputOnFocus
prop set to false.keyboardWillShow
,keyboardDidShow
,keyboardWillHide
, andkeyboardDidHide
events.TextInput
and observe thatkeyboardWillShow
andkeyboardDidShow
events are not triggered.keyboardWillHide
andkeyboardDidHide
events are triggered.React Native Version
0.72.9
Affected Platforms
Runtime - iOS
Output of
npx react-native info
Stacktrace or Logs
Reproducer
https://snack.expo.dev/@kubatyi.dev/692c3c
Screenshots and Videos
No response