joshswan / react-native-autolink

Automatic linking of URLs, phone numbers, emails, handles, and even custom patterns in text for React Native
MIT License
649 stars 82 forks source link

Link within text - simple use case #61

Closed gran33 closed 3 years ago

gran33 commented 3 years ago

Hey, Thanks for awesome lib!

I'm trying to have super simple terms & use text, something like this: PHOTO-2021-08-30-10-39-05

Can't find how to do this in the docs... I'm trying to rename the actual link to clickable text.

Any assist?

Thanks in advance.

joshswan commented 3 years ago

Technically should be achievable using custom matchers or normal URLs combined with a custom renderLink function.

That said, as mentioned in many other issues, the point of this library is to link text in unstructured / user-generated content. If you're creating an interface that you control, it'd be much easier to just manually add buttons and links with their respective handlers.