Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

linking in react native

Make sure to import!
import React from 'react';
import { Image, View, Text, TouchableOpacity, StyleSheet, Linking } from 'react-native';


<TouchableOpacity
        onPress={() =>
          Linking.openURL(
            'https://www.cbc.ca/news/world/coronavirus-covid19-canada-world-march9-2021-1.5941963'
          )
        }>
        <Text>open cbc</Text>
</TouchableOpacity>
 
PREVIOUS NEXT
Tagged: #linking #react #native
ADD COMMENT
Topic
Name
7+1 =