feat: render planex in incognito mode

Should hopefully fix the old planning being rendered issue
This commit is contained in:
Arnaud Vergnet 2021-09-18 11:52:50 +02:00
parent 1a696f0628
commit aaf72d9122
2 changed files with 3 additions and 0 deletions

View file

@ -127,6 +127,7 @@ function PlanexWebview(props: Props) {
onMessage={props.onMessage} onMessage={props.onMessage}
showAdvancedControls={false} showAdvancedControls={false}
showControls={props.currentGroup !== undefined} showControls={props.currentGroup !== undefined}
incognito={true}
/> />
{!props.currentGroup ? ( {!props.currentGroup ? (
<ErrorView <ErrorView

View file

@ -58,6 +58,7 @@ type Props = {
customPaddingFunction?: null | ((padding: number) => string); customPaddingFunction?: null | ((padding: number) => string);
showAdvancedControls?: boolean; showAdvancedControls?: boolean;
showControls?: boolean; showControls?: boolean;
incognito?: boolean;
}; };
const AnimatedWebView = Animated.createAnimatedComponent(WebView); const AnimatedWebView = Animated.createAnimatedComponent(WebView);
@ -272,6 +273,7 @@ function WebViewScreen(props: Props) {
onLoad={() => injectJavaScript(getJavascriptPadding(containerPaddingTop))} onLoad={() => injectJavaScript(getJavascriptPadding(containerPaddingTop))}
// Animations // Animations
onScroll={onScrollWithListener(onScroll)} onScroll={onScrollWithListener(onScroll)}
incognito={props.incognito}
/> />
); );
} }