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}
showAdvancedControls={false}
showControls={props.currentGroup !== undefined}
incognito={true}
/>
{!props.currentGroup ? (
<ErrorView

View file

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