Skip to content

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

Open
@Quang-Dong

Description

@Quang-Dong

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!

5771505214108783026.mp4

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions