Skip to content

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

remove transition animation

ammarahm-ed9f27bde628f1
diff --git a/apps/mobile/src/services/Navigator.js b/apps/mobile/src/services/Navigator.js
index ecc82ea7e..9b066ed5f 100644
--- a/apps/mobile/src/services/Navigator.js
+++ b/apps/mobile/src/services/Navigator.js
@@ -15,7 +15,7 @@ import Signup from '../views/Signup';
import Tags from '../views/Tags';
import Trash from '../views/Trash';
import {createStackNavigator} from 'react-navigation-stack';
-
+import {Animated} from 'react-native';
const fade = props => {
const {position, scene} = props;
@@ -99,6 +99,13 @@ export const TopLevelNavigator = createStackNavigator(
height: 0,
},
},
+ animationEnabled: false,
+ transitionConfig: () => ({
+ transitionSpec: {
+ duration: 0,
+ timing: Animated.timing,
+ },
+ }),
cardOverlayEnabled: true,
cardShadowEnabled: true,
animationEnabled: false,
diff --git a/apps/mobile/src/views/Trash/index.js b/apps/mobile/src/views/Trash/index.js
index c3d7ca725..81c29edf1 100644
--- a/apps/mobile/src/views/Trash/index.js
+++ b/apps/mobile/src/views/Trash/index.js
@@ -20,6 +20,7 @@ export const Trash = ({navigation}) => {
const isFocused = useIsFocused();
useEffect(() => {
+ console.log(trash);
if (isFocused) {
dispatch({
type: ACTIONS.TRASH,
@@ -119,7 +120,7 @@ export const Trash = ({navigation}) => {
focused={isFocused}
onRefresh={_onRefresh}
renderItem={_renderItem}
- //placeholder={<TrashPlaceHolder colors={colors} />}
+ placeholder={<TrashPlaceHolder colors={colors} />}
placeholderText="Deleted notes & notebooks appear here."
/>
</Container>