Skip to content

[Android] Text in FlatList not selectable #14746

Description

@dgruseck

Description

Text component rendered in FlatList is not selectable even if selectable={true} is specified.
Another Issue for ListView #12342

Reproduction

this.props.data should be an array like [{ key: 1, text: 'Some text' }]
renderListItem = ({ item }) => {
return (
<View>
<Text selectable>{item.text}</Text>
</View>
);
}
render() {
return (
<FlatList
data={this.props.data}
renderItem={this.renderListItem}
keyExtractor={item => item.key}
/>
);
}

Solution

Need to be able to select Text in FlatList.

Additional Information

React Native version: 0.44
Platform: Android, (iOS is working)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions