Skip to content

Instantly share code, notes, and snippets.

@thomascuriger
Created April 23, 2019 09:26
Show Gist options
  • Save thomascuriger/4d87aee9976eb4477354926cc921e4ad to your computer and use it in GitHub Desktop.
Save thomascuriger/4d87aee9976eb4477354926cc921e4ad to your computer and use it in GitHub Desktop.
shit
<ThemeContext.Provider value={getTheme(brotheme)}>
<SafeAreaView style={{ flex: 1, backgroundColor: '#fff' }}>
<View style={{ flex: 1 }}>
<View>
<Toolbar
leftElement="arrow-back"
onLeftElementPress={() => this.props.navigation.goBack()}
centerElement={i18n.t("General.toolbar_transport")}
style={{
titleText: {
fontWeight: '100',
fontFamily: "din-light",
},
}}
/>
</View>
<View>
<WebView
source={{ uri: 'https://www.zuerichmarathon.ch/kopie-von-anreise-transfer-de' }}
javaScriptEnabled={true}
scalesPageToFit={false}
injectedJavaScript={'document.getElementById("SITE_HEADER").style.display = "none";document.getElementById("SITE_BACKGROUND").style.display = "none";document.getElementById("SITE_FOOTER").style.display = "none";'}
/>
</View>
</View>
</SafeAreaView>
</ThemeContext.Provider>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment