[Docs] Remove deprecated styleProps

- rotation, scaleX/Y, translateX/Y all belong under transform from
  ViewStylePropTypes
This commit is contained in:
Brent Vatne 2015-05-05 15:27:43 -07:00
Родитель fbdc1f8ba1
Коммит 77a3190606
1 изменённых файлов: 8 добавлений и 0 удалений

Просмотреть файл

@ -169,6 +169,14 @@ var styleDocs = styles.slice(1).reduce(function(docs, filepath) {
docgenHelpers.findExportedObject,
[docgen.handlers.propTypeHandler]
);
// Remove deprecated style props
if (docs['ViewStylePropTypes']) {
['rotation', 'scaleX', 'scaleY', 'translateX', 'translateY'].forEach(function(key) {
delete docs['ViewStylePropTypes']['props'][key];
});
}
return docs;
}, {});