Closed erheron closed 3 years ago
Can you provide the full stack trace? Since you're using RN, are you perhaps using hermes with it?
If onEdit
is false
that false
will be passed in the property onEdit
to ChildComponent
. Since false
is a boolean, that value does not satisfy the prop type func
, so the warning is correct.
Thank You @datenreisender , I haven't considered that!
Hi all! I've discovered that PropTypes can't handle a simple case below. I also consider the possibility that I've missed something because I'm new to react-native and PropTypes
Versions
react-native 0.62.2 proptypes 15.7.2
Reproducing example (the clue only)