TVMenuControl module isn't working with React Native Navigation.
See original GitHub issueSo 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
- Use React Native Navigation
- Navigate to a new screen
- call
disableTVMenuKeyit doesn’t work
Issue Analytics
- State:
- Created 3 years ago
- Reactions:5
- Comments:20
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

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.
Removing native stack and replace it with non-native fixt it for me! Ty @NickAVolpe !