update menu

This commit is contained in:
ammarahm-ed
2020-12-19 15:20:41 +05:00
parent 69e3211baf
commit 93a03e0aba
8 changed files with 158 additions and 109 deletions

View File

@@ -1,5 +1,5 @@
import React, {useEffect, useState} from 'react';
import {Dimensions, Platform, View} from 'react-native';
import {Dimensions, View} from 'react-native';
import ScrollableTabView from 'react-native-scrollable-tab-view';
import {notesnook} from './e2e/test.ids';
import ContextMenu from './src/components/ContextMenu';
@@ -173,7 +173,7 @@ const AppStack = React.memo(
console.log(mode);
DDS.setSize(size);
dispatch({type: Actions.DEVICE_MODE, state: mode});
return;
}
@@ -190,7 +190,7 @@ const AppStack = React.memo(
});
setWidthHeight(size);
console.log(size,"SIZES")
console.log(size, 'SIZES');
DDS.setSize(size);
if (DDS.isLargeTablet()) {
setDeviceMode('tablet', size);