diff --git a/packages/stack/src/views/Stack/Stack.tsx b/packages/stack/src/views/Stack/Stack.tsx index ab43ed4e..21c90e80 100755 --- a/packages/stack/src/views/Stack/Stack.tsx +++ b/packages/stack/src/views/Stack/Stack.tsx @@ -110,6 +110,8 @@ const { cond, eq } = Animated; const ANIMATED_ONE = new Animated.Value(1); +const FALLBACK_DESCRIPTOR = Object.freeze({ options: {} }); + const getFloatingHeaderHeights = ( routes: Route[], layout: Layout, @@ -174,7 +176,7 @@ export default class Stack extends React.Component { descriptor: props.descriptors[route.key] || state.descriptors[route.key] || - (oldScene ? oldScene.descriptor : { options: {} }), + (oldScene ? oldScene.descriptor : FALLBACK_DESCRIPTOR), progress: { current, next,