[iOS only] Screen won't scroll to multiline TextInput inside of a ScrollView on focus #35717
Labels
Component: ScrollView
Component: TextInput
Related to the TextInput component.
Needs: Triage 🔍
Platform: iOS
iOS applications.
Description
Having
<TextInput multiline={true} />
inside of aScrollView
(which is out of the current visibility) if you want tofocus()
on it — it will set cursor to the input and open up the keyboard but won't scroll to the input on iOS (verified on simulator and snack, haven't tested on real device yet). Works as expected on Android.Version
Was found on 0.64.4 but reproducible on recent expo
Output of
npx react-native info
Steps to reproduce
ScrollView
with enough components to exceed screen height<TextInput multiline />
somewhere in the middle so it would be possible to not see it at all at some pointTextInput
is not visibleTextInput
addonPress
even which will callinputRef.focus()
Expected result:
TextInput
becomes visibleActual result:
Snack, code example, screenshot, or link to a repository
Code to reproduce:
Snack to test: https://snack.expo.dev/@viktorvsk/a4c0c1?platform=ios
The text was updated successfully, but these errors were encountered: