We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
RN = "^0.61.5" react-native-read-more-text = "^1.1.2",
When ReadMore have Text in children who have selectable props. Text can't be selectable. Only tested on Android 28 and 29
<ReadMore numberOfLines={numOfLine} renderTruncatedFooter={this._renderTruncatedFooter} renderRevealedFooter={this._renderRevealedFooter} onReady={this._handleTextReady}> <Text selectable={true} style={styles.container}> {this.renderMessages()} </Text> </ReadMore>
The text was updated successfully, but these errors were encountered:
Exemple of resolution for me with a fork:
Index.js of react-native-read-more-text
render() { let { measured, showAllText } = this.state; + let { numberOfLines, selectable } = this.props; return ( <View> <Text + selectable={selectable} numberOfLines={measured && !showAllText ? numberOfLines : 0} style={this.props.textStyle} ref={text => { this._text = text; }} > {this.props.children} </Text> {this._maybeRenderReadMore()} </View> ); }
Usage:
<ReadMore selectable={true} numberOfLines={numOfLine} renderTruncatedFooter={this._renderTruncatedFooter} renderRevealedFooter={this._renderRevealedFooter} onReady={this._handleTextReady}> <Text style={styles.container}> {this.renderMessages()} </Text> </ReadMore>
Sorry, something went wrong.
No branches or pull requests
RN = "^0.61.5"
react-native-read-more-text = "^1.1.2",
When ReadMore have Text in children who have selectable props.
Text can't be selectable.
Only tested on Android 28 and 29
The text was updated successfully, but these errors were encountered: