Skip to content

Commit

Permalink
Fix Dead links to documents in the comments (#32619)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Naturalclar authored and facebook-github-bot committed Nov 22, 2021
1 parent 26e30a5 commit 00bb2ba
Show file tree
Hide file tree
Showing 33 changed files with 266 additions and 266 deletions.
6 changes: 3 additions & 3 deletions Libraries/ActionSheetIOS/ActionSheetIOS.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import type {ProcessedColorValue} from '../StyleSheet/processColor';
/**
* Display action sheets and share sheets on iOS.
*
* See https://reactnative.dev/docs/actionsheetios.html
* See https://reactnative.dev/docs/actionsheetios
*/
const ActionSheetIOS = {
/**
Expand All @@ -36,7 +36,7 @@ const ActionSheetIOS = {
* The 'callback' function takes one parameter, the zero-based index
* of the selected item.
*
* See https://reactnative.dev/docs/actionsheetios.html#showactionsheetwithoptions
* See https://reactnative.dev/docs/actionsheetios#showactionsheetwithoptions
*/
showActionSheetWithOptions(
options: {|
Expand Down Expand Up @@ -117,7 +117,7 @@ const ActionSheetIOS = {
* - a boolean value signifying success or failure
* - a string that, in the case of success, indicates the method of sharing
*
* See https://reactnative.dev/docs/actionsheetios.html#showshareactionsheetwithoptions
* See https://reactnative.dev/docs/actionsheetios#showshareactionsheetwithoptions
*/
showShareActionSheetWithOptions(
options: Object,
Expand Down
2 changes: 1 addition & 1 deletion Libraries/Alert/Alert.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ type Options = {
/**
* Launches an alert dialog with the specified title and message.
*
* See https://reactnative.dev/docs/alert.html
* See https://reactnative.dev/docs/alert
*/
class Alert {
static alert(
Expand Down
4 changes: 2 additions & 2 deletions Libraries/AppState/AppState.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ type NativeAppStateEventDefinitions = {
* `AppState` can tell you if the app is in the foreground or background,
* and notify you when the state changes.
*
* See https://reactnative.dev/docs/appstate.html
* See https://reactnative.dev/docs/appstate
*/
class AppState {
currentState: ?string = null;
Expand Down Expand Up @@ -91,7 +91,7 @@ class AppState {
* Add a handler to AppState changes by listening to the `change` event type
* and providing the handler.
*
* See https://reactnative.dev/docs/appstate.html#addeventlistener
* See https://reactnative.dev/docs/appstate#addeventlistener
*/
addEventListener<K: $Keys<AppStateEventDefinitions>>(
type: K,
Expand Down
22 changes: 11 additions & 11 deletions Libraries/Components/AccessibilityInfo/AccessibilityInfo.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ const EventNames: Map<
* well as to register to be notified when the state of the screen reader
* changes.
*
* See https://reactnative.dev/docs/accessibilityinfo.html
* See https://reactnative.dev/docs/accessibilityinfo
*/
const AccessibilityInfo = {
/**
Expand All @@ -81,7 +81,7 @@ const AccessibilityInfo = {
* Returns a promise which resolves to a boolean.
* The result is `true` when bold text is enabled and `false` otherwise.
*
* See https://reactnative.dev/docs/accessibilityinfo.html#isBoldTextEnabled
* See https://reactnative.dev/docs/accessibilityinfo#isBoldTextEnabled
*/
isBoldTextEnabled(): Promise<boolean> {
if (Platform.OS === 'android') {
Expand All @@ -106,7 +106,7 @@ const AccessibilityInfo = {
* Returns a promise which resolves to a boolean.
* The result is `true` when grayscale is enabled and `false` otherwise.
*
* See https://reactnative.dev/docs/accessibilityinfo.html#isGrayscaleEnabled
* See https://reactnative.dev/docs/accessibilityinfo#isGrayscaleEnabled
*/
isGrayscaleEnabled(): Promise<boolean> {
if (Platform.OS === 'android') {
Expand All @@ -131,7 +131,7 @@ const AccessibilityInfo = {
* Returns a promise which resolves to a boolean.
* The result is `true` when invert color is enabled and `false` otherwise.
*
* See https://reactnative.dev/docs/accessibilityinfo.html#isInvertColorsEnabled
* See https://reactnative.dev/docs/accessibilityinfo#isInvertColorsEnabled
*/
isInvertColorsEnabled(): Promise<boolean> {
if (Platform.OS === 'android') {
Expand All @@ -156,7 +156,7 @@ const AccessibilityInfo = {
* Returns a promise which resolves to a boolean.
* The result is `true` when a reduce motion is enabled and `false` otherwise.
*
* See https://reactnative.dev/docs/accessibilityinfo.html#isReduceMotionEnabled
* See https://reactnative.dev/docs/accessibilityinfo#isReduceMotionEnabled
*/
isReduceMotionEnabled(): Promise<boolean> {
return new Promise((resolve, reject) => {
Expand Down Expand Up @@ -185,7 +185,7 @@ const AccessibilityInfo = {
* Returns a promise which resolves to a boolean.
* The result is `true` when a reduce transparency is enabled and `false` otherwise.
*
* See https://reactnative.dev/docs/accessibilityinfo.html#isReduceTransparencyEnabled
* See https://reactnative.dev/docs/accessibilityinfo#isReduceTransparencyEnabled
*/
isReduceTransparencyEnabled(): Promise<boolean> {
if (Platform.OS === 'android') {
Expand All @@ -210,7 +210,7 @@ const AccessibilityInfo = {
* Returns a promise which resolves to a boolean.
* The result is `true` when a screen reader is enabled and `false` otherwise.
*
* See https://reactnative.dev/docs/accessibilityinfo.html#isScreenReaderEnabled
* See https://reactnative.dev/docs/accessibilityinfo#isScreenReaderEnabled
*/
isScreenReaderEnabled(): Promise<boolean> {
return new Promise((resolve, reject) => {
Expand Down Expand Up @@ -292,7 +292,7 @@ const AccessibilityInfo = {
* - `success`: A boolean indicating whether the announcement was
* successfully made.
*
* See https://reactnative.dev/docs/accessibilityinfo.html#addeventlistener
* See https://reactnative.dev/docs/accessibilityinfo#addeventlistener
*/
addEventListener<K: $Keys<AccessibilityEventDefinitions>>(
eventName: K,
Expand All @@ -307,7 +307,7 @@ const AccessibilityInfo = {
/**
* Set accessibility focus to a React component.
*
* See https://reactnative.dev/docs/accessibilityinfo.html#setaccessibilityfocus
* See https://reactnative.dev/docs/accessibilityinfo#setaccessibilityfocus
*/
setAccessibilityFocus(reactTag: number): void {
legacySendAccessibilityEvent(reactTag, 'focus');
Expand All @@ -331,7 +331,7 @@ const AccessibilityInfo = {
/**
* Post a string to be announced by the screen reader.
*
* See https://reactnative.dev/docs/accessibilityinfo.html#announceforaccessibility
* See https://reactnative.dev/docs/accessibilityinfo#announceforaccessibility
*/
announceForAccessibility(announcement: string): void {
if (Platform.OS === 'android') {
Expand Down Expand Up @@ -363,7 +363,7 @@ const AccessibilityInfo = {
/**
* Get the recommended timeout for changes to the UI needed by this user.
*
* See https://reactnative.dev/docs/accessibilityinfo.html#getrecommendedtimeoutmillis
* See https://reactnative.dev/docs/accessibilityinfo#getrecommendedtimeoutmillis
*/
getRecommendedTimeoutMillis(originalTimeout: number): Promise<number> {
if (Platform.OS === 'android') {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,29 +22,29 @@ type NativeProps = $ReadOnly<{|
/**
* Whether the indicator should hide when not animating (true by default).
*
* See https://reactnative.dev/docs/activityindicator.html#hideswhenstopped
* See https://reactnative.dev/docs/activityindicator#hideswhenstopped
*/
hidesWhenStopped?: WithDefault<boolean, false>,

/**
* Whether to show the indicator (true, the default) or hide it (false).
*
* See https://reactnative.dev/docs/activityindicator.html#animating
* See https://reactnative.dev/docs/activityindicator#animating
*/
animating?: WithDefault<boolean, false>,

/**
* The foreground color of the spinner (default is gray).
*
* See https://reactnative.dev/docs/activityindicator.html#color
* See https://reactnative.dev/docs/activityindicator#color
*/
color?: ?ColorValue,

/**
* Size of the indicator (default is 'small').
* Passing a number to the size prop is only supported on Android.
*
* See https://reactnative.dev/docs/activityindicator.html#size
* See https://reactnative.dev/docs/activityindicator#size
*/
size?: WithDefault<'small' | 'large', 'small'>,
|}>;
Expand Down
2 changes: 1 addition & 1 deletion Libraries/Components/ScrollView/ScrollView.js
Original file line number Diff line number Diff line change
Expand Up @@ -688,7 +688,7 @@ type ScrollViewComponentStatics = $ReadOnly<{|
* view from becoming the responder.
*
*
* `<ScrollView>` vs [`<FlatList>`](https://reactnative.dev/docs/flatlist.html) - which one to use?
* `<ScrollView>` vs [`<FlatList>`](https://reactnative.dev/docs/flatlist) - which one to use?
*
* `ScrollView` simply renders all its react child components at once. That
* makes it very easy to understand and use.
Expand Down
Loading

0 comments on commit 00bb2ba

Please sign in to comment.