Skip to content

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

disable layout animations

ammarahm-ed8c21a90730d7
diff --git a/apps/mobile/src/utils/layoutmanager.js b/apps/mobile/src/utils/layoutmanager.js
index cd218a9a4..37ead2f48 100644
--- a/apps/mobile/src/utils/layoutmanager.js
+++ b/apps/mobile/src/utils/layoutmanager.js
@@ -3,6 +3,8 @@ import SettingsService from '../services/SettingsService';
const {LayoutAnimation} = require('react-native');
function withAnimation(duration = 300) {
+
+ return;
// try {
// throw new Error('error withAnimation')
// } catch(e) {
@@ -21,7 +23,7 @@ function withSpringAnimation(duration = 300) {
// } catch(e) {
// console.log(e.stack);
// }
-
+ return;
console.log('reduce withSpringAnimation: ',SettingsService.get().reduceAnimations)
if (SettingsService.get().reduceAnimations) return;
LayoutAnimation.configureNext({
diff --git a/apps/mobile/src/views/Settings/appearance.js b/apps/mobile/src/views/Settings/appearance.js
index 13a83386b..f412a1ff3 100644
--- a/apps/mobile/src/views/Settings/appearance.js
+++ b/apps/mobile/src/views/Settings/appearance.js
@@ -230,7 +230,7 @@ const SettingsAppearanceSection = () => {
}
/>
- <CustomButton
+ {/* <CustomButton
title="Reduce animations"
tagline="Enable this to reduce animations in the app."
onPress={reduceAnimations}
@@ -245,7 +245,7 @@ const SettingsAppearanceSection = () => {
onToggle={reduceAnimations}
/>
}
- />
+ /> */}
<CustomButton
title="Dark mode"