mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2025-01-19 05:45:15 +01:00
Merge pull request #6469 from BlueWallet/debug
Update useIsLargeScreen.ts
This commit is contained in:
commit
856ff682c2
@ -12,7 +12,7 @@ export const useIsLargeScreen = () => {
|
||||
const updateScreenUsage = () => {
|
||||
const newWindowWidth = Dimensions.get('window').width;
|
||||
if (newWindowWidth !== windowWidth) {
|
||||
console.log(`Window width changed: ${newWindowWidth}`);
|
||||
console.debug(`Window width changed: ${newWindowWidth}`);
|
||||
setWindowWidth(newWindowWidth);
|
||||
}
|
||||
};
|
||||
@ -31,7 +31,7 @@ export const useIsLargeScreen = () => {
|
||||
const isRunningOnTabletOrDesktop = isTablet() || isDesktop;
|
||||
const halfScreenWidth = windowWidth >= screenWidth / 2;
|
||||
const condition = isRunningOnTabletOrDesktop && halfScreenWidth;
|
||||
console.log(
|
||||
console.debug(
|
||||
`Window width: ${windowWidth}, Screen width: ${screenWidth}, Is tablet: ${isRunningOnTabletOrDesktop}, Is large screen: ${condition}`,
|
||||
);
|
||||
return condition;
|
||||
|
Loading…
Reference in New Issue
Block a user