BlueWallet/screen/wallets/hodlHodlWebview.js

25 lines
566 B
JavaScript
Raw Normal View History

2020-12-11 05:09:54 +01:00
import React from 'react';
2020-06-15 20:47:54 +02:00
import { WebView } from 'react-native-webview';
2020-12-11 05:09:54 +01:00
import { useRoute } from '@react-navigation/native';
2020-06-15 20:47:54 +02:00
2020-12-25 17:09:53 +01:00
import { SafeBlueArea } from '../../BlueComponents';
import navigationStyle from '../../components/navigationStyle';
2020-12-11 05:09:54 +01:00
const HodlHodlWebview = () => {
const { uri } = useRoute().params;
2020-06-15 20:47:54 +02:00
2020-12-11 05:09:54 +01:00
return (
<SafeBlueArea>
<WebView source={{ uri }} incognito />
</SafeBlueArea>
);
};
2020-06-15 20:47:54 +02:00
2020-12-25 17:09:53 +01:00
HodlHodlWebview.navigationOptions = navigationStyle({
closeButton: true,
2020-07-15 19:32:59 +02:00
title: '',
headerLeft: null,
});
2020-12-25 17:09:53 +01:00
export default HodlHodlWebview;