1Make sure to import!
2import React from 'react';
3import { Image, View, Text, TouchableOpacity, StyleSheet, Linking } from 'react-native';
4
5
6<TouchableOpacity
7 onPress={() =>
8 Linking.openURL(
9 'https://www.cbc.ca/news/world/coronavirus-covid19-canada-world-march9-2021-1.5941963'
10 )
11 }>
12 <Text>open cbc</Text>
13</TouchableOpacity>