Skip to content

selectable works on iOS but not on Android. #99

Description

@anilios

When setting selectable = {true} for ParsedText, the copy option appears just fine on iOS on long press. But on android, it does not appear. I was able to see the copy option once in a while on Android also but it is 99% of the time not working.

<ParsedText selectable style={styles.textStyle} parse={[ {type: 'url', style: styles.userNameStyle, onPress: onLink }, { pattern: /userMentionStart-(.*?)-userMentionEnd/, style: styles.userNameStyle, onPress: (id, matchIndex) => {onUser(parseUserId(id));}, renderText: (matchingString, matches) => mapUser(parseUserId(matchingString)) }, { pattern: /hashtagMentionStart-(.*?)-hashtagMentionEnd/, style: styles.hashTag, onPress: (id, matchIndex) => {onHashtag(parseHashtagId(id));}, renderText: (matchingString, matches) => mapHashtag(parseHashtagId(matchingString)) }, {pattern: /#(\w+)/, style: styles.hashTag}, ]} childrenProps={{ allowFontScaling: false }} > { item.postText } </ParsedText>

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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