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
No description provided.
The text was updated successfully, but these errors were encountered:
When I click on normal texts, I want to trigger the press event of the TouchableOpacity that warps this twitterTextView
Sorry, something went wrong.
Yeah I'm not sure why the non-tags are clickable here.
index.js
return ( <Text {...extraProps}> {splitStringByMatches(str, matches).map(([str, pattern], i) => { return ( <Text key={i} style={style[pattern]} onPress={(e) => { const handle = onPress[pattern]; if (handle) { return handle(e, str); } return undefined; }} children={str} /> ); })} </Text> );
please try below. this works for me.
return ( <Text {...extraProps}> {splitStringByMatches(str, matches).map(([str, pattern], i) => { if (pattern){ return ( <Text key={i} disabled={!extractHashtags} style={style[pattern]} onPress={(e) => { const handle = onPress[pattern]; if (handle) { return handle(e, str); } return undefined; }} children={str} /> ); } else { return ( <Text key={i} children={str} /> ); } })} </Text> );
No branches or pull requests
No description provided.
The text was updated successfully, but these errors were encountered: