Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
onPress={() => Linking.openURL(
this.props.news.link
).catch(err => console.error('An error occurred', err))}
underlayColor="#202020"
onLogInTapped() {
let { username, host } = this.state
const url = generateAuthUrl(username, host)
Linking.openURL(url)
this.setState({
urlOpened: true
})
}