fix all actionsheet dialogs on tablet

This commit is contained in:
ammarahm-ed
2020-12-19 13:15:34 +05:00
parent 4e3d5483db
commit ee48fe02e0
19 changed files with 254 additions and 276 deletions

View File

@@ -170,8 +170,10 @@ const AppStack = React.memo(
let size = event?.nativeEvent?.layout;
updatedDimensions = size;
if (!size || (size.width === dimensions.width && mode !== null)) {
console.log(mode);
DDS.setSize(size);
dispatch({type: Actions.DEVICE_MODE, state: mode});
return;
}
@@ -188,9 +190,8 @@ const AppStack = React.memo(
});
setWidthHeight(size);
console.log(size,"SIZES")
DDS.setSize(size);
DDS.checkSmallTab(size.width > size.height ? 'LANDSCAPE' : 'PORTRAIT');
if (DDS.isLargeTablet()) {
setDeviceMode('tablet', size);
} else if (DDS.isSmallTab) {