Skip to content

selectable works on iOS but not on Android. #99

Open
@anilios

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>

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