mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-23 15:09:33 +01:00
disable animations
This commit is contained in:
@@ -1,40 +1,33 @@
|
|||||||
import { NavigationContainer } from '@react-navigation/native';
|
import {NavigationContainer} from '@react-navigation/native';
|
||||||
import * as React from 'react';
|
import * as React from 'react';
|
||||||
import { createNativeStackNavigator } from 'react-native-screens/native-stack';
|
import {createNativeStackNavigator} from 'react-native-screens/native-stack';
|
||||||
import Container from '../components/Container';
|
import Container from '../components/Container';
|
||||||
import { useSelectionStore } from '../provider/stores';
|
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';
|
||||||
import { history } from '../utils';
|
import {history} from '../utils';
|
||||||
import { eOpenSideMenu } from '../utils/Events';
|
import {eOpenSideMenu} from '../utils/Events';
|
||||||
import { rootNavigatorRef } from '../utils/Refs';
|
import {rootNavigatorRef} from '../utils/Refs';
|
||||||
import Favorites from '../views/Favorites';
|
import Favorites from '../views/Favorites';
|
||||||
import Folders from '../views/Folders';
|
import Folders from '../views/Folders';
|
||||||
import Home from '../views/Home';
|
import Home from '../views/Home';
|
||||||
import Notebook from '../views/Notebook';
|
import Notebook from '../views/Notebook';
|
||||||
import Notes from '../views/Notes';
|
import Notes from '../views/Notes';
|
||||||
import { Search } from '../views/Search';
|
import {Search} from '../views/Search';
|
||||||
import Settings from '../views/Settings';
|
import Settings from '../views/Settings';
|
||||||
import Tags from '../views/Tags';
|
import Tags from '../views/Tags';
|
||||||
import Trash from '../views/Trash';
|
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