BlueWallet/screen/wallets/hodlHodlWebview.js

32 lines
731 B
JavaScript
Raw Normal View History

2020-12-10 23:09:54 -05:00
import React from 'react';
2020-06-15 19:47:54 +01:00
import { WebView } from 'react-native-webview';
2020-12-04 13:39:47 +00:00
import { BlueNavigationStyle, SafeBlueArea } from '../../BlueComponents';
2020-06-15 19:47:54 +01:00
import PropTypes from 'prop-types';
2020-12-10 23:09:54 -05:00
import { useRoute } from '@react-navigation/native';
2020-06-15 19:47:54 +01:00
2020-12-10 23:09:54 -05:00
const HodlHodlWebview = () => {
const { uri } = useRoute().params;
2020-06-15 19:47:54 +01:00
2020-12-10 23:09:54 -05:00
return (
<SafeBlueArea>
<WebView source={{ uri }} incognito />
</SafeBlueArea>
);
};
2020-06-15 19:47:54 +01:00
HodlHodlWebview.propTypes = {
route: PropTypes.shape({
params: PropTypes.shape({
uri: PropTypes.string.isRequired,
}),
}),
};
2020-07-15 13:32:59 -04:00
2020-12-10 23:09:54 -05:00
export default HodlHodlWebview;
2020-12-04 13:39:47 +00:00
HodlHodlWebview.navigationOptions = ({ navigation }) => ({
...BlueNavigationStyle(navigation, true),
2020-07-15 13:32:59 -04:00
title: '',
headerLeft: null,
});