mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2024-11-20 10:12:01 +01:00
32 lines
731 B
JavaScript
32 lines
731 B
JavaScript
import React from 'react';
|
|
import { WebView } from 'react-native-webview';
|
|
import { BlueNavigationStyle, SafeBlueArea } from '../../BlueComponents';
|
|
import PropTypes from 'prop-types';
|
|
import { useRoute } from '@react-navigation/native';
|
|
|
|
const HodlHodlWebview = () => {
|
|
const { uri } = useRoute().params;
|
|
|
|
return (
|
|
<SafeBlueArea>
|
|
<WebView source={{ uri }} incognito />
|
|
</SafeBlueArea>
|
|
);
|
|
};
|
|
|
|
HodlHodlWebview.propTypes = {
|
|
route: PropTypes.shape({
|
|
params: PropTypes.shape({
|
|
uri: PropTypes.string.isRequired,
|
|
}),
|
|
}),
|
|
};
|
|
|
|
export default HodlHodlWebview;
|
|
|
|
HodlHodlWebview.navigationOptions = ({ navigation }) => ({
|
|
...BlueNavigationStyle(navigation, true),
|
|
title: '',
|
|
headerLeft: null,
|
|
});
|