(props, propName, componentName, location, propFullName, secret)
| 1159 | |
| 1160 | module.exports = function() { |
| 1161 | function shim(props, propName, componentName, location, propFullName, secret) { |
| 1162 | if (secret === ReactPropTypesSecret) { |
| 1163 | // It is still safe when called from React. |
| 1164 | return; |
| 1165 | } |
| 1166 | invariant( |
| 1167 | false, |
| 1168 | 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' + |
| 1169 | 'Use PropTypes.checkPropTypes() to call them. ' + |
| 1170 | 'Read more at http://fb.me/use-check-prop-types' |
| 1171 | ); |
| 1172 | }; |
| 1173 | shim.isRequired = shim; |
| 1174 | function getShim() { |
| 1175 | return shim; |
nothing calls this directly
no test coverage detected