Compare commits
3 commits
9efd40e48c
...
aaf72d9122
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
aaf72d9122 | ||
|
|
1a696f0628 | ||
|
|
9acfbf00df |
4 changed files with 21 additions and 16 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -71,7 +71,8 @@ export default function RequestScreen<T>(props: Props<T>) {
|
||||||
if (props.refresh !== lastRefresh.current) {
|
if (props.refresh !== lastRefresh.current) {
|
||||||
lastRefresh.current = props.refresh === true;
|
lastRefresh.current = props.refresh === true;
|
||||||
}
|
}
|
||||||
}, [props, loading, refreshData]);
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||||
|
}, [props, loading]);
|
||||||
|
|
||||||
useFocusEffect(
|
useFocusEffect(
|
||||||
React.useCallback(() => {
|
React.useCallback(() => {
|
||||||
|
|
@ -89,7 +90,8 @@ export default function RequestScreen<T>(props: Props<T>) {
|
||||||
clearInterval(refreshInterval.current);
|
clearInterval(refreshInterval.current);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
}, [props.cache, props.refreshOnFocus, props.autoRefreshTime, refreshData])
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||||
|
}, [props.cache, props.refreshOnFocus, props.autoRefreshTime])
|
||||||
);
|
);
|
||||||
|
|
||||||
const isErrorCritical = (e: API_REQUEST_CODES | undefined) => {
|
const isErrorCritical = (e: API_REQUEST_CODES | undefined) => {
|
||||||
|
|
|
||||||
|
|
@ -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}
|
||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -101,13 +101,13 @@ export const CustomWhiteTheme: ReactNativePaper.Theme = {
|
||||||
// Tetris
|
// Tetris
|
||||||
tetrisBackground: '#f0f0f0',
|
tetrisBackground: '#f0f0f0',
|
||||||
tetrisScore: '#e2bd33',
|
tetrisScore: '#e2bd33',
|
||||||
tetrisI: '#3cd9e6',
|
tetrisI: '#be1522',
|
||||||
tetrisO: '#ffdd00',
|
tetrisO: '#EB6C1F',
|
||||||
tetrisT: '#a716e5',
|
tetrisT: '#5cb85c',
|
||||||
tetrisS: '#09c528',
|
tetrisS: '#5294E2',
|
||||||
tetrisZ: '#ff0009',
|
tetrisZ: '#dede00',
|
||||||
tetrisJ: '#2a67e3',
|
tetrisJ: '#69009d',
|
||||||
tetrisL: '#da742d',
|
tetrisL: '#553716',
|
||||||
|
|
||||||
gameGold: '#ffd610',
|
gameGold: '#ffd610',
|
||||||
gameSilver: '#7b7b7b',
|
gameSilver: '#7b7b7b',
|
||||||
|
|
@ -160,13 +160,13 @@ export const CustomDarkTheme: ReactNativePaper.Theme = {
|
||||||
// Tetris
|
// Tetris
|
||||||
tetrisBackground: '#181818',
|
tetrisBackground: '#181818',
|
||||||
tetrisScore: '#e2d707',
|
tetrisScore: '#e2d707',
|
||||||
tetrisI: '#30b3be',
|
tetrisI: '#be1522',
|
||||||
tetrisO: '#c1a700',
|
tetrisO: '#EB6C1F',
|
||||||
tetrisT: '#9114c7',
|
tetrisT: '#5cb85c',
|
||||||
tetrisS: '#08a121',
|
tetrisS: '#5294E2',
|
||||||
tetrisZ: '#b50008',
|
tetrisZ: '#dede00',
|
||||||
tetrisJ: '#0f37b9',
|
tetrisJ: '#69009d',
|
||||||
tetrisL: '#b96226',
|
tetrisL: '#553716',
|
||||||
|
|
||||||
gameGold: '#ffd610',
|
gameGold: '#ffd610',
|
||||||
gameSilver: '#7b7b7b',
|
gameSilver: '#7b7b7b',
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue