mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-03-30 17:33:21 +08:00
Revert "Add subviewStyle prop to NavigationHeader"
Summary:
This reverts commit 1dc82a9e5f.
Breaks OSS tests
Closes https://github.com/facebook/react-native/pull/7232
Differential Revision: D3223972
Pulled By: bestander
fb-gh-sync-id: fea7ec4a1c13d328a7bbda9fcd3f201a7007081e
fbshipit-source-id: fea7ec4a1c13d328a7bbda9fcd3f201a7007081e
This commit is contained in:
committed by
Facebook Github Bot 1
parent
c1aff6b116
commit
2eef115161
@@ -65,7 +65,6 @@ type Props = NavigationSceneRendererProps & {
|
||||
renderRightComponent: NavigationSceneRenderer,
|
||||
renderTitleComponent: NavigationSceneRenderer,
|
||||
style?: any;
|
||||
subviewStyle?: any;
|
||||
viewProps?: any;
|
||||
};
|
||||
|
||||
@@ -101,7 +100,6 @@ class NavigationHeader extends React.Component<DefaultProps, Props, any> {
|
||||
renderRightComponent: PropTypes.func,
|
||||
renderTitleComponent: PropTypes.func,
|
||||
style: View.propTypes.style,
|
||||
subviewStyle: View.propTypes.style,
|
||||
viewProps: PropTypes.shape(View.propTypes),
|
||||
};
|
||||
|
||||
@@ -188,7 +186,6 @@ class NavigationHeader extends React.Component<DefaultProps, Props, any> {
|
||||
return null;
|
||||
}
|
||||
|
||||
const { subviewStyle } = this.props;
|
||||
const pointerEvents = offset !== 0 || isStale ? 'none' : 'box-none';
|
||||
return (
|
||||
<Animated.View
|
||||
@@ -197,7 +194,6 @@ class NavigationHeader extends React.Component<DefaultProps, Props, any> {
|
||||
style={[
|
||||
styles[name],
|
||||
styleInterpolator(props),
|
||||
subviewStyle[name],
|
||||
]}>
|
||||
{subView}
|
||||
</Animated.View>
|
||||
|
||||
Reference in New Issue
Block a user