Skip to content

Commit

Permalink
refactor(ui): Remove screen animations for performance optimization
Browse files Browse the repository at this point in the history
  • Loading branch information
WilliamCallao committed Mar 7, 2024
1 parent af16954 commit 380efc7
Showing 1 changed file with 1 addition and 33 deletions.
34 changes: 1 addition & 33 deletions AppNavigator.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,39 +11,7 @@ function AppNavigator() {
return (
<NavigationContainer>
<Stack.Navigator
screenOptions={{
cardStyleInterpolator: ({current, layouts}) => {
return {
cardStyle: {
opacity: current.progress,
transform: [
{
translateY: current.progress.interpolate({
inputRange: [0, 1],
outputRange: [layouts.screen.height * 0.3, 0],
}),
},
],
},
};
},
transitionSpec: {
open: {
animation: 'timing',
config: {
duration: 150,
easing: Easing.ease,
},
},
close: {
animation: 'timing',
config: {
duration: 150,
easing: Easing.ease,
},
},
},
}}
initialRouteName='BillScreen'
>
<Stack.Screen
name="NewScreen"
Expand Down

0 comments on commit 380efc7

Please sign in to comment.