BlueWallet/screen/wallets/hodlHodlWebview.js

41 lines
830 B
JavaScript
Raw Normal View History

2020-06-15 19:47:54 +01:00
import React, { Component } from 'react';
import { WebView } from 'react-native-webview';
import PropTypes from 'prop-types';
2020-12-04 12:50:23 +03:00
import { SafeBlueArea } from '../../BlueComponents';
import navigationStyle from '../../components/navigationStyle';
2020-06-15 19:47:54 +01:00
export default class HodlHodlWebview extends Component {
constructor(props) {
super(props);
const uri = props.route.params.uri;
this.state = {
uri,
};
}
render() {
return (
<SafeBlueArea>
<WebView source={{ uri: this.state.uri }} incognito />
</SafeBlueArea>
);
}
}
HodlHodlWebview.propTypes = {
route: PropTypes.shape({
params: PropTypes.shape({
uri: PropTypes.string.isRequired,
}),
}),
};
2020-07-15 13:32:59 -04:00
2020-12-04 12:50:23 +03:00
HodlHodlWebview.navigationOptions = navigationStyle({
closeButton: true,
2020-07-15 13:32:59 -04:00
title: '',
headerLeft: null,
});