mirror of
https://github.com/tapframe/NuvioStreaming.git
synced 2026-01-11 20:10:25 +00:00
removed some unnecessary animations
This commit is contained in:
parent
b2ef847720
commit
a49c2c5a56
2 changed files with 3 additions and 24 deletions
|
|
@ -844,30 +844,10 @@ const InnerNavigator = ({ initialRouteName }: { initialRouteName?: keyof RootSta
|
|||
name="Search"
|
||||
component={SearchScreen as any}
|
||||
options={{
|
||||
animation: Platform.OS === 'android' ? 'slide_from_right' : 'fade',
|
||||
animationDuration: Platform.OS === 'android' ? 250 : 350,
|
||||
animation: Platform.OS === 'android' ? 'none' : 'fade',
|
||||
animationDuration: Platform.OS === 'android' ? 0 : 350,
|
||||
gestureEnabled: true,
|
||||
gestureDirection: 'horizontal',
|
||||
...(Platform.OS === 'android' && {
|
||||
cardStyleInterpolator: ({ current, layouts }: any) => {
|
||||
return {
|
||||
cardStyle: {
|
||||
transform: [
|
||||
{
|
||||
translateX: current.progress.interpolate({
|
||||
inputRange: [0, 1],
|
||||
outputRange: [layouts.screen.width, 0],
|
||||
}),
|
||||
},
|
||||
],
|
||||
opacity: current.progress.interpolate({
|
||||
inputRange: [0, 0.3, 1],
|
||||
outputRange: [0, 0.85, 1],
|
||||
}),
|
||||
},
|
||||
};
|
||||
},
|
||||
}),
|
||||
contentStyle: {
|
||||
backgroundColor: currentTheme.colors.darkBackground,
|
||||
},
|
||||
|
|
|
|||
|
|
@ -28,7 +28,6 @@ import AsyncStorage from '@react-native-async-storage/async-storage';
|
|||
import Animated, {
|
||||
FadeIn,
|
||||
FadeOut,
|
||||
SlideInRight,
|
||||
useAnimatedStyle,
|
||||
useSharedValue,
|
||||
withTiming,
|
||||
|
|
@ -505,7 +504,7 @@ const SearchScreen = () => {
|
|||
return (
|
||||
<Animated.View
|
||||
style={[styles.container, { backgroundColor: currentTheme.colors.darkBackground }]}
|
||||
entering={Platform.OS === 'android' ? SlideInRight.duration(250) : FadeIn.duration(350)}
|
||||
entering={Platform.OS === 'android' ? undefined : FadeIn.duration(350)}
|
||||
exiting={Platform.OS === 'android' ?
|
||||
FadeOut.duration(200).withInitialValues({ opacity: 1 }) :
|
||||
FadeOut.duration(250)
|
||||
|
|
|
|||
Loading…
Reference in a new issue