Closed nahcnats closed 1 year ago
if my text is "the cow jump over [test](www.google.com) and found gold". When I use the following:
[test](www.google.com)
onPress: (match) => { console.log(match.getReplacerArgs()[2]) }
It returns something like @__Element etc. Why? Where did I do wrong? Appreciate your assistance.
My suggestion would be to avoid using getReplacerArgs directly and instead use match.matchedText, match.getAnchorText(), match.getType(), etc. depending on what you're trying to accomplish.
getReplacerArgs
match.matchedText
match.getAnchorText()
match.getType()
if my text is "the cow jump over
[test](www.google.com)
and found gold". When I use the following:onPress: (match) => { console.log(match.getReplacerArgs()[2]) }
It returns something like @__Element etc. Why? Where did I do wrong? Appreciate your assistance.