Created
January 31, 2019 01:11
-
-
Save aloukissas/47f5d7209a6f21f669d178335eae103f 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 { Text, View } from "react-native"; | |
import { WebBrowser } from "expo"; | |
class LinkingDemoModal extends React.Component { | |
handleOpenUrl = url => { | |
WebBrowser.openBrowserAsync(url); | |
} | |
render() { | |
return ( | |
<View | |
style={{ | |
flex: 1, | |
justifyContent: "center", | |
alignItems: "center" | |
}} | |
> | |
<Text onPress={() => this.handleOpenUrl("https://chck.app")}> | |
Go to website | |
</Text> | |
</View> | |
); | |
} | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment