Created
January 31, 2019 01:53
-
-
Save aloukissas/4b7abe7fb9ebcecbd549126f4f13cefd to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from "react"; | |
import { Linking, Text, View } from "react-native"; | |
class LinkingDemoModal extends React.Component { | |
handleOpenUrl = url => { | |
Linking.openURL(url); | |
} | |
render() { | |
return ( | |
<View | |
style={{ | |
flex: 1, | |
justifyContent: "center", | |
alignItems: "center" | |
}} | |
> | |
<Text onPress={() => this.handleCallPhone("tel:+13105552368")}> | |
Go to website | |
</Text> | |
</View> | |
); | |
} | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment