mirror of
https://github.com/zhigang1992/react-navigation.git
synced 2026-04-23 12:07:35 +08:00
fix: use opacity in headerStyle
This commit is contained in:
@@ -217,6 +217,7 @@ export default class HeaderSegment extends React.Component<Props, State> {
|
||||
shadowOffset,
|
||||
shadowOpacity,
|
||||
shadowRadius,
|
||||
opacity,
|
||||
...unsafeStyles
|
||||
} = StyleSheet.flatten(customHeaderStyle || {}) as ViewStyle;
|
||||
|
||||
@@ -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
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user