question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

TVMenuControl module isn't working with React Native Navigation.

See original GitHub issue

So I have been working on a project using React Native Navigation and been seeing some problems with TVMenuControl Module for disabling and enabling (it’s not working) I believe it’s related to how React Native Navigation basically on every screen navigation sets that screen as the RootView.

I also noticed that the bridge is working fine but the issue might be with NSNotificationCenter it’s not posting the notification.

React Native version: 0.62

Steps To Reproduce

  1. Use React Native Navigation
  2. Navigate to a new screen
  3. call disableTVMenuKey it doesn’t work

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:5
  • Comments:20

github_iconTop GitHub Comments

3reactions
cnblackxpcommented, May 31, 2020

thanks @dlowder-salesforce, but I just want to mention that my issue isn’t related to the navigation not working. the enableTVMenuKey and disableTVMenuKey aren’t working properly. I have use cases in the project where I don’t want the default menuKey behaviour and others where I do and the postNotification calls aren’t working on the same screen when called from react native side. postNotification isn’t responding well and I think it’s related to the way react native navigation is using multithreading somehow to set root views. but I am not sure, what I am sure of is that postNotification using things like disableTVMenuKey and enableTVMenuKey isn’t working well.

again thanks for the help. it’s much appreciated.

2reactions
RobertArissencommented, May 10, 2022

Removing native stack and replace it with non-native fixt it for me! Ty @NickAVolpe !

Read more comments on GitHub >

github_iconTop Results From Across the Web

TVMenuControl module isn't working with React Native ...
Steps To Reproduce. Use React Native Navigation; Navigate to a new screen; call disableTVMenuKey it doesn't work.
Read more >
Troubleshooting | React Navigation
Troubleshooting. This section attempts to outline issues that users frequently encounter when first getting accustomed to using React Navigation.
Read more >
Building For TV Devices - React Native
Access to touchable controls: When running on Android TV the Android framework will automatically apply a directional navigation scheme based on ...
Read more >
npm:react-native-screens-tvos - Skypack
This project aims to expose native navigation container components to React Native. It is not designed to be used as a standalone library ......
Read more >
Unable to resolve module 'react-navigation' - Stack Overflow
npm i react-navigation @react-native-community/masked-view ... And got this problem, tried everything from the internet - nothing worked.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found