expo#WebBrowser TypeScript Examples
The following examples show how to use
expo#WebBrowser.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: index.tsx From safetraceapi with GNU General Public License v3.0 | 6 votes |
LinksScreen = () => {
return (
<BaseLayout
contentContainerStyle={{ paddingTop: 15 }}
>
<OptionButton
icon="md-school"
label="Read the Expo documentation"
onPress={() => WebBrowser.openBrowserAsync('https://safetraceapi.org')}
/>
<OptionButton
icon="md-compass"
label="Read the React Navigation documentation"
onPress={() =>
WebBrowser.openBrowserAsync('https://reactnavigation.org')
}
/>
<OptionButton
icon="ios-chatboxes"
label="Ask a question on the forums"
onPress={() => WebBrowser.openBrowserAsync('https://forums.expo.io')}
isLastOption={true}
/>
</BaseLayout>
);
}