forked from facebook/react-native
-
Notifications
You must be signed in to change notification settings - Fork 1
[WIP] Add support for Android TV devices #1
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
Open
krzysztofciombor
wants to merge
49
commits into
master
Choose a base branch
from
feature/AndroidTV
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
49 commits
Select commit
Hold shift + click to select a range
0e40e4f
Add LEANBACK_LAUNCHER to RNTester AndroidManifest
6dc6bb5
Add ReactAndroidTVViewManager
8a71318
Add isRunningOnTv flag to AndroidInfoModule constants
7788de1
Expose isTV flag in Platform constants
29eb058
Copy iOS TVEventHandler implementation over to Android
bf86743
Change TV check in Touchable component
2eac232
Use ReactAndroidTVViewManager as default RootView
b961f2d
Prevent TouchableNativeFeedback from crashing on Android TV
51df826
Prevent crash when asking for overlay permission on Android TV
d8c0f64
Decouple ReactAvtivityDelegate from ReactAndroidTVRootViewHelper
4a75d81
Add comment to RNTester Manifest for leanback launcher
5e7a6cd
Change isRunningOnTV to uiMode
c4218f6
Change condition check to dispatch hotspot update
a5a7b3b
Return true after dispatchKeyEvent
beb738f
Fix isTV Platform constants on iOS
ac9d584
Consolidate TVEventHandler to single file
318218f
Remove mReactContext local variable from AndroidInfoModule
2c37223
Minor renamed in ReactAndroidTVRootViewHelper
4aeca35
Prevent sending select event if target component is disabled
9e04243
Revert "Return true after dispatchKeyEvent"
1a68b10
Handle focus change events in ReactRootView
8ea9950
Add launcher banner icon
db8cf86
Inline keyEvent handler methods
ee5455f
Inline back retrieving RCTDeviceEmitter
c763506
Add Javadocs
fb628ab
Add BuildingForAndroidTV docs
083c1b4
[WIP] Support opening dev menu by long playPause button press
6b2a82c
Add copyright header
a7397bf
Merge TV devices docs into one
9404bff
Change dev menu trigger to fastForward instead of playPause
baaaf5a
Add rewind/fastForward buttons support
4e4d603
Fix BUCK config
a41b70d
Move ReactAndroidTVRootViewHelper to react/ package
acf321d
Fix BUCK config
d2177d5
Fix tests with AndroidInfoModule
a087d05
Add support for hasTVPreferredFocus on Android TV devices
5dc25ab
Remove obsolete docs
3b709d2
Fix post-rebase issues
5897b0e
Fix exporting TVViewPropTypes on Android
0894fdb
Code review changes
d6b1231
Rename TVRootViewHelper to HWInputDeviceHelper
61ff2ce
Improve handleKeyEvent method
8fc9b65
Improve HWInputDeviceHelper events dispatching
dcb6ef7
Rename onTVNavEvent to onHWKeyEvent
1eccd4f
Add getUseDeveloperSupport check for fast forward long press
3c4a8eb
Use ReactRootView sendEvent in HWInputDeviceHelper
15bf287
Add "package" to sendEvent method
e79041a
Merge branch 'master' into feature/AndroidTV
9a6be6d
Fix ReactAndroidHWInputDeviceHelper.java license
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 0 additions & 11 deletions
11
Libraries/Components/View/PlatformViewPropTypes.android.js
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@kmagiera Note: I'm not exactly sure this is the correct way to handle that, as it relies on
cmp.propsdirectlyThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe call to this
touchableHandleStartShouldSetResponder()instead?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
or nevermind, this looks ok to me, TouchableMixin is already accesing that prop in this method:
touchableHandleStartShouldSetResponder