react-native-parsed-text
react-native-parsed-text copied to clipboard
how to implements using Hashtag and Bold text patterns together?
i added this pattern to handle hashtags: // #HASHTAG
{
pattern: /#[^\s!@#$%^&*()=+./,\[{\]};:'"?><،؛؟-]+/gi,
style: [_linkStyle, linkStyle, boldFont],
onPress: handleHashtagPress,
}
and added this pattern to handle bold text: // **TEXT TO BOLD**
{
pattern: /(?:\*\*)([^*]*)(?:\*\*)/,
style: boldStyle,
renderText: (matchingString, matches) => matches[1],
},
example: **test bold and #hashtag in text**
when using these together, bold text pattern not works. when change priority of patterns, hashtags not works, how can i use both patterns to support hashtag and bold text?
https://github.com/taskrabbit/react-native-parsed-text/issues/81
can you please write an example base on my question options? #81 not works for me!
can you please write an example base on my question options? #81 not works for me!
The point of #81 is: It doesn't work. I'm waiting for a fix too.