Support for ShadowPropTypesIOS

Summary:
Fixes https://github.com/facebook/react-native/issues/5748

<img width="1179" alt="screen shot 2016-02-04 at 12 08 07 pm" src="https://cloud.githubusercontent.com/assets/197597/12828197/340f7d5e-cb38-11e5-84b5-8dde48014100.png">
Closes https://github.com/facebook/react-native/pull/5763

Reviewed By: svcscm

Differential Revision: D2902270

Pulled By: vjeux

fb-gh-sync-id: bde9beaa869f9fe6d610e7bdf8f16bc3f4a08c7a
This commit is contained in:
Christopher Chedeau 2016-02-04 15:45:34 -08:00 committed by facebook-github-bot-7
parent 4326b01181
commit 736e900532
1 changed files with 8 additions and 4 deletions

View File

@ -252,9 +252,13 @@ var apis = [
'../Libraries/Vibration/VibrationIOS.ios.js',
];
var styles = [
var stylesWithPermalink = [
'../Libraries/StyleSheet/LayoutPropTypes.js',
'../Libraries/StyleSheet/TransformPropTypes.js',
'../Libraries/Components/View/ShadowPropTypesIOS.js',
];
var stylesForEmbed = [
'../Libraries/Components/View/ViewStylePropTypes.js',
'../Libraries/Text/TextStylePropTypes.js',
'../Libraries/Image/ImageStylePropTypes.js',
@ -266,10 +270,10 @@ var polyfills = [
var all = components
.concat(apis)
.concat(styles.slice(0, 2))
.concat(stylesWithPermalink)
.concat(polyfills);
var styleDocs = styles.slice(2).reduce(function(docs, filepath) {
var styleDocs = stylesForEmbed.reduce(function(docs, filepath) {
docs[path.basename(filepath).replace(path.extname(filepath), '')] =
docgen.parse(
fs.readFileSync(filepath),
@ -289,7 +293,7 @@ module.exports = function() {
return [].concat(
components.map(renderComponent),
apis.map(renderAPI('api')),
styles.slice(0, 2).map(renderStyle),
stylesWithPermalink.map(renderStyle),
polyfills.map(renderAPI('Polyfill'))
);
};