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
Hi there, When the text has multiple hashtag, how could I know witch of them was pressed? e.g: Nice job! #foo #bar
I'd like to do a feature likes Instagram, search for specific hashtag, but onPress is generic. Thanks
The text was updated successfully, but these errors were encountered:
pattern:
{ pattern: /#[^\s!@#$%^&*()=+./,\[{\]};:'"?><،؛؟-]+/gi, style: [_linkStyle, linkStyle, boldFont], onPress: handleHashtagPress, }
on press hashtag:
const handleHashtagPress = (value, matchIndex) => { navigation.push('Posts', { hashtag: {text: value.slice(1)}, // value.slice(1): value without # sign }); };
Sorry, something went wrong.
No branches or pull requests
Hi there,
When the text has multiple hashtag, how could I know witch of them was pressed?
e.g:
Nice job!
#foo #bar
I'd like to do a feature likes Instagram, search for specific hashtag, but onPress is generic.
Thanks
The text was updated successfully, but these errors were encountered: