Launch URLs inside text

I’m working with a REST API that one of its fields returns a string that may contain URLs, is there any way to launch these URLs if they are within the text? Because I can’t separate URLs from the text…

For example, the API returns:

“Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. http://www.lipsum.com/

If I binding that value to a Text node I can’t launch the URL because is just text. So, I need something like this:

<Text>
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. <LaunchUri Uri="http://www.lipsum.com/" />
</Text>

Is there any way to do this automatically? Moreover, the url will not always be at the end of the string.

I have seen that it is possible to get on Android with the attribute android:autoLink. Maybe you can add a property to text node to enable this option?

Hi

Is there any news about that?

Maybe this can be achieved with richtext. But we do not have that feature yet. You need to explicitly handle clicks on <Text />'s containing URLs

But it’s not just the click event, urls are usually displayed in a different color (blue).

Since we use a custom text renderer, this will most likely be something we introduce when we are done with the fundament for rich text as Vegard said.