Top "React-proptypes" questions

This tag should be used if the question involves the type-checking system of React.

Using forwardRef with proptypes and eslint

I am trying to use forwardRef for a Button in a project using eslint and prop-types. This is what I …

javascript reactjs eslint react-proptypes react-forwardref
What prop type should I check for requiring the source?

I'm writing a project based on react native. I'm using prop-types for type checking of components. now I wanna wrap …

javascript reactjs react-native react-proptypes
React Warning: Failed prop type: Invalid prop of type `Object` supplied

I am getting the warning "Warning: Failed prop type: Invalid prop of type Object supplied to , expected instance of bound …

reactjs eslint react-props react-proptypes eslint-config-airbnb
Multiple validations on React PropTypes

Is there a way to have multiple validations on a single prop using React.PropTypes. specifically want to blend a …

javascript reactjs coffeescript react-proptypes
PropTypes in React

In some examples, I have seen something like this: Footer.propTypes = { completedCount: PropTypes.number.isRequired, activeCount: PropTypes.number.isRequired, filter: …

reactjs react-proptypes
How do i pass eslint checking for this.props.navigation.navigate (react-navigation)?

I am using eslint airbnb in my react native project. The eslint throw error linting if i didn't validate the …

eslint react-navigation react-proptypes
react-native prop type for text style

i have component with a simple structure and a <Text> somewhere inside the tree for which i want …

react-native react-proptypes