React Native (iOS)で電話番号のリンク
Androidはまた別ぽいけどiOSだけ対応でざっくりやるならこんな感じ
<View> <Text style={{textDecorationLine: 'underline' }} onPress={() => { // <actural phone number>は実際の番号で置き換える const url = 'tel:<actural phone number>' Linking.openURL(url).catch(err => console.error('An error occurred', err)); }} > 電話をかける </Text> </View>
Linking
コンポーネント使ってtel:nnnuuuummmm
形式のurlひらけば良い