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-10 23:09:54 -05:00
|
|
|
import { useRoute } from '@react-navigation/native';
|
2020-06-15 19:47:54 +01:00
|
|
|
|
2020-12-25 19:09:53 +03:00
|
|
|
import { SafeBlueArea } from '../../BlueComponents';
|
|
|
|
import navigationStyle from '../../components/navigationStyle';
|
|
|
|
|
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
|
|
|
|
2020-12-25 19:09:53 +03:00
|
|
|
HodlHodlWebview.navigationOptions = navigationStyle({
|
|
|
|
closeButton: true,
|
2020-07-15 13:32:59 -04:00
|
|
|
title: '',
|
2021-09-13 13:43:26 -04:00
|
|
|
headerHideBackButton: true,
|
2020-07-15 13:32:59 -04:00
|
|
|
});
|
2020-12-25 19:09:53 +03:00
|
|
|
|
|
|
|
export default HodlHodlWebview;
|