-
Notifications
You must be signed in to change notification settings - Fork 24.3k
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
[androidTV] Scrollview still scrollable with dpad when scrollEnabled={false} #29774
Comments
@gedeagas Thanks for your comment, but that merge is also in the 0.61.5 release. |
Yeah, I just try this out yesterday and can confirm that it's not working. And changing @TheDuc can you make a pr about this on |
As a hack, if you add snapToInterval (also broken on dpad), scrollEnabled should behave as expected. I found this out because I'm currently trying to create a horizontal FlatList that will move a set interval amount on dpad-left & dpad-right. Thought I'd be able to do it with snapToInterval but it's completely broken with dpad. |
any updates on this? I created this merge request quite a long time ago, and nothing has happened. |
Hi @TheDuc thanks for the PR. You might have an easier time merging into react-native-tvos as they maintain Android TV as well |
@safaiyeh Thanks for the response, I will create a PR for react-native-tvos, however, the readme and the name clearly state that it is mainly Apple TV focused. |
Yeah I talked to the maintainer of tvos today. They are working on renaming and making it clear they are maintaining AndroidTV. Core RN is focused on Android and iOS. Other platforms are maintained by other folks but are still unified in your app's codebase. Creating all native components for platforms is a big task for 1 repo, so it's spread out amongst people who have a bigger stake in other platforms |
@TheDuc @gedeagas @safaiyeh I tried with overriding dispatchKeyEvent but it dosen't work scroll view still scrolls |
@prakash-altair Indeed, the fix is not working anymore since this PR #25105. |
@prakash-altair Thanks for raising this issue in the react-native-tvos repository and for your efforts! |
@TheDuc have you set scrollEnabled={false} working great for me after setting this prop |
This issue is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 7 days. |
This issue was closed because it has been stalled for 7 days with no activity. |
Description
A scrollview with the
scrollEnabled
prop set tofalse
still scrolls on tv remote dpad input on androidTV.Also onScroll events are fired when the list is scrolled this way.
React Native version:
0.61.5
Expected Results
The scrollview should not scroll when
scrollEnabled
is set to false, regardless of touch, mouse or dpad input.The text was updated successfully, but these errors were encountered: