mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-23 15:09:33 +01:00
disable animations
This commit is contained in:
@@ -6,7 +6,7 @@ import { useSelectionStore } from '../provider/stores';
|
|||||||
import {
|
import {
|
||||||
eSendEvent,
|
eSendEvent,
|
||||||
eSubscribeEvent,
|
eSubscribeEvent,
|
||||||
eUnSubscribeEvent
|
eUnSubscribeEvent,
|
||||||
} from '../services/EventManager';
|
} from '../services/EventManager';
|
||||||
import Navigation from '../services/Navigation';
|
import Navigation from '../services/Navigation';
|
||||||
import SettingsService from '../services/SettingsService';
|
import SettingsService from '../services/SettingsService';
|
||||||
@@ -25,16 +25,9 @@ import Trash from '../views/Trash';
|
|||||||
|
|
||||||
const Stack = createNativeStackNavigator();
|
const Stack = createNativeStackNavigator();
|
||||||
|
|
||||||
const forFade = ({current}) => ({
|
|
||||||
cardStyle: {
|
|
||||||
opacity: current.progress,
|
|
||||||
},
|
|
||||||
});
|
|
||||||
|
|
||||||
const screenOptionsForAnimation = {
|
const screenOptionsForAnimation = {
|
||||||
animationEnabled: true,
|
|
||||||
cardStyleInterpolator: forFade,
|
|
||||||
gestureEnabled: true,
|
gestureEnabled: true,
|
||||||
|
stackAnimation: 'none',
|
||||||
};
|
};
|
||||||
|
|
||||||
export const NavigatorStack = React.memo(
|
export const NavigatorStack = React.memo(
|
||||||
@@ -83,7 +76,7 @@ export const NavigatorStack = React.memo(
|
|||||||
screenOptions={{
|
screenOptions={{
|
||||||
headerShown: false,
|
headerShown: false,
|
||||||
gestureEnabled: false,
|
gestureEnabled: false,
|
||||||
stackAnimation: 'fade',
|
stackAnimation: 'none',
|
||||||
}}>
|
}}>
|
||||||
<Stack.Screen name="Notes" component={Home} />
|
<Stack.Screen name="Notes" component={Home} />
|
||||||
<Stack.Screen name="Notebooks" component={Folders} />
|
<Stack.Screen name="Notebooks" component={Folders} />
|
||||||
|
|||||||
Reference in New Issue
Block a user