upgrade navigation

This commit is contained in:
Ammar Ahmed
2021-06-05 01:35:58 +05:00
parent fdabd9a0d5
commit 7b58c9a165
18 changed files with 540 additions and 870 deletions

View File

@@ -6,7 +6,7 @@ import Icon from 'react-native-vector-icons/MaterialCommunityIcons';
import {notesnook} from '../../../e2e/test.ids';
import {useTracked} from '../../provider';
import {DDS} from '../../services/DeviceDetection';
import {getElevation, showContext, showTooltip, TOOLTIP_POSITIONS} from '../../utils';
import {editing, getElevation, showContext, showTooltip, TOOLTIP_POSITIONS} from '../../utils';
import {normalize, SIZE} from '../../utils/SizeUtils';
import {PressableButton} from '../PressableButton';
import RNTooltips from 'react-native-tooltips';
@@ -29,11 +29,15 @@ export const ContainerBottomButton = ({
}
const onKeyboardHide = async () => {
console.log('called hide')
editing.keyboardState = false;
if (DDS.isTab) return;
animate(0);
};
const onKeyboardShow = async () => {
console.log('called show');
editing.keyboardState = true;
if (DDS.isTab) return;
animate(150);
};