-
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
Scroll Text in tvOS #14852
Comments
I have the same problem, so I've created a custom bridged component, if you need some help just tell me I think we need to improve a lot of things to have a better experience on react-native tvOS |
Thanks for the bug report -- I'll take a look at this issue. |
@JulienKode @skyAnja please see https://github.com/dlowder-salesforce/react-native/tree/tvos-scrollview-focus for a possible fix. Includes additions to the RNTester ScrollView example. |
@dlowder-salesforce perfect solution 👍 |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Maybe the issue has been fixed in a recent release, or perhaps it is not affecting a lot of people. If you think this issue should definitely remain open, please let us know why. Thank you for your contributions. |
@dlowder-salesforce that does indeed look like a perfect solution! Is there any plan to get this merged in? |
Is this a bug report?
Yes
Have you read the Bugs section of the Contributing to React Native Guide?
Yes
Environment
react-native-cli: 2.0.1
react-native: 0.43.2
node: v6.10.3
npm: 3.10.10
yarn: 0.23.4
Steps to Reproduce
Text that is vertically too large to fit on a screen. No possibility to scroll this text
Expected Behavior
If the
Text
orTouchableHighlight
orScrollView
gets focus, the remote keys for 'up' and 'down' should scroll the View and make text below readableActual Behavior
Nothing happens. If there is an element below, this gets focus. Also doesn't work if there is no element above or below
Tested Possibilities
Text
orTouchableHighlight
orScrollView
orFlatList
Working native solution
descriptionTextView.UserInteractionEnabled = true; descriptionTextView.ScrollEnabled = true; descriptionTextView.PanGestureRecognizer.AllowedTouchTypes = new NSNumber[]{(int)UITouchType.Indirect}; descriptionTextView.ShowsVerticalScrollIndicator = true;
The text was updated successfully, but these errors were encountered: