mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-23 06:59:31 +01:00
disable animations
This commit is contained in:
@@ -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} />
|
||||
|
||||
Reference in New Issue
Block a user