Accept children of all types for NavigationHeaderTitle

Summary:
`<Text>` accepts more than just string as its children; and it's handy to be able to style nav titles without a proptype warning throwing
Closes https://github.com/facebook/react-native/pull/8338

Differential Revision: D3719045

fbshipit-source-id: a02d181b5e133dbe467fbaca794f0d2119be2da7
This commit is contained in:
Ian MacLeod 2016-08-15 18:01:25 -07:00 committed by Facebook Github Bot 5
parent d20918319a
commit 02557d2cfe
1 changed files with 1 additions and 1 deletions

View File

@ -73,7 +73,7 @@ const styles = StyleSheet.create({
});
NavigationHeaderTitle.propTypes = {
children: React.PropTypes.string.isRequired,
children: React.PropTypes.node.isRequired,
style: View.propTypes.style,
textStyle: Text.propTypes.style
};