Closed
Description
Currently this results in a warning but shouldn't:
Button.propTypes = {
...Touchable.propTypes,
color: PropTypes.string
}
The error message could also be improved to explain why using another component's propTypes is bad. For example: "Using propTypes from another component is not safe because they may be removed in production builds".
Comments via @gaearon on this issue: facebook/create-react-app#3818