forked from facebook/react-native-website
-
Notifications
You must be signed in to change notification settings - Fork 328
/
magic.js
61 lines (58 loc) · 1.42 KB
/
magic.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
/**
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
// Hard-coded knowledge about the React Native codebase and how to document it,
// beyond what is explicitly encoded in the react-docgen artifact
// (generatedComponentApiDocs.js)
// Ideally this file should go away.
module.exports = {
linkableTypeAliases: {
NativeColorValue: {
text: 'color',
url: 'colors.md',
},
ViewProps: {
text: 'View Props',
url: 'view.md#props',
},
PressEvent: {
text: 'PressEvent',
url: 'pressevent.md',
},
'RefreshLayoutConsts.SIZE.DEFAULT': {
text: 'RefreshControl.SIZE',
url: 'refreshcontrol.md#refreshlayoutconstssize',
},
StatusBarAnimation: {
text: 'StatusBarAnimation',
url: 'statusbar#statusbaranimation',
},
StatusBarStyle: {
text: 'StatusBarStyle',
url: 'statusbar#statusbarstyle',
},
ReactNode: {
text: 'React.Node',
url: 'react-node.md',
},
TextStyleProps: {
text: 'Text Style Props',
url: 'text-style-props',
},
SectionT: {
text: 'Section',
url: 'sectionlist#section',
},
ViewStyleProps: {
text: 'View Style Props',
url: 'view-style-props',
},
Text: {
text: 'Text',
url: 'text#style',
},
},
};