Skip to content

Commit 00bb2ba

Browse files
Naturalclarfacebook-github-bot
authored andcommitted
Fix Dead links to documents in the comments (#32619)
Summary: Links under `reactnative.dev` that ended with `.html` lead to Page not found. Fixed the url so that users get sent to the appropriate url. ## Changelog <!-- Help reviewers and the release process by writing your own changelog entry. For an example, see: https://github.com/facebook/react-native/wiki/Changelog --> [General] [Fixed] - Fixed dead links in the comments. Pull Request resolved: #32619 Test Plan: - Changed links are accessible Reviewed By: lunaleaps Differential Revision: D32528978 Pulled By: cortinico fbshipit-source-id: e039d18188371cf5240b37049e431329e28b1b8b
1 parent 26e30a5 commit 00bb2ba

33 files changed

+266
-266
lines changed

Libraries/ActionSheetIOS/ActionSheetIOS.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import type {ProcessedColorValue} from '../StyleSheet/processColor';
1818
/**
1919
* Display action sheets and share sheets on iOS.
2020
*
21-
* See https://reactnative.dev/docs/actionsheetios.html
21+
* See https://reactnative.dev/docs/actionsheetios
2222
*/
2323
const ActionSheetIOS = {
2424
/**
@@ -36,7 +36,7 @@ const ActionSheetIOS = {
3636
* The 'callback' function takes one parameter, the zero-based index
3737
* of the selected item.
3838
*
39-
* See https://reactnative.dev/docs/actionsheetios.html#showactionsheetwithoptions
39+
* See https://reactnative.dev/docs/actionsheetios#showactionsheetwithoptions
4040
*/
4141
showActionSheetWithOptions(
4242
options: {|
@@ -117,7 +117,7 @@ const ActionSheetIOS = {
117117
* - a boolean value signifying success or failure
118118
* - a string that, in the case of success, indicates the method of sharing
119119
*
120-
* See https://reactnative.dev/docs/actionsheetios.html#showshareactionsheetwithoptions
120+
* See https://reactnative.dev/docs/actionsheetios#showshareactionsheetwithoptions
121121
*/
122122
showShareActionSheetWithOptions(
123123
options: Object,

Libraries/Alert/Alert.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ type Options = {
3434
/**
3535
* Launches an alert dialog with the specified title and message.
3636
*
37-
* See https://reactnative.dev/docs/alert.html
37+
* See https://reactnative.dev/docs/alert
3838
*/
3939
class Alert {
4040
static alert(

Libraries/AppState/AppState.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ type NativeAppStateEventDefinitions = {
3333
* `AppState` can tell you if the app is in the foreground or background,
3434
* and notify you when the state changes.
3535
*
36-
* See https://reactnative.dev/docs/appstate.html
36+
* See https://reactnative.dev/docs/appstate
3737
*/
3838
class AppState {
3939
currentState: ?string = null;
@@ -91,7 +91,7 @@ class AppState {
9191
* Add a handler to AppState changes by listening to the `change` event type
9292
* and providing the handler.
9393
*
94-
* See https://reactnative.dev/docs/appstate.html#addeventlistener
94+
* See https://reactnative.dev/docs/appstate#addeventlistener
9595
*/
9696
addEventListener<K: $Keys<AppStateEventDefinitions>>(
9797
type: K,

Libraries/Components/AccessibilityInfo/AccessibilityInfo.js

+11-11
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ const EventNames: Map<
7272
* well as to register to be notified when the state of the screen reader
7373
* changes.
7474
*
75-
* See https://reactnative.dev/docs/accessibilityinfo.html
75+
* See https://reactnative.dev/docs/accessibilityinfo
7676
*/
7777
const AccessibilityInfo = {
7878
/**
@@ -81,7 +81,7 @@ const AccessibilityInfo = {
8181
* Returns a promise which resolves to a boolean.
8282
* The result is `true` when bold text is enabled and `false` otherwise.
8383
*
84-
* See https://reactnative.dev/docs/accessibilityinfo.html#isBoldTextEnabled
84+
* See https://reactnative.dev/docs/accessibilityinfo#isBoldTextEnabled
8585
*/
8686
isBoldTextEnabled(): Promise<boolean> {
8787
if (Platform.OS === 'android') {
@@ -106,7 +106,7 @@ const AccessibilityInfo = {
106106
* Returns a promise which resolves to a boolean.
107107
* The result is `true` when grayscale is enabled and `false` otherwise.
108108
*
109-
* See https://reactnative.dev/docs/accessibilityinfo.html#isGrayscaleEnabled
109+
* See https://reactnative.dev/docs/accessibilityinfo#isGrayscaleEnabled
110110
*/
111111
isGrayscaleEnabled(): Promise<boolean> {
112112
if (Platform.OS === 'android') {
@@ -131,7 +131,7 @@ const AccessibilityInfo = {
131131
* Returns a promise which resolves to a boolean.
132132
* The result is `true` when invert color is enabled and `false` otherwise.
133133
*
134-
* See https://reactnative.dev/docs/accessibilityinfo.html#isInvertColorsEnabled
134+
* See https://reactnative.dev/docs/accessibilityinfo#isInvertColorsEnabled
135135
*/
136136
isInvertColorsEnabled(): Promise<boolean> {
137137
if (Platform.OS === 'android') {
@@ -156,7 +156,7 @@ const AccessibilityInfo = {
156156
* Returns a promise which resolves to a boolean.
157157
* The result is `true` when a reduce motion is enabled and `false` otherwise.
158158
*
159-
* See https://reactnative.dev/docs/accessibilityinfo.html#isReduceMotionEnabled
159+
* See https://reactnative.dev/docs/accessibilityinfo#isReduceMotionEnabled
160160
*/
161161
isReduceMotionEnabled(): Promise<boolean> {
162162
return new Promise((resolve, reject) => {
@@ -185,7 +185,7 @@ const AccessibilityInfo = {
185185
* Returns a promise which resolves to a boolean.
186186
* The result is `true` when a reduce transparency is enabled and `false` otherwise.
187187
*
188-
* See https://reactnative.dev/docs/accessibilityinfo.html#isReduceTransparencyEnabled
188+
* See https://reactnative.dev/docs/accessibilityinfo#isReduceTransparencyEnabled
189189
*/
190190
isReduceTransparencyEnabled(): Promise<boolean> {
191191
if (Platform.OS === 'android') {
@@ -210,7 +210,7 @@ const AccessibilityInfo = {
210210
* Returns a promise which resolves to a boolean.
211211
* The result is `true` when a screen reader is enabled and `false` otherwise.
212212
*
213-
* See https://reactnative.dev/docs/accessibilityinfo.html#isScreenReaderEnabled
213+
* See https://reactnative.dev/docs/accessibilityinfo#isScreenReaderEnabled
214214
*/
215215
isScreenReaderEnabled(): Promise<boolean> {
216216
return new Promise((resolve, reject) => {
@@ -292,7 +292,7 @@ const AccessibilityInfo = {
292292
* - `success`: A boolean indicating whether the announcement was
293293
* successfully made.
294294
*
295-
* See https://reactnative.dev/docs/accessibilityinfo.html#addeventlistener
295+
* See https://reactnative.dev/docs/accessibilityinfo#addeventlistener
296296
*/
297297
addEventListener<K: $Keys<AccessibilityEventDefinitions>>(
298298
eventName: K,
@@ -307,7 +307,7 @@ const AccessibilityInfo = {
307307
/**
308308
* Set accessibility focus to a React component.
309309
*
310-
* See https://reactnative.dev/docs/accessibilityinfo.html#setaccessibilityfocus
310+
* See https://reactnative.dev/docs/accessibilityinfo#setaccessibilityfocus
311311
*/
312312
setAccessibilityFocus(reactTag: number): void {
313313
legacySendAccessibilityEvent(reactTag, 'focus');
@@ -331,7 +331,7 @@ const AccessibilityInfo = {
331331
/**
332332
* Post a string to be announced by the screen reader.
333333
*
334-
* See https://reactnative.dev/docs/accessibilityinfo.html#announceforaccessibility
334+
* See https://reactnative.dev/docs/accessibilityinfo#announceforaccessibility
335335
*/
336336
announceForAccessibility(announcement: string): void {
337337
if (Platform.OS === 'android') {
@@ -363,7 +363,7 @@ const AccessibilityInfo = {
363363
/**
364364
* Get the recommended timeout for changes to the UI needed by this user.
365365
*
366-
* See https://reactnative.dev/docs/accessibilityinfo.html#getrecommendedtimeoutmillis
366+
* See https://reactnative.dev/docs/accessibilityinfo#getrecommendedtimeoutmillis
367367
*/
368368
getRecommendedTimeoutMillis(originalTimeout: number): Promise<number> {
369369
if (Platform.OS === 'android') {

Libraries/Components/ActivityIndicator/ActivityIndicatorViewNativeComponent.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -22,29 +22,29 @@ type NativeProps = $ReadOnly<{|
2222
/**
2323
* Whether the indicator should hide when not animating (true by default).
2424
*
25-
* See https://reactnative.dev/docs/activityindicator.html#hideswhenstopped
25+
* See https://reactnative.dev/docs/activityindicator#hideswhenstopped
2626
*/
2727
hidesWhenStopped?: WithDefault<boolean, false>,
2828

2929
/**
3030
* Whether to show the indicator (true, the default) or hide it (false).
3131
*
32-
* See https://reactnative.dev/docs/activityindicator.html#animating
32+
* See https://reactnative.dev/docs/activityindicator#animating
3333
*/
3434
animating?: WithDefault<boolean, false>,
3535

3636
/**
3737
* The foreground color of the spinner (default is gray).
3838
*
39-
* See https://reactnative.dev/docs/activityindicator.html#color
39+
* See https://reactnative.dev/docs/activityindicator#color
4040
*/
4141
color?: ?ColorValue,
4242

4343
/**
4444
* Size of the indicator (default is 'small').
4545
* Passing a number to the size prop is only supported on Android.
4646
*
47-
* See https://reactnative.dev/docs/activityindicator.html#size
47+
* See https://reactnative.dev/docs/activityindicator#size
4848
*/
4949
size?: WithDefault<'small' | 'large', 'small'>,
5050
|}>;

Libraries/Components/ScrollView/ScrollView.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -688,7 +688,7 @@ type ScrollViewComponentStatics = $ReadOnly<{|
688688
* view from becoming the responder.
689689
*
690690
*
691-
* `<ScrollView>` vs [`<FlatList>`](https://reactnative.dev/docs/flatlist.html) - which one to use?
691+
* `<ScrollView>` vs [`<FlatList>`](https://reactnative.dev/docs/flatlist) - which one to use?
692692
*
693693
* `ScrollView` simply renders all its react child components at once. That
694694
* makes it very easy to understand and use.

0 commit comments

Comments
 (0)