react-native-parsed-text icon indicating copy to clipboard operation
react-native-parsed-text copied to clipboard

renderText's style does not work after I adding any character inside TextInput tag

Open Quang-Dong opened this issue 4 years ago • 2 comments

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:
image

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

Quang-Dong avatar Jan 26 '21 10:01 Quang-Dong

same issue :(

lym3074 avatar Nov 03 '23 05:11 lym3074

found anything ?

usmanchlorine avatar Feb 14 '24 06:02 usmanchlorine