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

Use BackHandler in Modal at tvOS #14636

Closed
redak105 opened this issue Jun 20, 2017 · 5 comments
Closed

Use BackHandler in Modal at tvOS #14636

redak105 opened this issue Jun 20, 2017 · 5 comments
Labels
Resolution: Locked This issue was locked by the bot.

Comments

@redak105
Copy link

redak105 commented Jun 20, 2017

Hi,
I try to use BackHandler by tutorial at tvOS. I want to catch press at menu on remote in Modal view.
But, when I show Modal, Modal view stop to listen AppleTV remote events. It stops to sending any RCTTVNavigationEventNotification. I was only particularly successful with transparent modal view. But it didn't work at some designs, mostly connected with flex style.
I want to update my state of my parent ,to let him know, that Modal was closed. Basically set state, which showing this Modal to false.

I am using react native 0.45.1 with npm 5.03.

Can you give me a hint how to do it or fix it?

@hramos
Copy link
Contributor

hramos commented Jun 20, 2017

Hey, thanks for reporting this issue!

It looks like your description is missing some necessary information. Can you please add all the details specified in the template? This is necessary for people to be able to understand and reproduce the issue being reported.

I am going to close this, but feel free to open a new issue with the additional information provided. Thanks!

@hramos hramos closed this as completed Jun 20, 2017
@redak105
Copy link
Author

redak105 commented Jun 21, 2017

Instriction to create simple example at tvOS.
Create component which is showing Modal. In this modal will be another component. Lets call it DetailComponent. In this component add BackHandler to catch events from remote. In render show only some text.
Run this and you show Modal with DetailComponent. Whe you touch menu at remote. BackHandler is called.
Now add some touchable to render of DetailComponent.
Reload it and show modal again. When you touch menu at remote, BackHandler is not called now.

When I was looking to native Obj-c code. In the RCTTVRemoteHandler, when I show Modal, didn't call listener to UIGestureRecognizer. Then it can't send notification RCTTVNavigationEventNotification with type of event to Javascript code.

@ghost
Copy link

ghost commented Jun 27, 2017

I have the same problem

@redak105
Copy link
Author

How I can reopen this issue?

@hramos
Copy link
Contributor

hramos commented Jul 18, 2017

@redak105 let us know after you've edited your original comment and we can re-open it. As I said earlier, there's a template that needs to be filled out in order to keep an issue open. You can see it when you create a new issue.

@facebook facebook locked as resolved and limited conversation to collaborators Jun 20, 2018
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Jul 18, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Resolution: Locked This issue was locked by the bot.
Projects
None yet
Development

No branches or pull requests

3 participants