Skip to content

Commit

Permalink
fix: reset values after animations and make snapshot only when necess…
Browse files Browse the repository at this point in the history
…ary (#1496)

PR adding logic of resetting screens props after transition animations since they are recycled afterwards and often have wrong alpha/transform then. Also added application of snapshot only if window is present which should mean that screen has been removed via JS navigation actions.
  • Loading branch information
WoLewicki authored Jun 29, 2022
1 parent 318e613 commit 24393d3
Show file tree
Hide file tree
Showing 5 changed files with 250 additions and 246 deletions.
3 changes: 2 additions & 1 deletion FabricTestExample/src/Test887.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@ export default function App(): JSX.Element {
<Stack.Navigator
screenOptions={{
stackAnimation: 'fade_from_bottom',
headerShown: false,
headerShown: true,
customAnimationOnSwipe: true,
// stackPresentation: 'transparentModal',
}}>
<Stack.Screen name="First" component={NestedFirst} />
Expand Down
Loading

0 comments on commit 24393d3

Please sign in to comment.