Permalink
Browse files

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 #8338

Differential Revision: D3719045

fbshipit-source-id: a02d181b5e133dbe467fbaca794f0d2119be2da7
  • Loading branch information...
1 parent d209183 commit 02557d2cfe0c0c1fb0ce141e398e1630dfc493ba @nevir nevir committed with Facebook Github Bot 5 Aug 16, 2016
Showing with 1 addition and 1 deletion.
  1. +1 −1 Libraries/CustomComponents/NavigationExperimental/NavigationHeaderTitle.js
@@ -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
};

0 comments on commit 02557d2

Please sign in to comment.