Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

re-enable animation on bottom button

ammarahm-eda84c94b243f8
diff --git a/apps/mobile/src/components/Container/ContainerBottomButton.js b/apps/mobile/src/components/Container/ContainerBottomButton.js
index 164d9fdd9..4f3f67882 100644
--- a/apps/mobile/src/components/Container/ContainerBottomButton.js
+++ b/apps/mobile/src/components/Container/ContainerBottomButton.js
@@ -11,7 +11,7 @@ import {normalize, SIZE} from '../../utils/SizeUtils';
import {PressableButton} from '../PressableButton';
import RNTooltips from 'react-native-tooltips';
-//const translateY = new Animated.Value(0);
+const translateY = new Animated.Value(0);
export const ContainerBottomButton = ({
title,
onPress,
@@ -19,7 +19,7 @@ export const ContainerBottomButton = ({
shouldShow = false,
}) => {
const insets = useSafeAreaInsets();
-/*
+
function animate(translate) {
Animated.timing(translateY, {
toValue: translate,
@@ -46,7 +46,7 @@ export const ContainerBottomButton = ({
Keyboard.removeListener('keyboardDidHide', onKeyboardHide);
};
}, []);
- */
+
return DDS.isLargeTablet() && !shouldShow ? null : (
<Animated.View
style={{
@@ -57,14 +57,14 @@ export const ContainerBottomButton = ({
? insets.bottom - 10
: insets.bottom + 12,
zIndex: 10,
- /* transform: [
+ transform: [
{
translateY: translateY,
},
{
translateX: translateY,
},
- ], */
+ ],
}}>
<PressableButton
testID={notesnook.ids.default.addBtn}