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:
parent
5b4fb89e4c
commit
28cf179171
|
@ -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 =
|
||||
|
|
Loading…
Reference in New Issue