mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-24 04:16:00 +08:00
[ReactNative] Remove nativePropTypes
This commit is contained in:
@@ -1,20 +0,0 @@
|
||||
/**
|
||||
* Copyright 2004-present Facebook. All Rights Reserved.
|
||||
*
|
||||
* @providesModule validAttributesFromPropTypes
|
||||
*/
|
||||
'use strict'
|
||||
|
||||
function validAttributesFromPropTypes(propTypes) {
|
||||
var validAttributes = {};
|
||||
for (var key in propTypes) {
|
||||
var propType = propTypes[key];
|
||||
if (propType && propType.isNative) {
|
||||
var diff = propType.differ;
|
||||
validAttributes[key] = diff ? {diff} : true;
|
||||
}
|
||||
}
|
||||
return validAttributes;
|
||||
}
|
||||
|
||||
module.exports = validAttributesFromPropTypes;
|
||||
Reference in New Issue
Block a user