Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Keyboard is dismissed immediately when focusing on TextInput field on non-outer tabs for react-native-tab-view #11938

Open
3 of 12 tasks
alianza opened this issue Apr 15, 2024 · 1 comment

Comments

@alianza
Copy link

alianza commented Apr 15, 2024

Current behavior

When focusing on an TextInput field on a tab that is not the first or last tab the keyboard open and get's dismissed again immediately.

screen-20240411-194429.mp4

When using lazy={true} the issue occurs once every time you navigate to a non-outer tab (any except the first/last one)

Expected behavior

I would expect the keyboard to remain opened and focused on the TextInput until the user dismisses it.

Reproduction

https://snack.expo.dev/@phyrexalianza/react-native-tab-view-textinput-non-outter-routes-bug

Platform

  • Android
  • iOS
  • Web
  • Windows
  • MacOS

Packages

  • @react-navigation/bottom-tabs
  • @react-navigation/drawer
  • @react-navigation/material-top-tabs
  • @react-navigation/stack
  • @react-navigation/native-stack
  • react-native-tab-view

Environment

  • I've removed the packages that I don't use
package version
react-native-tab-view 3.5.2
react-native-pager-view 6.2.3
@react-navigation/native 6.1.17

Only packages in snack reproduce example

Copy link

Couldn't find version numbers for the following packages in the issue:

  • @react-navigation/native

Can you update the issue to include version numbers for those packages? The version numbers must match the format 1.2.3.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant