mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2024-11-20 10:12:01 +01:00
39 lines
814 B
JavaScript
39 lines
814 B
JavaScript
import React, { Component } from 'react';
|
|
import { WebView } from 'react-native-webview';
|
|
import { BlueNavigationStyle, SafeBlueArea } from '../../BlueComponents';
|
|
import PropTypes from 'prop-types';
|
|
|
|
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,
|
|
}),
|
|
}),
|
|
};
|
|
|
|
HodlHodlWebview.navigationOptions = ({ navigation }) => ({
|
|
...BlueNavigationStyle(navigation, true),
|
|
title: '',
|
|
headerLeft: null,
|
|
});
|