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

Apple TV: TouchableOpacity and Button need hasTVPreferredFocus support #15561

Closed
wants to merge 4 commits into from

Conversation

douglowder
Copy link
Contributor

@douglowder douglowder commented Aug 19, 2017

Motivation

Give TouchableOpacity and Button the same TV focus support as is already present in TouchableHighlight.

Test plan

Manual testing on TV simulator and devices.

@facebook-github-bot facebook-github-bot added GH Review: review-needed CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. Import Started This pull request has been imported. This does not imply the PR has been approved. and removed GH Review: review-needed labels Aug 19, 2017
@facebook-github-bot
Copy link
Contributor

@hramos has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

@facebook-github-bot
Copy link
Contributor

I tried to merge this pull request into the Facebook internal repo but some checks failed. To unblock yourself please check the following: Does this pull request pass all open source tests on GitHub? If not please fix those. Does the code still apply cleanly on top of GitHub master? If not can please rebase. In all other cases this means some internal test failed, for example a part of a fb app won't work with this pull request. I've added the Import Failed label to this pull request so it is easy for someone at fb to find the pull request and check what failed. If you don't see anyone comment in a few days feel free to comment mentioning one of the core contributors to the project so they get a notification.

@facebook-github-bot facebook-github-bot added Import Failed and removed Import Started This pull request has been imported. This does not imply the PR has been approved. labels Aug 19, 2017
@douglowder douglowder changed the title Apple TV: TouchableOpacity needs hasTVPreferredFocus support Apple TV: TouchableOpacity and Button need hasTVPreferredFocus support Aug 21, 2017
@douglowder
Copy link
Contributor Author

@hramos could you please try importing this again?

@facebook-github-bot facebook-github-bot added the Import Started This pull request has been imported. This does not imply the PR has been approved. label Aug 23, 2017
@facebook-github-bot
Copy link
Contributor

@hramos has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

1 similar comment
@facebook-github-bot
Copy link
Contributor

@hramos has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

@hramos
Copy link
Contributor

hramos commented Aug 24, 2017

Update, this failed internally with the following:

2 Flow errors detected!
=====Flow error #0====
/Libraries/Components/Button.js line 59 col 22-3: property `hasTVPreferredFocus`
Property not found in
react.js line 79 col 35-46: object type
=====Flow error #1====
/Libraries/Components/Button.js line 98 col 7-25: property `hasTVPreferredFocus`
Property not found in
/Libraries/Components/Button.js line 101 col 9-18: object type

@douglowder
Copy link
Contributor Author

Thanks @hramos , I just submitted what I think is the fix. My environment is giving me a flow version mismatch and hundreds of flow errors, so it's hard to run those tests locally :)

@facebook-github-bot
Copy link
Contributor

@hramos has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

@hramos
Copy link
Contributor

hramos commented Aug 29, 2017

Quick update: this is waiting on some internal snapshot tests we need to update, to account for the new prop. It's on my todo list.

@facebook-github-bot
Copy link
Contributor

@dlowder-salesforce I tried to find reviewers for this pull request and wanted to ping them to take another look. However, based on the blame information for the files in this pull request I couldn't find any reviewers. This sometimes happens when the files in the pull request are new or don't exist on master anymore. Is this pull request still relevant? If yes could you please rebase? In case you know who has context on this code feel free to mention them in a comment (one person is fine). Thanks for reading and hope you will continue contributing to the project.

@hramos
Copy link
Contributor

hramos commented Oct 18, 2017

This is hopefully landing tonight. Sorry for the delay.

@hramos hramos added the Merged This PR has been merged. label Mar 8, 2019
@react-native-bot react-native-bot removed the Import Started This pull request has been imported. This does not imply the PR has been approved. label Mar 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. Merged This PR has been merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants