You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
768 B
19 lines
768 B
/**
|
|
* Copyright (c) 2013-present, Facebook, Inc.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*/
|
|
|
|
'use strict';
|
|
|
|
// React 15.5 references this module, and assumes PropTypes are still callable in production.
|
|
// Therefore we re-export development-only version with all the PropTypes checks here.
|
|
// However if one is migrating to the `prop-types` npm library, they will go through the
|
|
// `index.js` entry point, and it will branch depending on the environment.
|
|
var factory = require('./factoryWithTypeCheckers');
|
|
module.exports = function(isValidElement) {
|
|
// It is still allowed in 15.5.
|
|
var throwOnDirectAccess = false;
|
|
return factory(isValidElement, throwOnDirectAccess);
|
|
};
|
|
|