i want to get all links from a text in react native. Like
someFunction.getLinks('Any links to github.com here? If not, contact [email protected]');
which should return something like
[
{
type: 'url',
value: 'github.com',
href: 'http://github.com'
},
{
type: 'email',
value: '[email protected]',
href: 'mailto:[email protected]'
}
]
this is possible with Linkify in react but how can we do this in react native?
Working App: Expo Snack