-
Notifications
You must be signed in to change notification settings - Fork 25.2k
Possible regression on #29292 #30770
Copy link
Copy link
Closed
Labels
API: KeyboardPlatform: AndroidAndroid applications.Android applications.StaleThere has been a lack of activity on this issue and it may be closed soon.There has been a lack of activity on this issue and it may be closed soon.
Metadata
Metadata
Assignees
Labels
API: KeyboardPlatform: AndroidAndroid applications.Android applications.StaleThere has been a lack of activity on this issue and it may be closed soon.There has been a lack of activity on this issue and it may be closed soon.
Type
Fields
Give feedbackNo fields configured for issues without a type.
Description
The issue #29292 makes a regression on the
keyboardDidHidebehavior for theAndroid platform, if it happens that you have multiple
ReactRootViews on thesame application at once, the
keyboardDidHideevent happens for everyReactRootViewand the last event data will prevail.
Steps To Reproduce
Having multiple
ReactRootViews is specially common usingreact-native-navigation,in this example we provide two
ReactRootView, one as main canvas (in red) and one on thetop right screen border (in blue), the event
keyboardDidHideis triggered twice,where in the first trigger it sends the "right" value, because it is being triggered
by the main canvas (in red), and on the second trigger it sends the "wrong" value, since
it is being triggered by the top right screen view (in blue).
Comparing this behavior with the iOS counterpart the event is triggered only once
and it sends the right value, for this exact same code.
Snack, code example, screenshot, or link to a repository:
https://github.com/andres-torres-marroquin/RN29292