I am using eslint airbnb in my react native project. The eslint throw error linting if i didn't validate the props, especially the props from react-navigation
.
How do i validate this using PropTypes?
I am trying to validate it like this:
IntroScreen.propTypes = {
navigation: PropTypes.shape({
navigate: PropTypes.func,
}),
};
but still got error linting like this
How do i pass the default props, and should i?