Skip to content

Commit 02557d2

Browse files
nevirFacebook Github Bot 5
authored andcommitted
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 facebook#8338 Differential Revision: D3719045 fbshipit-source-id: a02d181b5e133dbe467fbaca794f0d2119be2da7
1 parent d209183 commit 02557d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Libraries/CustomComponents/NavigationExperimental/NavigationHeaderTitle.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ const styles = StyleSheet.create({
7373
});
7474

7575
NavigationHeaderTitle.propTypes = {
76-
children: React.PropTypes.string.isRequired,
76+
children: React.PropTypes.node.isRequired,
7777
style: View.propTypes.style,
7878
textStyle: Text.propTypes.style
7979
};

0 commit comments

Comments
 (0)