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

Add onMenuButton event to RNSScreenView #1

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

goranche
Copy link
Collaborator

@goranche goranche commented Feb 2, 2023

Implement recogniser to trigger mentioned event.

Description

Implements a recogniser on RNSScreenView for the tvOS remote that watches for the menu button being pressed.
When this happens, a JS event named onMenuButton is triggered.

NOTE

This branch / PR is based on the 3.13.1 tag, since that was the version that was used in the example application we used for investigation and development.

Before merging (automatic merge should not be possible) the changes should be based (and modified to match) from the version that'll be used.

It seems Fabric support was added in later versions and some substantial changes were introduced. This should not affect the functionality, but a manual merge will be needed first.

Implement recogniser to trigger mentioned event.
@goranche goranche marked this pull request as draft February 2, 2023 12:13
@goranche
Copy link
Collaborator Author

goranche commented Feb 2, 2023

I hate the code styling (and some patterns), but tried to match the existing code 🤷‍♂️

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

Successfully merging this pull request may close these issues.

1 participant