close

How does one Display a Hyperlink in React Native App?

Hello Guys, How are you all? Hope You all Are Fine. Today we are going to learn How does one Display a Hyperlink in React Native App? in javascript. So Here I am Explain to you all the possible methods here.

Without wasting your time, Let’s start This Article.

How does one Display a Hyperlink in React Native App ?

  1. How does one Display a Hyperlink in React Native App ?

    does one Display a Hyperlink in React Native App You can use linking property <Text style={{color: 'skyblue'}} onPress={() => Linking.openURL('http://yahoo.com')}> Yahoo

  2. does one Display a Hyperlink in React Native App

    does one Display a Hyperlink in React Native App You can use linking property <Text style={{color: 'skyblue'}} onPress={() => Linking.openURL('http://yahoo.com')}> Yahoo

Method 1

Something like this:

<Text style={{color: 'blue'}}
      onPress={() => Linking.openURL('http://google.com')}>
  Google
</Text>

using the Linking module that’s bundled with React Native.

import { Linking } from 'react-native';

Method 2

You can use linking property <Text style={{color: ‘skyblue’}} onPress={() => Linking.openURL(‘http://yahoo.com’)}> Yahoo

Summery

It’s all About this article. Hope all method helped you a lot. Comment below Your thoughts and your queries. Also, Comment below which method worked for you? Thank You.

Leave a Comment