This commit is contained in:
Julia Friesel
2018-12-20 15:45:13 +01:00
parent 77363511ad
commit 0aa8179570
5 changed files with 49 additions and 27 deletions
+13
View File
@@ -0,0 +1,13 @@
import React from 'react'
import { Linking } from 'react-native'
import AppText from "./app-text"
import styles from '../styles';
export default function Link(props) {
return (
<AppText
style={styles.link}
onPress={() => Linking.openURL(props.href)}
>{props.text}</AppText>
)
}