mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-23 23:19:40 +01:00
re-enable animation on bottom button
This commit is contained in:
@@ -11,7 +11,7 @@ import {normalize, SIZE} from '../../utils/SizeUtils';
|
|||||||
import {PressableButton} from '../PressableButton';
|
import {PressableButton} from '../PressableButton';
|
||||||
import RNTooltips from 'react-native-tooltips';
|
import RNTooltips from 'react-native-tooltips';
|
||||||
|
|
||||||
//const translateY = new Animated.Value(0);
|
const translateY = new Animated.Value(0);
|
||||||
export const ContainerBottomButton = ({
|
export const ContainerBottomButton = ({
|
||||||
title,
|
title,
|
||||||
onPress,
|
onPress,
|
||||||
@@ -19,7 +19,7 @@ export const ContainerBottomButton = ({
|
|||||||
shouldShow = false,
|
shouldShow = false,
|
||||||
}) => {
|
}) => {
|
||||||
const insets = useSafeAreaInsets();
|
const insets = useSafeAreaInsets();
|
||||||
/*
|
|
||||||
function animate(translate) {
|
function animate(translate) {
|
||||||
Animated.timing(translateY, {
|
Animated.timing(translateY, {
|
||||||
toValue: translate,
|
toValue: translate,
|
||||||
@@ -46,7 +46,7 @@ export const ContainerBottomButton = ({
|
|||||||
Keyboard.removeListener('keyboardDidHide', onKeyboardHide);
|
Keyboard.removeListener('keyboardDidHide', onKeyboardHide);
|
||||||
};
|
};
|
||||||
}, []);
|
}, []);
|
||||||
*/
|
|
||||||
return DDS.isLargeTablet() && !shouldShow ? null : (
|
return DDS.isLargeTablet() && !shouldShow ? null : (
|
||||||
<Animated.View
|
<Animated.View
|
||||||
style={{
|
style={{
|
||||||
@@ -57,14 +57,14 @@ export const ContainerBottomButton = ({
|
|||||||
? insets.bottom - 10
|
? insets.bottom - 10
|
||||||
: insets.bottom + 12,
|
: insets.bottom + 12,
|
||||||
zIndex: 10,
|
zIndex: 10,
|
||||||
/* transform: [
|
transform: [
|
||||||
{
|
{
|
||||||
translateY: translateY,
|
translateY: translateY,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
translateX: translateY,
|
translateX: translateY,
|
||||||
},
|
},
|
||||||
], */
|
],
|
||||||
}}>
|
}}>
|
||||||
<PressableButton
|
<PressableButton
|
||||||
testID={notesnook.ids.default.addBtn}
|
testID={notesnook.ids.default.addBtn}
|
||||||
|
|||||||
Reference in New Issue
Block a user