(props, propName, componentName, location, propFullName, secret)
| 1056 | |
| 1057 | module.exports = function() { |
| 1058 | function shim(props, propName, componentName, location, propFullName, secret) { |
| 1059 | if (secret === ReactPropTypesSecret) { |
| 1060 | // It is still safe when called from React. |
| 1061 | return; |
| 1062 | } |
| 1063 | invariant( |
| 1064 | false, |
| 1065 | 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' + |
| 1066 | 'Use PropTypes.checkPropTypes() to call them. ' + |
| 1067 | 'Read more at http://fb.me/use-check-prop-types' |
| 1068 | ); |
| 1069 | }; |
| 1070 | shim.isRequired = shim; |
| 1071 | function getShim() { |
| 1072 | return shim; |
nothing calls this directly
no test coverage detected