Fix flow error in Flow error in NavigationError/NavigationHeaderTitle
Summary: Fixes the "Unused suppression" error in NavigationHeaderTitle. This closes https://github.com/facebook/react-native/issues/9058 Closes https://github.com/facebook/react-native/pull/9103 Differential Revision: D3647364 fbshipit-source-id: 1fff92b35a46ccb1c2c6206e54779b6a1ec58bda
This commit is contained in:
parent
db35324610
commit
48f0dde630
|
@ -43,13 +43,12 @@ const {
|
|||
} = ReactNative;
|
||||
|
||||
type Props = {
|
||||
children: ReactElement<any>;
|
||||
children?: ReactElement<any>;
|
||||
style?: any;
|
||||
textStyle?: any;
|
||||
viewProps?: any;
|
||||
}
|
||||
|
||||
// $FlowIssue(>=0.26.0) #11432532
|
||||
const NavigationHeaderTitle = ({ children, style, textStyle, viewProps }: Props) => (
|
||||
<View style={[ styles.title, style ]} {...viewProps}>
|
||||
<Text style={[ styles.titleText, textStyle ]}>{children}</Text>
|
||||
|
|
Loading…
Reference in New Issue