Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Quang-Dong opened this issue Jan 26, 2021 · 2 comments

Comments

@Quang-Dong
Copy link

Quang-Dong commented Jan 26, 2021

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
@lym3074
Copy link

lym3074 commented Nov 3, 2023

same issue :(

@usmanchlorine
Copy link

found anything ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants