Skip to content

Conversation

douglowder
Copy link
Contributor

Motivation

After reviewing changes between my PR #10427 and what was eventually manually imported to master, found two minor adjustments needed.

Test plan

Existing tests should still pass.

@facebook-github-bot
Copy link
Contributor

By analyzing the blame information on this pull request, we identified @javache and @skv-headless to be potential reviewers.

@douglowder
Copy link
Contributor Author

@javache these are the only changes I found that should be needed after merging your manual import of Apple TV code to my repo.

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Dec 19, 2016
@@ -39,7 +39,11 @@ @implementation RCTPlatform
@"forceTouchAvailable": @(RCTForceTouchAvailable()),
@"osVersion": [device systemVersion],
@"systemName": [device systemName],
#if TARGET_OS_TV
@"interfaceIdiom": interfaceIdiom(UIUserInterfaceIdiomTV),
#else
@"interfaceIdiom": interfaceIdiom([device userInterfaceIdiom]),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tested this manually and I don't understand why you need to TARGET_OS_TV, [device userInterfaceIdiom] should already return the right thing.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree, but am having difficulty finding definite Apple documentation stating that [device userInterfaceIdiom] will return this value if and only if the code is running on Apple TV. I'll replace this with a comment, so we can more easily find the issue if Apple changes things underneath us in the future....

@@ -39,6 +39,8 @@ @implementation RCTPlatform
@"forceTouchAvailable": @(RCTForceTouchAvailable()),
@"osVersion": [device systemVersion],
@"systemName": [device systemName],
// userInterfaceIdiom should return UIUserInterfaceIdiomTV if and only if we are running on Apple TV.
// If this ever changes, we may need to adjust this code to avoid breakage when running on tvOS.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't really think we need this comment, it's really just repeating the documentation for [device userInterfaceIdiom]

@javache
Copy link
Member

javache commented Dec 21, 2016

@facebook-github-bot shipit

@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 Dec 21, 2016
@facebook-github-bot
Copy link
Contributor

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

nicktate pushed a commit to nicktate/react-native that referenced this pull request Dec 30, 2016
Summary:
**Motivation**

After reviewing changes between my PR facebook#10427 and what was eventually manually imported to master, found two minor adjustments needed.

**Test plan**

Existing tests should still pass.
Closes facebook#11548

Differential Revision: D4357216

Pulled By: javache

fbshipit-source-id: 571794cda104210bf5236462c0700e07a2a51d29
DanielMSchmidt pushed a commit to DanielMSchmidt/react-native that referenced this pull request Jan 4, 2017
Summary:
**Motivation**

After reviewing changes between my PR facebook#10427 and what was eventually manually imported to master, found two minor adjustments needed.

**Test plan**

Existing tests should still pass.
Closes facebook#11548

Differential Revision: D4357216

Pulled By: javache

fbshipit-source-id: 571794cda104210bf5236462c0700e07a2a51d29
@douglowder douglowder deleted the tvOSfocusengine2 branch March 2, 2017 17:44
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. Import Started This pull request has been imported. This does not imply the PR has been approved.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants