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

Header focus issue on AndroidTV #11877

Open
2 of 11 tasks
graszka22 opened this issue Mar 7, 2024 · 1 comment
Open
2 of 11 tasks

Header focus issue on AndroidTV #11877

graszka22 opened this issue Mar 7, 2024 · 1 comment

Comments

@graszka22
Copy link

Current behavior

To reproduce:

  • run the attached code on AndroidTV (you can start a simulator from Android Studio and just run the app with yarn android)
  • press Down, Right key
  • the tab Screen1 should be focused
  • press Enter key
  • navigation should navigate to Screen1
  • however the focus on the tab Screen1 is lost

Expected behavior

Tab Screen1 should be still focused

Reproduction

https://github.com/graszka22/navigation-focus-androidtv-reproduction

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

"dependencies": {
    "@react-navigation/native": "^6.1.10",
    "@react-navigation/native-stack": "^6.9.18",
    "@react-navigation/stack": "^6.3.21",
    "expo": "^50.0.2",
    "react": "18.2.0",
    "react-native": "npm:react-native-tvos@^0.73.2-0",
    "react-native-gesture-handler": "^2.15.0",
    "react-native-safe-area-context": "^4.9.0",
    "react-native-screens": "^3.29.0"
  },
Copy link

github-actions bot commented Mar 7, 2024

The versions mentioned in the issue for the following packages differ from the latest versions on npm:

  • @react-navigation/native (found: 6.1.10, latest: 6.1.14)
  • @react-navigation/stack (found: 6.3.21, latest: 6.3.25)

Can you verify that the issue still exists after upgrading to the latest versions of these packages?

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