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?