Skip to content

[request] use custom patterns for mentions and hashtags #1

@efstathiosntonas

Description

@efstathiosntonas

Hi Andres, thanks again for the lib. It would be nice if we could use our own regex patterns for hashtags and mentions like react-native-parsed-text is doing it.

use case:

By adding custom patterns we can include the user id on the text string eg {id:1, mention:”andres”} but the user will only see @andres. This can came in handy when the user taps on the mention -> navigate to that user’s public profile.

I’ll post an example on how I’m achieving this with react-native-parsed-text.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions