react-native-parsed-text
react-native-parsed-text copied to clipboard
renderText's style does not work after I adding any character inside TextInput tag
Preconditions:
Platform: Android
"react-native": "^0.61.5"
"react-native-parsed-text": "^0.0.22",
issue:
code:
<TextInput> <ParsedText style={{}} parse={ [ { pattern: /((@)\[([^[]*)\]\((([\d\w-]*))\))/giu, style: themedStyle.txtMention, renderText: (str, matches) => matches[3], }, ] } childrenProps={{ allowFontScaling: false }} > {commentTextFormatted} </ParsedText> </TextInput>
matches's result example:
Actual result:
renderText's style does not work after adding any character
Expected result:
Keep renderText's style after adding any character
Help me, please!
https://user-images.githubusercontent.com/31912279/105827819-075b9200-5ff5-11eb-84c5-f6ede56633fe.mp4
same issue :(
found anything ?