KeyboardAvoidingView does not handle the onLayout prop correctly #32608
Labels
API: Keyboard
Component: KeyboardAvoidingView
Needs: Triage 🔍
Resolution: Locked
This issue was locked by the bot.
Description
When the
onLayout
prop is provided theKeyboardAvoidingView
doesn't adjust the view to avoid overlap with the keyboard. If you remove theonLayout
prop everything works as expected.This happens because the
KeyboardAvoidingView
component relies on theonLayout
prop internally, so when we supply the prop ourselves it overrides the internal implementation.This behavior is seen regardless of the value supplied to the
behavior
prop.Version
0.66.0
Output of
react-native info
N/A
Steps to reproduce
Use the
KeyboardAvoidingView
and pass in theonLayout
prop.Snack, code example, screenshot, or link to a repository
No response
The text was updated successfully, but these errors were encountered: