'How to detect a link in react native textInput and show preview

I'm trying to do something like this in react-native

I have a TextInput componet that contain text:

"This is a normal text until this google.com link appear, what the hell, it not a text, it a link dude, show me a preview"

So,my question is how can i show (or underline) a web link, in react-native TextInput, so as i type, for example, if i type google.com, it will automatic show(or underline) it a link, and we can press to it and go to google to search something, as when we type the link, it show a preview like Notion

enter image description here

Thank you so much



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source