how to check which PropType given the checker function?
plantvsbirds opened this issue · 2 comments
plantvsbirds commented
I have a react component imported and its .propTypes
available, i.e. a map of all prop names to their checker function. Now I would like to get their types.
All I can think of is to feed each checker function with some value and find out. It should work totally fine for native value. But is there a more proper way to do this?
aackerman commented
Hi @plantvsbirds if you are using version 0.2.0 or earlier of prop-types I can try to answer. Any versions 15+ belong to the react team and I would direct you to post your question to stackoverflow and get some help from the community.
plantvsbirds commented
I will post this to appropriate place. Thank you!
Aaron Ackerman <notifications@github.com>于2017年6月13日 周二20:09写道:
… Hi @plantvsbirds <https://github.com/plantvsbirds> if you are using
version 0.2.0 or earlier of prop-types I can try to answer. Any versions
15+ belong to the react team and I would direct you to post your question
to stackoverflow and get some help from the community.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#4 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AF6oJk1zYB48ifp7N7ubHMjyc2UP8B0Vks5sDnwPgaJpZM4N4V6c>
.