mirror of
https://github.com/status-im/react-native.git
synced 2025-01-15 20:15:11 +00:00
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:
parent
d20918319a
commit
02557d2cfe
@ -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
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user