Skip to content

Commit

Permalink
[Docs] Remove deprecated styleProps
Browse files Browse the repository at this point in the history
- rotation, scaleX/Y, translateX/Y all belong under transform from
  ViewStylePropTypes
  • Loading branch information
Brent Vatne committed May 6, 2015
1 parent fbdc1f8 commit 77a3190
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions website/server/extractDocs.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}, {});

Expand Down

0 comments on commit 77a3190

Please sign in to comment.