How does one Display a Hyperlink in React Native App?

前端 未结 11 1192
孤街浪徒
孤街浪徒 2020-12-12 16:38

How do I display a hyperlink in a React Native app?

e.g.

Google 
11条回答
  •  無奈伤痛
    2020-12-12 17:34

    Import Linking the module from React Native

    import { TouchableOpacity, Linking } from "react-native";
    

    Try it:-

     Linking.openURL('http://Facebook.com')}>
          Facebook      
    
    

提交回复
热议问题