Связывание в 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>
Donald Duck