Skip to content

Commit cc92ab4

Browse files
committed
Refactor comments to use reference style links
1 parent d028fae commit cc92ab4

1 file changed

Lines changed: 31 additions & 15 deletions

File tree

Libraries/Components/Button.js

Lines changed: 31 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
*
77
* @format
88
* @flow
9+
* @generate-docs
910
*/
1011

1112
'use strict';
@@ -64,44 +65,54 @@ type ButtonProps = $ReadOnly<{|
6465

6566
/**
6667
Designates the next view to receive focus when the user navigates down. See
67-
the [Android
68-
documentation](https://developer.android.com/reference/android/view/View.html#attr_android:nextFocusDown).
68+
the [Android documentation][android:nextFocusDown].
69+
70+
[android:nextFocusDown]:
71+
https://developer.android.com/reference/android/view/View.html#attr_android:nextFocusDown
6972
7073
@platform android, tv
7174
*/
7275
nextFocusDown?: ?number,
7376

7477
/**
7578
Designates the next view to receive focus when the user navigates forward.
76-
See the [Android
77-
documentation](https://developer.android.com/reference/android/view/View.html#attr_android:nextFocusForward).
79+
See the [Android documentation][android:nextFocusForward].
80+
81+
[android:nextFocusForward]:
82+
https://developer.android.com/reference/android/view/View.html#attr_android:nextFocusForward
7883
7984
@platform android, tv
8085
*/
8186
nextFocusForward?: ?number,
8287

8388
/**
8489
Designates the next view to receive focus when the user navigates left. See
85-
the [Android
86-
documentation](https://developer.android.com/reference/android/view/View.html#attr_android:nextFocusLeft).
90+
the [Android documentation][android:nextFocusLeft].
91+
92+
[android:nextFocusLeft]:
93+
https://developer.android.com/reference/android/view/View.html#attr_android:nextFocusLeft
8794
8895
@platform android, tv
8996
*/
9097
nextFocusLeft?: ?number,
9198

9299
/**
93100
Designates the next view to receive focus when the user navigates right. See
94-
the [Android
95-
documentation](https://developer.android.com/reference/android/view/View.html#attr_android:nextFocusRight).
101+
the [Android documentation][android:nextFocusRight].
102+
103+
[android:nextFocusRight]:
104+
https://developer.android.com/reference/android/view/View.html#attr_android:nextFocusRight
96105
97106
@platform android, tv
98107
*/
99108
nextFocusRight?: ?number,
100109

101110
/**
102111
Designates the next view to receive focus when the user navigates up. See
103-
the [Android
104-
documentation](https://developer.android.com/reference/android/view/View.html#attr_android:nextFocusUp).
112+
the [Android documentation][android:nextFocusUp].
113+
114+
[android:nextFocusUp]:
115+
https://developer.android.com/reference/android/view/View.html#attr_android:nextFocusUp
105116
106117
@platform android, tv
107118
*/
@@ -132,10 +143,15 @@ type ButtonProps = $ReadOnly<{|
132143
If this button doesn't look right for your app, you can build your own button
133144
using [TouchableOpacity](touchableopacity) or
134145
[TouchableWithoutFeedback](touchablewithoutfeedback). For inspiration, look at
135-
the [source code for this button
136-
component](https://github.com/facebook/react-native/blob/master/Libraries/Components/Button.js).
137-
Or, take a look at the [wide variety of button components built by the
138-
community](https://js.coach/?menu%5Bcollections%5D=React%20Native&page=1&query=button).
146+
the [source code for this button component][button:source]. Or, take a look at
147+
the [wide variety of button components built by the community]
148+
[button:examples].
149+
150+
[button:source]:
151+
https://github.com/facebook/react-native/blob/master/Libraries/Components/Button.js
152+
153+
[button:examples]:
154+
https://js.coach/?menu%5Bcollections%5D=React%20Native&page=1&query=button
139155
140156
```jsx
141157
<Button
@@ -146,7 +162,7 @@ type ButtonProps = $ReadOnly<{|
146162
/>
147163
```
148164
149-
@example ```SnackPlayer name=Button%20Example
165+
```SnackPlayer name=Button%20Example
150166
import React from 'react';
151167
import { StyleSheet, Button, View, SafeAreaView, Text, Alert } from 'react-native';
152168

0 commit comments

Comments
 (0)