disable animations

This commit is contained in:
ammarahm-ed
2021-06-07 09:51:22 +05:00
parent 671a883d58
commit e8e34fc524

View File

@@ -6,7 +6,7 @@ import { useSelectionStore } from '../provider/stores';
import {
eSendEvent,
eSubscribeEvent,
eUnSubscribeEvent
eUnSubscribeEvent,
} from '../services/EventManager';
import Navigation from '../services/Navigation';
import SettingsService from '../services/SettingsService';
@@ -25,16 +25,9 @@ import Trash from '../views/Trash';
const Stack = createNativeStackNavigator();
const forFade = ({current}) => ({
cardStyle: {
opacity: current.progress,
},
});
const screenOptionsForAnimation = {
animationEnabled: true,
cardStyleInterpolator: forFade,
gestureEnabled: true,
stackAnimation: 'none',
};
export const NavigatorStack = React.memo(
@@ -83,7 +76,7 @@ export const NavigatorStack = React.memo(
screenOptions={{
headerShown: false,
gestureEnabled: false,
stackAnimation: 'fade',
stackAnimation: 'none',
}}>
<Stack.Screen name="Notes" component={Home} />
<Stack.Screen name="Notebooks" component={Folders} />