mirror of
https://github.com/facebook/react-native.git
synced 2026-11-18 20:19:07 +00:00
[react-packager][streamline oss] Move open sourced JS source to react-native-github
This commit is contained in:
commit
efae175a8e
434 files changed
+44658
No files matched your search
@@ -0,0 +1,20 @@
|
||||
/**
|
||||
* 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