This repository has been archived by the owner on Sep 1, 2024. It is now read-only.
oneOfType()
does not seem to allow all types specified
#388
Labels
I am running into an issue where
oneOfType()
is passed in types ofshape
andstring
but is only allowingstring
seemingly.Reproduced here (using a simplified version of types I have encountered on a project I am working on), https://jsfiddle.net/liamness/1du5jvwt/, with the warning:
Failed prop type: Invalid prop `schema[1]` supplied to `ComponentName`, expected one of type [string].
The text was updated successfully, but these errors were encountered: