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:
Florent Le Gall 2016-07-30 17:06:42 -07:00 committed by Facebook Github Bot
parent db35324610
commit 48f0dde630
1 changed files with 1 additions and 2 deletions

View File

@ -43,13 +43,12 @@ const {
} = ReactNative; } = ReactNative;
type Props = { type Props = {
children: ReactElement<any>; children?: ReactElement<any>;
style?: any; style?: any;
textStyle?: any; textStyle?: any;
viewProps?: any; viewProps?: any;
} }
// $FlowIssue(>=0.26.0) #11432532
const NavigationHeaderTitle = ({ children, style, textStyle, viewProps }: Props) => ( const NavigationHeaderTitle = ({ children, style, textStyle, viewProps }: Props) => (
<View style={[ styles.title, style ]} {...viewProps}> <View style={[ styles.title, style ]} {...viewProps}>
<Text style={[ styles.titleText, textStyle ]}>{children}</Text> <Text style={[ styles.titleText, textStyle ]}>{children}</Text>