Skip to content
This repository has been archived by the owner on Feb 8, 2020. It is now read-only.

Commit

Permalink
fix: fix incorrect type
Browse files Browse the repository at this point in the history
  • Loading branch information
satya164 committed Oct 16, 2019
1 parent c6d0c19 commit 731cf7d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/stack/src/views/Stack/Stack.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,7 @@ const getFloatingHeaderHeights = (

return routes.reduce(
(acc, curr) => {
const { options = {} } =
descriptors[curr.key] || ({} as StackNavigationOptions);
const { options = {} } = descriptors[curr.key] || {};
const { height = previous[curr.key] } = StyleSheet.flatten(
options.headerStyle || {}
);
Expand Down

0 comments on commit 731cf7d

Please sign in to comment.