139
rated 0 times
[
145]
[
6]
/ answers: 1 / hits: 16880
/ 7 Years ago, sat, october 21, 2017, 12:00:00
React Navigation's introduction page suggests the use of the following destructuring assignment:
const { navigate } = this.props.navigation;
However, when I implemented React Navigation in my App, ESLint is complaining about this line describing these both errors:
'navigation' is missing in props validation (react/prop-types)
'navigation.navigation' is missing in props validation (react/prop-types)
Even though the app seems to be working as intended, how would it be possible to remove these error lines?
More From » react-native