Skip to content

Scroll Text in tvOS #14852

@skyAnja

Description

@skyAnja

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

  1. Target Platform: tvOS
  2. Development Operating System: macOS Sierra 10.12.5
  3. Build tools: XCode Version 8.3.3 (8E3004b)

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 or TouchableHighlight or ScrollView gets focus, the remote keys for 'up' and 'down' should scroll the View and make text below readable

Actual 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

  • Every Combination of nesting Text or TouchableHighlight or ScrollView or FlatList
  • Give every element a fixed height

Working native solution

descriptionTextView.UserInteractionEnabled = true; descriptionTextView.ScrollEnabled = true; descriptionTextView.PanGestureRecognizer.AllowedTouchTypes = new NSNumber[]{(int)UITouchType.Indirect}; descriptionTextView.ShowsVerticalScrollIndicator = true;

Metadata

Metadata

Assignees

No one assigned

    Labels

    StaleThere has been a lack of activity on this issue and it may be closed soon.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions