fix broken link

Summary:
The link to `'ShadowPropTypesIOS'` in `View` and `Image` docs is broken since RN0.29
Closes https://github.com/facebook/react-native/pull/8814

Differential Revision: D3628978

Pulled By: lacker

fbshipit-source-id: b233e191d1e1e0731cd5b2fe33287d68aa12e041
This commit is contained in:
Neo 2016-07-27 11:27:31 -07:00 committed by Facebook Github Bot 1
parent 5b4fb89e4c
commit 28cf179171
1 changed files with 7 additions and 3 deletions

View File

@ -253,13 +253,17 @@ var ComponentDoc = React.createClass({
{(style.composes || []).map((name) => {
var link;
if (name === 'LayoutPropTypes') {
name = 'Flexbox';
name = 'Layout Props';
link =
<a href={'docs/' + slugify(name) + '.html#proptypes'}>{name}...</a>;
<a href={'docs/' + slugify(name) + '.html#props'}>{name}...</a>;
} else if (name === 'ShadowPropTypesIOS') {
name = 'Shadow Props';
link =
<a href={'docs/' + slugify(name) + '.html#props'}>{name}...</a>;
} else if (name === 'TransformPropTypes') {
name = 'Transforms';
link =
<a href={'docs/' + slugify(name) + '.html#proptypes'}>{name}...</a>;
<a href={'docs/' + slugify(name) + '.html#props'}>{name}...</a>;
} else {
name = name.replace('StylePropTypes', '');
link =