(props, propName, componentName, location, propFullName, secret)
| 1114 | |
| 1115 | module.exports = function() { |
| 1116 | function shim(props, propName, componentName, location, propFullName, secret) { |
| 1117 | if (secret === ReactPropTypesSecret) { |
| 1118 | // It is still safe when called from React. |
| 1119 | return; |
| 1120 | } |
| 1121 | invariant( |
| 1122 | false, |
| 1123 | 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' + |
| 1124 | 'Use PropTypes.checkPropTypes() to call them. ' + |
| 1125 | 'Read more at http://fb.me/use-check-prop-types' |
| 1126 | ); |
| 1127 | }; |
| 1128 | shim.isRequired = shim; |
| 1129 | function getShim() { |
| 1130 | return shim; |
nothing calls this directly
no test coverage detected