react-native prop type for text style : <p>i have component with a simple structure and a <code>&lt;Text&gt;</code> somewhere inside the tree for which i want to pass in a style. Which works perfectly but for the proptypes validation.</p>

<p>The basic setup is not much more than that</p>

<pre><code>export default class Component extends PureComponent {
    render() {
        return (&lt;View&gt;&lt;Text style={this.props.style}&gt;Some text&lt;/Text&gt;&lt;/view&gt;);
    }
}

Component.defaultProps = {
    style: null,
};

Component.propTypes = {
    style: ViewPropTypes.style,
};
</code></pre>

<p>The problem is that the ViewPropTypes.style does not contain i.e. <code>color</code> key. So providing a style with a color is invalid and produces a warning. I tried to import <code>TextStylePropTypes</code> as i found in <a href="https://github.com/facebook/react-native/blob/master/Libraries/Text/TextStylePropTypes.js" rel="noreferrer">https://github.com/facebook/react-native/blob/master/Libraries/Text/TextStylePropTypes.js</a> but it is undefined. </p>

<p>Any advice on what to do?</p>
