Skip to content

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

improve animation for button hiding

ammarahm-ed515c1d5581fb
diff --git a/apps/mobile/src/components/Container/index.js b/apps/mobile/src/components/Container/index.js
index bed23b9ab..fb80cc35b 100644
--- a/apps/mobile/src/components/Container/index.js
+++ b/apps/mobile/src/components/Container/index.js
@@ -144,7 +144,7 @@ export const Container = ({
Keyboard.addListener('keyboardDidHide', () => {
setTimeout(() => {
setButtonHide(false);
- }, 300);
+ }, 0);
});
return () => {
Keyboard.removeListener('keyboardDidShow', () => {
@@ -155,7 +155,7 @@ export const Container = ({
Keyboard.removeListener('keyboardDidHide', () => {
setTimeout(() => {
setButtonHide(false);
- }, 300);
+ }, 0);
});
};
}, []);
@@ -235,7 +235,7 @@ export const Container = ({
<Animatable.View
transition={['translateY', 'opacity']}
useNativeDriver={true}
- duration={250}
+ duration={300}
style={{
width: '100%',
opacity: buttonHide ? 0 : 1,