(props, propName, componentName, location, propFullName, secret)
| 1021 | |
| 1022 | module.exports = function() { |
| 1023 | function shim(props, propName, componentName, location, propFullName, secret) { |
| 1024 | if (secret === ReactPropTypesSecret) { |
| 1025 | // It is still safe when called from React. |
| 1026 | return; |
| 1027 | } |
| 1028 | invariant( |
| 1029 | false, |
| 1030 | 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' + |
| 1031 | 'Use PropTypes.checkPropTypes() to call them. ' + |
| 1032 | 'Read more at http://fb.me/use-check-prop-types' |
| 1033 | ); |
| 1034 | }; |
| 1035 | shim.isRequired = shim; |
| 1036 | function getShim() { |
| 1037 | return shim; |
nothing calls this directly
no test coverage detected