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

Commit

Permalink
fix: use opacity in headerStyle
Browse files Browse the repository at this point in the history
  • Loading branch information
satya164 committed Aug 18, 2019
1 parent da8da3d commit 9dce71c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/stack/src/views/Header/HeaderSegment.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,7 @@ export default class HeaderSegment extends React.Component<Props, State> {
shadowOffset,
shadowOpacity,
shadowRadius,
opacity,
...unsafeStyles
} = StyleSheet.flatten(customHeaderStyle || {}) as ViewStyle;

Expand Down Expand Up @@ -257,6 +258,7 @@ export default class HeaderSegment extends React.Component<Props, State> {
shadowOffset,
shadowOpacity,
shadowRadius,
opacity,
};

// Setting a property to undefined triggers default style
Expand Down Expand Up @@ -284,7 +286,7 @@ export default class HeaderSegment extends React.Component<Props, State> {
</Animated.View>
<Animated.View
pointerEvents="box-none"
style={[{ height, minHeight, maxHeight }]}
style={[{ height, minHeight, maxHeight, opacity }]}
>
<View
pointerEvents="none"
Expand Down

0 comments on commit 9dce71c

Please sign in to comment.