diff --git a/Libraries/ActionSheetIOS/ActionSheetIOS.js b/Libraries/ActionSheetIOS/ActionSheetIOS.js index 889832df1b77..a084ef426891 100644 --- a/Libraries/ActionSheetIOS/ActionSheetIOS.js +++ b/Libraries/ActionSheetIOS/ActionSheetIOS.js @@ -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 = { /** @@ -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: {| @@ -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, diff --git a/Libraries/Alert/Alert.js b/Libraries/Alert/Alert.js index 091ff74ab654..403a60f036b1 100644 --- a/Libraries/Alert/Alert.js +++ b/Libraries/Alert/Alert.js @@ -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( diff --git a/Libraries/AppState/AppState.js b/Libraries/AppState/AppState.js index 191ab4b28f21..14ca396d7544 100644 --- a/Libraries/AppState/AppState.js +++ b/Libraries/AppState/AppState.js @@ -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; @@ -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>( type: K, diff --git a/Libraries/Components/AccessibilityInfo/AccessibilityInfo.js b/Libraries/Components/AccessibilityInfo/AccessibilityInfo.js index a388a6d618f4..d7c0859c3f4b 100644 --- a/Libraries/Components/AccessibilityInfo/AccessibilityInfo.js +++ b/Libraries/Components/AccessibilityInfo/AccessibilityInfo.js @@ -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 = { /** @@ -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 { if (Platform.OS === 'android') { @@ -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 { if (Platform.OS === 'android') { @@ -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 { if (Platform.OS === 'android') { @@ -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 { return new Promise((resolve, reject) => { @@ -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 { if (Platform.OS === 'android') { @@ -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 { return new Promise((resolve, reject) => { @@ -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>( eventName: K, @@ -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'); @@ -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') { @@ -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 { if (Platform.OS === 'android') { diff --git a/Libraries/Components/ActivityIndicator/ActivityIndicatorViewNativeComponent.js b/Libraries/Components/ActivityIndicator/ActivityIndicatorViewNativeComponent.js index 3475cebeddea..8268fb5f9c88 100644 --- a/Libraries/Components/ActivityIndicator/ActivityIndicatorViewNativeComponent.js +++ b/Libraries/Components/ActivityIndicator/ActivityIndicatorViewNativeComponent.js @@ -22,21 +22,21 @@ 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, /** * 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, /** * 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, @@ -44,7 +44,7 @@ type NativeProps = $ReadOnly<{| * 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'>, |}>; diff --git a/Libraries/Components/ScrollView/ScrollView.js b/Libraries/Components/ScrollView/ScrollView.js index 87bec5b7629f..fac995f0ad95 100644 --- a/Libraries/Components/ScrollView/ScrollView.js +++ b/Libraries/Components/ScrollView/ScrollView.js @@ -688,7 +688,7 @@ type ScrollViewComponentStatics = $ReadOnly<{| * view from becoming the responder. * * - * `` vs [``](https://reactnative.dev/docs/flatlist.html) - which one to use? + * `` vs [``](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. diff --git a/Libraries/Components/View/ViewPropTypes.js b/Libraries/Components/View/ViewPropTypes.js index 497d94cff18b..a8512cc35cb4 100644 --- a/Libraries/Components/View/ViewPropTypes.js +++ b/Libraries/Components/View/ViewPropTypes.js @@ -49,7 +49,7 @@ type DirectEventProps = $ReadOnly<{| * When `accessible` is true, the system will try to invoke this function * when the user performs accessibility tap gesture. * - * See https://reactnative.dev/docs/view.html#onaccessibilitytap + * See https://reactnative.dev/docs/view#onaccessibilitytap */ onAccessibilityTap?: ?() => mixed, @@ -62,7 +62,7 @@ type DirectEventProps = $ReadOnly<{| * the new layout may not yet be reflected on the screen at the time the * event is received, especially if a layout animation is in progress. * - * See https://reactnative.dev/docs/view.html#onlayout + * See https://reactnative.dev/docs/view#onlayout */ onLayout?: ?(event: LayoutEvent) => mixed, @@ -70,7 +70,7 @@ type DirectEventProps = $ReadOnly<{| * When `accessible` is `true`, the system will invoke this function when the * user performs the magic tap gesture. * - * See https://reactnative.dev/docs/view.html#onmagictap + * See https://reactnative.dev/docs/view#onmagictap */ onMagicTap?: ?() => mixed, @@ -78,7 +78,7 @@ type DirectEventProps = $ReadOnly<{| * When `accessible` is `true`, the system will invoke this function when the * user performs the escape gesture. * - * See https://reactnative.dev/docs/view.html#onaccessibilityescape + * See https://reactnative.dev/docs/view#onaccessibilityescape */ onAccessibilityEscape?: ?() => mixed, |}>; @@ -112,7 +112,7 @@ type GestureResponderEventProps = $ReadOnly<{| * `View.props.onMoveShouldSetResponder: (event) => [true | false]`, where * `event` is a synthetic touch event as described above. * - * See https://reactnative.dev/docs/view.html#onmoveshouldsetresponder + * See https://reactnative.dev/docs/view#onmoveshouldsetresponder */ onMoveShouldSetResponder?: ?(e: PressEvent) => boolean, @@ -123,7 +123,7 @@ type GestureResponderEventProps = $ReadOnly<{| * `View.props.onMoveShouldSetResponderCapture: (event) => [true | false]`, * where `event` is a synthetic touch event as described above. * - * See https://reactnative.dev/docs/view.html#onMoveShouldsetrespondercapture + * See https://reactnative.dev/docs/view#onMoveShouldsetrespondercapture */ onMoveShouldSetResponderCapture?: ?(e: PressEvent) => boolean, @@ -137,7 +137,7 @@ type GestureResponderEventProps = $ReadOnly<{| * PanResponder includes a note `// TODO: t7467124 investigate if this can be removed` that * should help fixing this return type. * - * See https://reactnative.dev/docs/view.html#onrespondergrant + * See https://reactnative.dev/docs/view#onrespondergrant */ onResponderGrant?: ?(e: PressEvent) => void | boolean, @@ -147,7 +147,7 @@ type GestureResponderEventProps = $ReadOnly<{| * `View.props.onResponderMove: (event) => {}`, where `event` is a synthetic * touch event as described above. * - * See https://reactnative.dev/docs/view.html#onrespondermove + * See https://reactnative.dev/docs/view#onrespondermove */ onResponderMove?: ?(e: PressEvent) => void, @@ -158,7 +158,7 @@ type GestureResponderEventProps = $ReadOnly<{| * `View.props.onResponderReject: (event) => {}`, where `event` is a * synthetic touch event as described above. * - * See https://reactnative.dev/docs/view.html#onresponderreject + * See https://reactnative.dev/docs/view#onresponderreject */ onResponderReject?: ?(e: PressEvent) => void, @@ -168,7 +168,7 @@ type GestureResponderEventProps = $ReadOnly<{| * `View.props.onResponderRelease: (event) => {}`, where `event` is a * synthetic touch event as described above. * - * See https://reactnative.dev/docs/view.html#onresponderrelease + * See https://reactnative.dev/docs/view#onresponderrelease */ onResponderRelease?: ?(e: PressEvent) => void, @@ -184,7 +184,7 @@ type GestureResponderEventProps = $ReadOnly<{| * `View.props.onResponderTerminate: (event) => {}`, where `event` is a * synthetic touch event as described above. * - * See https://reactnative.dev/docs/view.html#onresponderterminate + * See https://reactnative.dev/docs/view#onresponderterminate */ onResponderTerminate?: ?(e: PressEvent) => void, @@ -195,7 +195,7 @@ type GestureResponderEventProps = $ReadOnly<{| * `View.props.onResponderTerminationRequest: (event) => {}`, where `event` * is a synthetic touch event as described above. * - * See https://reactnative.dev/docs/view.html#onresponderterminationrequest + * See https://reactnative.dev/docs/view#onresponderterminationrequest */ onResponderTerminationRequest?: ?(e: PressEvent) => boolean, @@ -205,7 +205,7 @@ type GestureResponderEventProps = $ReadOnly<{| * `View.props.onStartShouldSetResponder: (event) => [true | false]`, where * `event` is a synthetic touch event as described above. * - * See https://reactnative.dev/docs/view.html#onstartshouldsetresponder + * See https://reactnative.dev/docs/view#onstartshouldsetresponder */ onStartShouldSetResponder?: ?(e: PressEvent) => boolean, @@ -216,7 +216,7 @@ type GestureResponderEventProps = $ReadOnly<{| * `View.props.onStartShouldSetResponderCapture: (event) => [true | false]`, * where `event` is a synthetic touch event as described above. * - * See https://reactnative.dev/docs/view.html#onstartshouldsetrespondercapture + * See https://reactnative.dev/docs/view#onstartshouldsetrespondercapture */ onStartShouldSetResponderCapture?: ?(e: PressEvent) => boolean, |}>; @@ -245,7 +245,7 @@ type AndroidViewProps = $ReadOnly<{| * * @platform android * - * See https://reactnative.dev/docs/view.html#rendertohardwaretextureandroid + * See https://reactnative.dev/docs/view#rendertohardwaretextureandroid */ renderToHardwareTextureAndroid?: ?boolean, @@ -255,7 +255,7 @@ type AndroidViewProps = $ReadOnly<{| * * @platform android * - * See https://reactnative.dev/docs/view.html#needsoffscreenalphacompositing + * See https://reactnative.dev/docs/view#needsoffscreenalphacompositing */ needsOffscreenAlphaCompositing?: ?boolean, @@ -265,7 +265,7 @@ type AndroidViewProps = $ReadOnly<{| * * @platform android * - * See https://reactnative.dev/docs/view.html#accessibilityliveregion + * See https://reactnative.dev/docs/view#accessibilityliveregion */ accessibilityLiveRegion?: ?('none' | 'polite' | 'assertive'), @@ -276,7 +276,7 @@ type AndroidViewProps = $ReadOnly<{| * * @platform android * - * See https://reactnative.dev/docs/view.html#importantforaccessibility + * See https://reactnative.dev/docs/view#importantforaccessibility */ importantForAccessibility?: ?('auto' | 'yes' | 'no' | 'no-hide-descendants'), @@ -352,7 +352,7 @@ type IOSViewProps = $ReadOnly<{| * * @platform ios * - * See https://reactnative.dev/docs/view.html#accessibilityviewismodal + * See https://reactnative.dev/docs/view#accessibilityviewismodal */ accessibilityViewIsModal?: ?boolean, @@ -362,7 +362,7 @@ type IOSViewProps = $ReadOnly<{| * * @platform ios * - * See https://reactnative.dev/docs/view.html#accessibilityElementsHidden + * See https://reactnative.dev/docs/view#accessibilityElementsHidden */ accessibilityElementsHidden?: ?boolean, @@ -371,7 +371,7 @@ type IOSViewProps = $ReadOnly<{| * * @platform ios * - * See https://reactnative.dev/docs/view.html#shouldrasterizeios + * See https://reactnative.dev/docs/view#shouldrasterizeios */ shouldRasterizeIOS?: ?boolean, |}>; @@ -392,7 +392,7 @@ export type ViewProps = $ReadOnly<{| * When `true`, indicates that the view is an accessibility element. * By default, all the touchable elements are accessible. * - * See https://reactnative.dev/docs/view.html#accessible + * See https://reactnative.dev/docs/view#accessible */ accessible?: ?boolean, @@ -401,7 +401,7 @@ export type ViewProps = $ReadOnly<{| * with the element. By default, the label is constructed by traversing all * the children and accumulating all the `Text` nodes separated by space. * - * See https://reactnative.dev/docs/view.html#accessibilitylabel + * See https://reactnative.dev/docs/view#accessibilitylabel */ accessibilityLabel?: ?Stringish, @@ -411,7 +411,7 @@ export type ViewProps = $ReadOnly<{| * accessibility label. * * - * See https://reactnative.dev/docs/view.html#accessibilityHint + * See https://reactnative.dev/docs/view#accessibilityHint */ accessibilityHint?: ?Stringish, @@ -441,7 +441,7 @@ export type ViewProps = $ReadOnly<{| * @platform android * In Fabric, this prop is used in ios as well. * - * See https://reactnative.dev/docs/view.html#collapsable + * See https://reactnative.dev/docs/view#collapsable */ collapsable?: ?boolean, @@ -450,7 +450,7 @@ export type ViewProps = $ReadOnly<{| * * > This disables the 'layout-only view removal' optimization for this view! * - * See https://reactnative.dev/docs/view.html#testid + * See https://reactnative.dev/docs/view#testid */ testID?: ?string, @@ -459,7 +459,7 @@ export type ViewProps = $ReadOnly<{| * * > This disables the 'layout-only view removal' optimization for this view! * - * See https://reactnative.dev/docs/view.html#nativeid + * See https://reactnative.dev/docs/view#nativeid */ nativeID?: ?string, @@ -472,14 +472,14 @@ export type ViewProps = $ReadOnly<{| * > of sibling views always takes precedence if a touch hits two overlapping * > views. * - * See https://reactnative.dev/docs/view.html#hitslop + * See https://reactnative.dev/docs/view#hitslop */ hitSlop?: ?EdgeInsetsProp, /** * Controls whether the `View` can be the target of touch events. * - * See https://reactnative.dev/docs/view.html#pointerevents + * See https://reactnative.dev/docs/view#pointerevents */ pointerEvents?: ?('auto' | 'box-none' | 'box-only' | 'none'), @@ -491,7 +491,7 @@ export type ViewProps = $ReadOnly<{| * subviews must also have `overflow: hidden`, as should the containing view * (or one of its superviews). * - * See https://reactnative.dev/docs/view.html#removeclippedsubviews + * See https://reactnative.dev/docs/view#removeclippedsubviews */ removeClippedSubviews?: ?boolean, |}>; diff --git a/Libraries/DeprecatedPropTypes/DeprecatedImagePropType.android.js b/Libraries/DeprecatedPropTypes/DeprecatedImagePropType.android.js index 7df9fbf644cd..f9787a3c6c40 100644 --- a/Libraries/DeprecatedPropTypes/DeprecatedImagePropType.android.js +++ b/Libraries/DeprecatedPropTypes/DeprecatedImagePropType.android.js @@ -21,7 +21,7 @@ const DeprecatedImagePropType = { DeprecatedImageStylePropTypes, ): ReactPropsCheckType), /** - * See https://reactnative.dev/docs/image.html#source + * See https://reactnative.dev/docs/image#source */ source: (PropTypes.oneOfType([ PropTypes.shape({ @@ -57,15 +57,15 @@ const DeprecatedImagePropType = { /** * blurRadius: the blur radius of the blur filter added to the image * - * See https://reactnative.dev/docs/image.html#blurradius + * See https://reactnative.dev/docs/image#blurradius */ blurRadius: PropTypes.number, /** - * See https://reactnative.dev/docs/image.html#defaultsource + * See https://reactnative.dev/docs/image#defaultsource */ defaultSource: PropTypes.number, /** - * See https://reactnative.dev/docs/image.html#loadingindicatorsource + * See https://reactnative.dev/docs/image#loadingindicatorsource */ loadingIndicatorSource: (PropTypes.oneOfType([ PropTypes.shape({ @@ -104,7 +104,7 @@ const DeprecatedImagePropType = { * The mechanism that should be used to resize the image when the image's dimensions * differ from the image view's dimensions. Defaults to `auto`. * - * See https://reactnative.dev/docs/image.html#resizemethod + * See https://reactnative.dev/docs/image#resizemethod */ resizeMethod: (PropTypes.oneOf([ 'auto', @@ -115,7 +115,7 @@ const DeprecatedImagePropType = { * Determines how to resize the image when the frame doesn't match the raw * image dimensions. * - * See https://reactnative.dev/docs/image.html#resizemode + * See https://reactnative.dev/docs/image#resizemode */ resizeMode: (PropTypes.oneOf([ 'cover', diff --git a/Libraries/DeprecatedPropTypes/DeprecatedTextPropTypes.js b/Libraries/DeprecatedPropTypes/DeprecatedTextPropTypes.js index f14635ab3a8c..9770bae08cf9 100644 --- a/Libraries/DeprecatedPropTypes/DeprecatedTextPropTypes.js +++ b/Libraries/DeprecatedPropTypes/DeprecatedTextPropTypes.js @@ -27,7 +27,7 @@ module.exports = { * When `numberOfLines` is set, this prop defines how text will be * truncated. * - * See https://reactnative.dev/docs/text.html#ellipsizemode + * See https://reactnative.dev/docs/text#ellipsizemode */ ellipsizeMode: (PropTypes.oneOf([ 'head', @@ -38,13 +38,13 @@ module.exports = { /** * Used to truncate the text with an ellipsis. * - * See https://reactnative.dev/docs/text.html#numberoflines + * See https://reactnative.dev/docs/text#numberoflines */ numberOfLines: PropTypes.number, /** * Set text break strategy on Android. * - * See https://reactnative.dev/docs/text.html#textbreakstrategy + * See https://reactnative.dev/docs/text#textbreakstrategy */ textBreakStrategy: (PropTypes.oneOf([ 'simple', @@ -54,63 +54,63 @@ module.exports = { /** * Invoked on mount and layout changes. * - * See https://reactnative.dev/docs/text.html#onlayout + * See https://reactnative.dev/docs/text#onlayout */ onLayout: PropTypes.func, /** * This function is called on press. * - * See https://reactnative.dev/docs/text.html#onpress + * See https://reactnative.dev/docs/text#onpress */ onPress: PropTypes.func, /** * This function is called on long press. * - * See https://reactnative.dev/docs/text.html#onlongpress + * See https://reactnative.dev/docs/text#onlongpress */ onLongPress: PropTypes.func, /** * Defines how far your touch may move off of the button, before * deactivating the button. * - * See https://reactnative.dev/docs/text.html#pressretentionoffset + * See https://reactnative.dev/docs/text#pressretentionoffset */ pressRetentionOffset: DeprecatedEdgeInsetsPropType, /** * Lets the user select text. * - * See https://reactnative.dev/docs/text.html#selectable + * See https://reactnative.dev/docs/text#selectable */ selectable: PropTypes.bool, /** * The highlight color of the text. * - * See https://reactnative.dev/docs/text.html#selectioncolor + * See https://reactnative.dev/docs/text#selectioncolor */ selectionColor: DeprecatedColorPropType, /** * When `true`, no visual change is made when text is pressed down. * - * See https://reactnative.dev/docs/text.html#supperhighlighting + * See https://reactnative.dev/docs/text#supperhighlighting */ suppressHighlighting: PropTypes.bool, style: stylePropType, /** * Used to locate this view in end-to-end tests. * - * See https://reactnative.dev/docs/text.html#testid + * See https://reactnative.dev/docs/text#testid */ testID: PropTypes.string, /** * Used to locate this view from native code. * - * See https://reactnative.dev/docs/text.html#nativeid + * See https://reactnative.dev/docs/text#nativeid */ nativeID: PropTypes.string, /** * Whether fonts should scale to respect Text Size accessibility settings. * - * See https://reactnative.dev/docs/text.html#allowfontscaling + * See https://reactnative.dev/docs/text#allowfontscaling */ allowFontScaling: PropTypes.bool, /** @@ -124,31 +124,31 @@ module.exports = { /** * Indicates whether the view is an accessibility element. * - * See https://reactnative.dev/docs/text.html#accessible + * See https://reactnative.dev/docs/text#accessible */ accessible: PropTypes.bool, /** * Whether font should be scaled down automatically. * - * See https://reactnative.dev/docs/text.html#adjustsfontsizetofit + * See https://reactnative.dev/docs/text#adjustsfontsizetofit */ adjustsFontSizeToFit: PropTypes.bool, /** * Smallest possible scale a font can reach. * - * See https://reactnative.dev/docs/text.html#minimumfontscale + * See https://reactnative.dev/docs/text#minimumfontscale */ minimumFontScale: PropTypes.number, /** * Specifies the disabled state of the text view for testing purposes. * - * See https://reactnative.dev/docs/text.html#disabled + * See https://reactnative.dev/docs/text#disabled */ disabled: PropTypes.bool, /** * Determines the types of data converted to clickable URLs in text. * - * See https://reactnative.dev/docs/text.html#dataDetectorType + * See https://reactnative.dev/docs/text#dataDetectorType */ dataDetectorType: (PropTypes.oneOf( DataDetectorTypes, diff --git a/Libraries/DeprecatedPropTypes/DeprecatedViewPropTypes.js b/Libraries/DeprecatedPropTypes/DeprecatedViewPropTypes.js index c008361311a7..1db73fa4b5df 100644 --- a/Libraries/DeprecatedPropTypes/DeprecatedViewPropTypes.js +++ b/Libraries/DeprecatedPropTypes/DeprecatedViewPropTypes.js @@ -26,7 +26,7 @@ module.exports = { * When `true`, indicates that the view is an accessibility element. * By default, all the touchable elements are accessible. * - * See https://reactnative.dev/docs/view.html#accessible + * See https://reactnative.dev/docs/view#accessible */ accessible: PropTypes.bool, @@ -35,7 +35,7 @@ module.exports = { * with the element. By default, the label is constructed by traversing all * the children and accumulating all the `Text` nodes separated by space. * - * See https://reactnative.dev/docs/view.html#accessibilitylabel + * See https://reactnative.dev/docs/view#accessibilitylabel */ accessibilityLabel: PropTypes.node, @@ -45,7 +45,7 @@ module.exports = { * accessibility label. * * - * See https://reactnative.dev/docs/view.html#accessibilityHint + * See https://reactnative.dev/docs/view#accessibilityHint */ accessibilityHint: PropTypes.string, @@ -108,7 +108,7 @@ module.exports = { * * @platform android * - * See https://reactnative.dev/docs/view.html#accessibilityliveregion + * See https://reactnative.dev/docs/view#accessibilityliveregion */ accessibilityLiveRegion: (PropTypes.oneOf([ 'none', @@ -123,7 +123,7 @@ module.exports = { * * @platform android * - * See https://reactnative.dev/docs/view.html#importantforaccessibility + * See https://reactnative.dev/docs/view#importantforaccessibility */ importantForAccessibility: (PropTypes.oneOf([ 'auto', @@ -139,7 +139,7 @@ module.exports = { * * @platform ios * - * See https://reactnative.dev/docs/view.html#accessibilityviewismodal + * See https://reactnative.dev/docs/view#accessibilityviewismodal */ accessibilityViewIsModal: PropTypes.bool, @@ -149,7 +149,7 @@ module.exports = { * * @platform ios * - * See https://reactnative.dev/docs/view.html#accessibilityElementsHidden + * See https://reactnative.dev/docs/view#accessibilityElementsHidden */ accessibilityElementsHidden: PropTypes.bool, @@ -165,7 +165,7 @@ module.exports = { * When `accessible` is true, the system will try to invoke this function * when the user performs accessibility tap gesture. * - * See https://reactnative.dev/docs/view.html#onaccessibilitytap + * See https://reactnative.dev/docs/view#onaccessibilitytap */ onAccessibilityTap: PropTypes.func, @@ -173,7 +173,7 @@ module.exports = { * When `accessible` is `true`, the system will invoke this function when the * user performs the magic tap gesture. * - * See https://reactnative.dev/docs/view.html#onmagictap + * See https://reactnative.dev/docs/view#onmagictap */ onMagicTap: PropTypes.func, @@ -182,7 +182,7 @@ module.exports = { * * > This disables the 'layout-only view removal' optimization for this view! * - * See https://reactnative.dev/docs/view.html#testid + * See https://reactnative.dev/docs/view#testid */ testID: PropTypes.string, @@ -191,7 +191,7 @@ module.exports = { * * > This disables the 'layout-only view removal' optimization for this view! * - * See https://reactnative.dev/docs/view.html#nativeid + * See https://reactnative.dev/docs/view#nativeid */ nativeID: PropTypes.string, @@ -208,7 +208,7 @@ module.exports = { * `View.props.onResponderGrant: (event) => {}`, where `event` is a synthetic * touch event as described above. * - * See https://reactnative.dev/docs/view.html#onrespondergrant + * See https://reactnative.dev/docs/view#onrespondergrant */ onResponderGrant: PropTypes.func, @@ -218,7 +218,7 @@ module.exports = { * `View.props.onResponderMove: (event) => {}`, where `event` is a synthetic * touch event as described above. * - * See https://reactnative.dev/docs/view.html#onrespondermove + * See https://reactnative.dev/docs/view#onrespondermove */ onResponderMove: PropTypes.func, @@ -229,7 +229,7 @@ module.exports = { * `View.props.onResponderReject: (event) => {}`, where `event` is a * synthetic touch event as described above. * - * See https://reactnative.dev/docs/view.html#onresponderreject + * See https://reactnative.dev/docs/view#onresponderreject */ onResponderReject: PropTypes.func, @@ -239,7 +239,7 @@ module.exports = { * `View.props.onResponderRelease: (event) => {}`, where `event` is a * synthetic touch event as described above. * - * See https://reactnative.dev/docs/view.html#onresponderrelease + * See https://reactnative.dev/docs/view#onresponderrelease */ onResponderRelease: PropTypes.func, @@ -252,7 +252,7 @@ module.exports = { * `View.props.onResponderTerminate: (event) => {}`, where `event` is a * synthetic touch event as described above. * - * See https://reactnative.dev/docs/view.html#onresponderterminate + * See https://reactnative.dev/docs/view#onresponderterminate */ onResponderTerminate: PropTypes.func, @@ -263,7 +263,7 @@ module.exports = { * `View.props.onResponderTerminationRequest: (event) => {}`, where `event` * is a synthetic touch event as described above. * - * See https://reactnative.dev/docs/view.html#onresponderterminationrequest + * See https://reactnative.dev/docs/view#onresponderterminationrequest */ onResponderTerminationRequest: PropTypes.func, @@ -273,7 +273,7 @@ module.exports = { * `View.props.onStartShouldSetResponder: (event) => [true | false]`, where * `event` is a synthetic touch event as described above. * - * See https://reactnative.dev/docs/view.html#onstartshouldsetresponder + * See https://reactnative.dev/docs/view#onstartshouldsetresponder */ onStartShouldSetResponder: PropTypes.func, @@ -284,7 +284,7 @@ module.exports = { * `View.props.onStartShouldSetResponderCapture: (event) => [true | false]`, * where `event` is a synthetic touch event as described above. * - * See https://reactnative.dev/docs/view.html#onstartshouldsetrespondercapture + * See https://reactnative.dev/docs/view#onstartshouldsetrespondercapture */ onStartShouldSetResponderCapture: PropTypes.func, @@ -295,7 +295,7 @@ module.exports = { * `View.props.onMoveShouldSetResponder: (event) => [true | false]`, where * `event` is a synthetic touch event as described above. * - * See https://reactnative.dev/docs/view.html#onmoveshouldsetresponder + * See https://reactnative.dev/docs/view#onmoveshouldsetresponder */ onMoveShouldSetResponder: PropTypes.func, @@ -306,7 +306,7 @@ module.exports = { * `View.props.onMoveShouldSetResponderCapture: (event) => [true | false]`, * where `event` is a synthetic touch event as described above. * - * See https://reactnative.dev/docs/view.html#onMoveShouldsetrespondercapture + * See https://reactnative.dev/docs/view#onMoveShouldsetrespondercapture */ onMoveShouldSetResponderCapture: PropTypes.func, @@ -319,7 +319,7 @@ module.exports = { * > of sibling views always takes precedence if a touch hits two overlapping * > views. * - * See https://reactnative.dev/docs/view.html#hitslop + * See https://reactnative.dev/docs/view#hitslop */ hitSlop: DeprecatedEdgeInsetsPropType, @@ -332,14 +332,14 @@ module.exports = { * the new layout may not yet be reflected on the screen at the time the * event is received, especially if a layout animation is in progress. * - * See https://reactnative.dev/docs/view.html#onlayout + * See https://reactnative.dev/docs/view#onlayout */ onLayout: PropTypes.func, /** * Controls whether the `View` can be the target of touch events. * - * See https://reactnative.dev/docs/view.html#pointerevents + * See https://reactnative.dev/docs/view#pointerevents */ pointerEvents: (PropTypes.oneOf([ 'box-none', @@ -349,7 +349,7 @@ module.exports = { ]): React$PropType$Primitive<'box-none' | 'none' | 'box-only' | 'auto'>), /** - * See https://reactnative.dev/docs/style.html + * See https://reactnative.dev/docs/style */ style: stylePropType, @@ -361,7 +361,7 @@ module.exports = { * subviews must also have `overflow: hidden`, as should the containing view * (or one of its superviews). * - * See https://reactnative.dev/docs/view.html#removeclippedsubviews + * See https://reactnative.dev/docs/view#removeclippedsubviews */ removeClippedSubviews: PropTypes.bool, @@ -371,7 +371,7 @@ module.exports = { * * @platform android * - * See https://reactnative.dev/docs/view.html#rendertohardwaretextureandroid + * See https://reactnative.dev/docs/view#rendertohardwaretextureandroid */ renderToHardwareTextureAndroid: PropTypes.bool, @@ -380,7 +380,7 @@ module.exports = { * * @platform ios * - * See https://reactnative.dev/docs/view.html#shouldrasterizeios + * See https://reactnative.dev/docs/view#shouldrasterizeios */ shouldRasterizeIOS: PropTypes.bool, @@ -392,7 +392,7 @@ module.exports = { * * @platform android * - * See https://reactnative.dev/docs/view.html#collapsable + * See https://reactnative.dev/docs/view#collapsable */ collapsable: PropTypes.bool, @@ -402,7 +402,7 @@ module.exports = { * * @platform android * - * See https://reactnative.dev/docs/view.html#needsoffscreenalphacompositing + * See https://reactnative.dev/docs/view#needsoffscreenalphacompositing */ needsOffscreenAlphaCompositing: PropTypes.bool, }; diff --git a/Libraries/Image/Image.android.js b/Libraries/Image/Image.android.js index 24b0f55b3782..d8c8101cc744 100644 --- a/Libraries/Image/Image.android.js +++ b/Libraries/Image/Image.android.js @@ -32,7 +32,7 @@ function generateRequestId() { /** * Retrieve the width and height (in pixels) of an image prior to displaying it * - * See https://reactnative.dev/docs/image.html#getsize + * See https://reactnative.dev/docs/image#getsize */ function getSize( url: string, @@ -55,7 +55,7 @@ function getSize( * Retrieve the width and height (in pixels) of an image prior to displaying it * with the ability to provide the headers for the request * - * See https://reactnative.dev/docs/image.html#getsizewithheaders + * See https://reactnative.dev/docs/image#getsizewithheaders */ function getSizeWithHeaders( url: string, @@ -98,7 +98,7 @@ function abortPrefetch(requestId: number) { /** * Perform cache interrogation. * - * See https://reactnative.dev/docs/image.html#querycache + * See https://reactnative.dev/docs/image#querycache */ async function queryCache( urls: Array, @@ -121,7 +121,7 @@ type ImageComponentStatics = $ReadOnly<{| * including network images, static resources, temporary local images, and * images from local disk, such as the camera roll. * - * See https://reactnative.dev/docs/image.html + * See https://reactnative.dev/docs/image */ let Image = (props: ImagePropsType, forwardedRef) => { let source = resolveAssetSource(props.source); @@ -227,7 +227,7 @@ Image.displayName = 'Image'; /** * Retrieve the width and height (in pixels) of an image prior to displaying it * - * See https://reactnative.dev/docs/image.html#getsize + * See https://reactnative.dev/docs/image#getsize */ /* $FlowFixMe(>=0.89.0 site=react_native_android_fb) This comment suppresses an * error found when Flow v0.89 was deployed. To see the error, delete this @@ -238,7 +238,7 @@ Image.getSize = getSize; * Retrieve the width and height (in pixels) of an image prior to displaying it * with the ability to provide the headers for the request * - * See https://reactnative.dev/docs/image.html#getsizewithheaders + * See https://reactnative.dev/docs/image#getsizewithheaders */ /* $FlowFixMe(>=0.89.0 site=react_native_android_fb) This comment suppresses an * error found when Flow v0.89 was deployed. To see the error, delete this @@ -249,7 +249,7 @@ Image.getSizeWithHeaders = getSizeWithHeaders; * Prefetches a remote image for later use by downloading it to the disk * cache * - * See https://reactnative.dev/docs/image.html#prefetch + * See https://reactnative.dev/docs/image#prefetch */ /* $FlowFixMe(>=0.89.0 site=react_native_android_fb) This comment suppresses an * error found when Flow v0.89 was deployed. To see the error, delete this @@ -260,7 +260,7 @@ Image.prefetch = prefetch; * Prefetches a remote image for later use by downloading it to the disk * cache, and adds metadata for queryRootName and rootTag. * - * See https://reactnative.dev/docs/image.html#prefetch + * See https://reactnative.dev/docs/image#prefetch */ /* $FlowFixMe(>=0.89.0 site=react_native_android_fb) This comment suppresses an * error found when Flow v0.89 was deployed. To see the error, delete this @@ -270,7 +270,7 @@ Image.prefetchWithMetadata = prefetchWithMetadata; /** * Abort prefetch request. * - * See https://reactnative.dev/docs/image.html#abortprefetch + * See https://reactnative.dev/docs/image#abortprefetch */ /* $FlowFixMe(>=0.89.0 site=react_native_android_fb) This comment suppresses an * error found when Flow v0.89 was deployed. To see the error, delete this @@ -280,7 +280,7 @@ Image.abortPrefetch = abortPrefetch; /** * Perform cache interrogation. * - * See https://reactnative.dev/docs/image.html#querycache + * See https://reactnative.dev/docs/image#querycache */ /* $FlowFixMe(>=0.89.0 site=react_native_android_fb) This comment suppresses an * error found when Flow v0.89 was deployed. To see the error, delete this @@ -290,7 +290,7 @@ Image.queryCache = queryCache; /** * Resolves an asset reference into an object. * - * See https://reactnative.dev/docs/image.html#resolveassetsource + * See https://reactnative.dev/docs/image#resolveassetsource */ /* $FlowFixMe(>=0.89.0 site=react_native_android_fb) This comment suppresses an * error found when Flow v0.89 was deployed. To see the error, delete this diff --git a/Libraries/Image/Image.ios.js b/Libraries/Image/Image.ios.js index 953d01716d51..d1ecf7d070b3 100644 --- a/Libraries/Image/Image.ios.js +++ b/Libraries/Image/Image.ios.js @@ -100,7 +100,7 @@ type ImageComponentStatics = $ReadOnly<{| * including network images, static resources, temporary local images, and * images from local disk, such as the camera roll. * - * See https://reactnative.dev/docs/image.html + * See https://reactnative.dev/docs/image */ let Image = (props: ImagePropsType, forwardedRef) => { const source = resolveAssetSource(props.source) || { @@ -172,7 +172,7 @@ Image.displayName = 'Image'; /** * Retrieve the width and height (in pixels) of an image prior to displaying it. * - * See https://reactnative.dev/docs/image.html#getsize + * See https://reactnative.dev/docs/image#getsize */ /* $FlowFixMe[prop-missing] (>=0.89.0 site=react_native_ios_fb) This comment * suppresses an error found when Flow v0.89 was deployed. To see the error, @@ -183,7 +183,7 @@ Image.getSize = getSize; * Retrieve the width and height (in pixels) of an image prior to displaying it * with the ability to provide the headers for the request. * - * See https://reactnative.dev/docs/image.html#getsizewithheaders + * See https://reactnative.dev/docs/image#getsizewithheaders */ /* $FlowFixMe[prop-missing] (>=0.89.0 site=react_native_ios_fb) This comment * suppresses an error found when Flow v0.89 was deployed. To see the error, @@ -194,7 +194,7 @@ Image.getSizeWithHeaders = getSizeWithHeaders; * Prefetches a remote image for later use by downloading it to the disk * cache. * - * See https://reactnative.dev/docs/image.html#prefetch + * See https://reactnative.dev/docs/image#prefetch */ /* $FlowFixMe[prop-missing] (>=0.89.0 site=react_native_ios_fb) This comment * suppresses an error found when Flow v0.89 was deployed. To see the error, @@ -205,7 +205,7 @@ Image.prefetch = prefetch; * Prefetches a remote image for later use by downloading it to the disk * cache, and adds metadata for queryRootName and rootTag. * - * See https://reactnative.dev/docs/image.html#prefetch + * See https://reactnative.dev/docs/image#prefetch */ /* $FlowFixMe[prop-missing] (>=0.89.0 site=react_native_ios_fb) This comment * suppresses an error found when Flow v0.89 was deployed. To see the error, @@ -215,7 +215,7 @@ Image.prefetchWithMetadata = prefetchWithMetadata; /** * Performs cache interrogation. * - * See https://reactnative.dev/docs/image.html#querycache + * See https://reactnative.dev/docs/image#querycache */ /* $FlowFixMe[prop-missing] (>=0.89.0 site=react_native_ios_fb) This comment * suppresses an error found when Flow v0.89 was deployed. To see the error, @@ -225,7 +225,7 @@ Image.queryCache = queryCache; /** * Resolves an asset reference into an object. * - * See https://reactnative.dev/docs/image.html#resolveassetsource + * See https://reactnative.dev/docs/image#resolveassetsource */ /* $FlowFixMe[prop-missing] (>=0.89.0 site=react_native_ios_fb) This comment * suppresses an error found when Flow v0.89 was deployed. To see the error, diff --git a/Libraries/Image/ImageProps.js b/Libraries/Image/ImageProps.js index ed3349c2b247..d8948a30a9e9 100644 --- a/Libraries/Image/ImageProps.js +++ b/Libraries/Image/ImageProps.js @@ -32,19 +32,19 @@ type IOSImageProps = $ReadOnly<{| /** * A static image to display while loading the image source. * - * See https://reactnative.dev/docs/image.html#defaultsource + * See https://reactnative.dev/docs/image#defaultsource */ defaultSource?: ?ImageSource, /** * Invoked when a partial load of the image is complete. * - * See https://reactnative.dev/docs/image.html#onpartialload + * See https://reactnative.dev/docs/image#onpartialload */ onPartialLoad?: ?() => void, /** * Invoked on download progress with `{nativeEvent: {loaded, total}}`. * - * See https://reactnative.dev/docs/image.html#onprogress + * See https://reactnative.dev/docs/image#onprogress */ onProgress?: ?( event: SyntheticEvent<$ReadOnly<{|loaded: number, total: number|}>>, @@ -65,7 +65,7 @@ export type ImageProps = {| /** * When true, indicates the image is an accessibility element. * - * See https://reactnative.dev/docs/image.html#accessible + * See https://reactnative.dev/docs/image#accessible */ accessible?: ?boolean, @@ -78,26 +78,26 @@ export type ImageProps = {| * The text that's read by the screen reader when the user interacts with * the image. * - * See https://reactnative.dev/docs/image.html#accessibilitylabel + * See https://reactnative.dev/docs/image#accessibilitylabel */ accessibilityLabel?: ?Stringish, /** * blurRadius: the blur radius of the blur filter added to the image * - * See https://reactnative.dev/docs/image.html#blurradius + * See https://reactnative.dev/docs/image#blurradius */ blurRadius?: ?number, /** - * See https://reactnative.dev/docs/image.html#capinsets + * See https://reactnative.dev/docs/image#capinsets */ capInsets?: ?EdgeInsetsProp, /** * Invoked on load error with `{nativeEvent: {error}}`. * - * See https://reactnative.dev/docs/image.html#onerror + * See https://reactnative.dev/docs/image#onerror */ onError?: ?( event: SyntheticEvent< @@ -111,7 +111,7 @@ export type ImageProps = {| * Invoked on mount and layout changes with * `{nativeEvent: {layout: {x, y, width, height}}}`. * - * See https://reactnative.dev/docs/image.html#onlayout + * See https://reactnative.dev/docs/image#onlayout */ onLayout?: ?(event: LayoutEvent) => mixed, @@ -119,38 +119,38 @@ export type ImageProps = {| /** * Invoked when load completes successfully. * - * See https://reactnative.dev/docs/image.html#onload + * See https://reactnative.dev/docs/image#onload */ onLoad?: ?(event: ImageLoadEvent) => void, /** * Invoked when load either succeeds or fails. * - * See https://reactnative.dev/docs/image.html#onloadend + * See https://reactnative.dev/docs/image#onloadend */ onLoadEnd?: ?() => void, /** * Invoked on load start. * - * See https://reactnative.dev/docs/image.html#onloadstart + * See https://reactnative.dev/docs/image#onloadstart */ onLoadStart?: ?() => void, /** - * See https://reactnative.dev/docs/image.html#resizemethod + * See https://reactnative.dev/docs/image#resizemethod */ resizeMethod?: ?('auto' | 'resize' | 'scale'), /** * The image source (either a remote URL or a local file resource). * - * See https://reactnative.dev/docs/image.html#source + * See https://reactnative.dev/docs/image#source */ source?: ?ImageSource, /** - * See https://reactnative.dev/docs/image.html#style + * See https://reactnative.dev/docs/image#style */ style?: ?ImageStyleProp, @@ -158,7 +158,7 @@ export type ImageProps = {| * Determines how to resize the image when the frame doesn't match the raw * image dimensions. * - * See https://reactnative.dev/docs/image.html#resizemode + * See https://reactnative.dev/docs/image#resizemode */ resizeMode?: ?('cover' | 'contain' | 'stretch' | 'repeat' | 'center'), @@ -166,7 +166,7 @@ export type ImageProps = {| * A unique identifier for this element to be used in UI Automation * testing scripts. * - * See https://reactnative.dev/docs/image.html#testid + * See https://reactnative.dev/docs/image#testid */ testID?: ?string, diff --git a/Libraries/Image/nativeImageSource.js b/Libraries/Image/nativeImageSource.js index 65a3169c50c9..3ce54fd22788 100644 --- a/Libraries/Image/nativeImageSource.js +++ b/Libraries/Image/nativeImageSource.js @@ -18,7 +18,7 @@ type NativeImageSourceSpec = $ReadOnly<{| default?: string, // For more details on width and height, see - // https://reactnative.dev/docs/images.html#why-not-automatically-size-everything + // https://reactnative.dev/docs/images#why-not-automatically-size-everything height: number, width: number, |}>; @@ -36,7 +36,7 @@ type NativeImageSourceSpec = $ReadOnly<{| * automates measurements and allows adding new images without rebuilding the * native app. For more details visit: * - * https://reactnative.dev/docs/images.html + * https://reactnative.dev/docs/images * */ function nativeImageSource(spec: NativeImageSourceSpec): ImageURISource { diff --git a/Libraries/Linking/Linking.js b/Libraries/Linking/Linking.js index e69e07a4c53b..b7792d91a4f2 100644 --- a/Libraries/Linking/Linking.js +++ b/Libraries/Linking/Linking.js @@ -25,7 +25,7 @@ type LinkingEventDefinitions = { * `Linking` gives you a general interface to interact with both incoming * and outgoing app links. * - * See https://reactnative.dev/docs/linking.html + * See https://reactnative.dev/docs/linking */ class Linking extends NativeEventEmitter { constructor() { @@ -36,7 +36,7 @@ class Linking extends NativeEventEmitter { * Add a handler to Linking changes by listening to the `url` event type * and providing the handler * - * See https://reactnative.dev/docs/linking.html#addeventlistener + * See https://reactnative.dev/docs/linking#addeventlistener */ addEventListener>( eventType: K, @@ -60,7 +60,7 @@ class Linking extends NativeEventEmitter { /** * Try to open the given `url` with any of the installed apps. * - * See https://reactnative.dev/docs/linking.html#openurl + * See https://reactnative.dev/docs/linking#openurl */ openURL(url: string): Promise { this._validateURL(url); @@ -74,7 +74,7 @@ class Linking extends NativeEventEmitter { /** * Determine whether or not an installed app can handle a given URL. * - * See https://reactnative.dev/docs/linking.html#canopenurl + * See https://reactnative.dev/docs/linking#canopenurl */ canOpenURL(url: string): Promise { this._validateURL(url); @@ -88,7 +88,7 @@ class Linking extends NativeEventEmitter { /** * Open app settings. * - * See https://reactnative.dev/docs/linking.html#opensettings + * See https://reactnative.dev/docs/linking#opensettings */ openSettings(): Promise { if (Platform.OS === 'android') { @@ -102,7 +102,7 @@ class Linking extends NativeEventEmitter { * If the app launch was triggered by an app link, * it will give the link url, otherwise it will give `null` * - * See https://reactnative.dev/docs/linking.html#getinitialurl + * See https://reactnative.dev/docs/linking#getinitialurl */ getInitialURL(): Promise { return Platform.OS === 'android' @@ -117,7 +117,7 @@ class Linking extends NativeEventEmitter { * * @platform android * - * See https://reactnative.dev/docs/linking.html#sendintent + * See https://reactnative.dev/docs/linking#sendintent */ sendIntent( action: string, diff --git a/Libraries/Lists/SectionList.js b/Libraries/Lists/SectionList.js index 723c7051a0a5..f3ffac78b90a 100644 --- a/Libraries/Lists/SectionList.js +++ b/Libraries/Lists/SectionList.js @@ -27,7 +27,7 @@ export type SectionBase = _SectionBase; type RequiredProps> = {| /** - * The actual data to render, akin to the `data` prop in [``](https://reactnative.dev/docs/flatlist.html). + * The actual data to render, akin to the `data` prop in [``](https://reactnative.dev/docs/flatlist). * * General shape: * @@ -131,7 +131,7 @@ export type Props = {| * - Scroll loading. * * If you don't need section support and want a simpler interface, use - * [``](https://reactnative.dev/docs/flatlist.html). + * [``](https://reactnative.dev/docs/flatlist). * * Simple Examples: * @@ -153,7 +153,7 @@ export type Props = {| * ]} * /> * - * This is a convenience wrapper around [``](docs/virtualizedlist.html), + * This is a convenience wrapper around [``](docs/virtualizedlist), * and thus inherits its props (as well as those of `ScrollView`) that aren't explicitly listed * here, along with the following caveats: * diff --git a/Libraries/Lists/SectionListModern.js b/Libraries/Lists/SectionListModern.js index e0eca61209b0..a4c606f71e2a 100644 --- a/Libraries/Lists/SectionListModern.js +++ b/Libraries/Lists/SectionListModern.js @@ -28,7 +28,7 @@ export type SectionBase = _SectionBase; type RequiredProps> = {| /** - * The actual data to render, akin to the `data` prop in [``](https://reactnative.dev/docs/flatlist.html). + * The actual data to render, akin to the `data` prop in [``](https://reactnative.dev/docs/flatlist). * * General shape: * @@ -132,7 +132,7 @@ export type Props = {| * - Scroll loading. * * If you don't need section support and want a simpler interface, use - * [``](https://reactnative.dev/docs/flatlist.html). + * [``](https://reactnative.dev/docs/flatlist). * * Simple Examples: * @@ -154,7 +154,7 @@ export type Props = {| * ]} * /> * - * This is a convenience wrapper around [``](docs/virtualizedlist.html), + * This is a convenience wrapper around [``](docs/virtualizedlist), * and thus inherits its props (as well as those of `ScrollView`) that aren't explicitly listed * here, along with the following caveats: * diff --git a/Libraries/Lists/VirtualizedList.js b/Libraries/Lists/VirtualizedList.js index c411032c269c..f3c215f2d7e3 100644 --- a/Libraries/Lists/VirtualizedList.js +++ b/Libraries/Lists/VirtualizedList.js @@ -349,8 +349,8 @@ function windowSizeOrDefault(windowSize: ?number) { } /** - * Base implementation for the more convenient [``](https://reactnative.dev/docs/flatlist.html) - * and [``](https://reactnative.dev/docs/sectionlist.html) components, which are also better + * Base implementation for the more convenient [``](https://reactnative.dev/docs/flatlist) + * and [``](https://reactnative.dev/docs/sectionlist) components, which are also better * documented. In general, this should only really be used if you need more flexibility than * `FlatList` provides, e.g. for use with immutable data instead of plain arrays. * diff --git a/Libraries/Modal/Modal.js b/Libraries/Modal/Modal.js index 4b8275bec79a..8e58a5517f87 100644 --- a/Libraries/Modal/Modal.js +++ b/Libraries/Modal/Modal.js @@ -44,7 +44,7 @@ const ModalEventEmitter = /** * The Modal component is a simple way to present content above an enclosing view. * - * See https://reactnative.dev/docs/modal.html + * See https://reactnative.dev/docs/modal */ // In order to route onDismiss callbacks, we need to uniquely identifier each @@ -63,14 +63,14 @@ export type Props = $ReadOnly<{| /** * The `animationType` prop controls how the modal animates. * - * See https://reactnative.dev/docs/modal.html#animationtype + * See https://reactnative.dev/docs/modal#animationtype */ animationType?: ?('none' | 'slide' | 'fade'), /** * The `presentationStyle` prop controls how the modal appears. * - * See https://reactnative.dev/docs/modal.html#presentationstyle + * See https://reactnative.dev/docs/modal#presentationstyle */ presentationStyle?: ?( | 'fullScreen' @@ -83,7 +83,7 @@ export type Props = $ReadOnly<{| * The `transparent` prop determines whether your modal will fill the * entire view. * - * See https://reactnative.dev/docs/modal.html#transparent + * See https://reactnative.dev/docs/modal#transparent */ transparent?: ?boolean, @@ -91,7 +91,7 @@ export type Props = $ReadOnly<{| * The `statusBarTranslucent` prop determines whether your modal should go under * the system statusbar. * - * See https://reactnative.dev/docs/modal.html#transparent + * See https://reactnative.dev/docs/modal#transparent */ statusBarTranslucent?: ?boolean, @@ -101,14 +101,14 @@ export type Props = $ReadOnly<{| * * This prop works only on Android. * - * See https://reactnative.dev/docs/modal.html#hardwareaccelerated + * See https://reactnative.dev/docs/modal#hardwareaccelerated */ hardwareAccelerated?: ?boolean, /** * The `visible` prop determines whether your modal is visible. * - * See https://reactnative.dev/docs/modal.html#visible + * See https://reactnative.dev/docs/modal#visible */ visible?: ?boolean, @@ -118,7 +118,7 @@ export type Props = $ReadOnly<{| * * This is required on Apple TV and Android. * - * See https://reactnative.dev/docs/modal.html#onrequestclose + * See https://reactnative.dev/docs/modal#onrequestclose */ onRequestClose?: ?DirectEventHandler, @@ -126,7 +126,7 @@ export type Props = $ReadOnly<{| * The `onShow` prop allows passing a function that will be called once the * modal has been shown. * - * See https://reactnative.dev/docs/modal.html#onshow + * See https://reactnative.dev/docs/modal#onshow */ onShow?: ?DirectEventHandler, @@ -134,14 +134,14 @@ export type Props = $ReadOnly<{| * The `onDismiss` prop allows passing a function that will be called once * the modal has been dismissed. * - * See https://reactnative.dev/docs/modal.html#ondismiss + * See https://reactnative.dev/docs/modal#ondismiss */ onDismiss?: ?() => mixed, /** * The `supportedOrientations` prop allows the modal to be rotated to any of the specified orientations. * - * See https://reactnative.dev/docs/modal.html#supportedorientations + * See https://reactnative.dev/docs/modal#supportedorientations */ supportedOrientations?: ?$ReadOnlyArray< | 'portrait' @@ -154,7 +154,7 @@ export type Props = $ReadOnly<{| /** * The `onOrientationChange` callback is called when the orientation changes while the modal is being displayed. * - * See https://reactnative.dev/docs/modal.html#onorientationchange + * See https://reactnative.dev/docs/modal#onorientationchange */ onOrientationChange?: ?DirectEventHandler, |}>; diff --git a/Libraries/Modal/RCTModalHostViewNativeComponent.js b/Libraries/Modal/RCTModalHostViewNativeComponent.js index 85f9916ef38a..6729191b149a 100644 --- a/Libraries/Modal/RCTModalHostViewNativeComponent.js +++ b/Libraries/Modal/RCTModalHostViewNativeComponent.js @@ -28,14 +28,14 @@ type NativeProps = $ReadOnly<{| /** * The `animationType` prop controls how the modal animates. * - * See https://reactnative.dev/docs/modal.html#animationtype + * See https://reactnative.dev/docs/modal#animationtype */ animationType?: WithDefault<'none' | 'slide' | 'fade', 'none'>, /** * The `presentationStyle` prop controls how the modal appears. * - * See https://reactnative.dev/docs/modal.html#presentationstyle + * See https://reactnative.dev/docs/modal#presentationstyle */ presentationStyle?: WithDefault< 'fullScreen' | 'pageSheet' | 'formSheet' | 'overFullScreen', @@ -46,7 +46,7 @@ type NativeProps = $ReadOnly<{| * The `transparent` prop determines whether your modal will fill the * entire view. * - * See https://reactnative.dev/docs/modal.html#transparent + * See https://reactnative.dev/docs/modal#transparent */ transparent?: WithDefault, @@ -54,7 +54,7 @@ type NativeProps = $ReadOnly<{| * The `statusBarTranslucent` prop determines whether your modal should go under * the system statusbar. * - * See https://reactnative.dev/docs/modal.html#statusBarTranslucent + * See https://reactnative.dev/docs/modal#statusBarTranslucent */ statusBarTranslucent?: WithDefault, @@ -62,7 +62,7 @@ type NativeProps = $ReadOnly<{| * The `hardwareAccelerated` prop controls whether to force hardware * acceleration for the underlying window. * - * See https://reactnative.dev/docs/modal.html#hardwareaccelerated + * See https://reactnative.dev/docs/modal#hardwareaccelerated */ hardwareAccelerated?: WithDefault, @@ -72,7 +72,7 @@ type NativeProps = $ReadOnly<{| * * This is required on Apple TV and Android. * - * See https://reactnative.dev/docs/modal.html#onrequestclose + * See https://reactnative.dev/docs/modal#onrequestclose */ onRequestClose?: ?DirectEventHandler, @@ -80,7 +80,7 @@ type NativeProps = $ReadOnly<{| * The `onShow` prop allows passing a function that will be called once the * modal has been shown. * - * See https://reactnative.dev/docs/modal.html#onshow + * See https://reactnative.dev/docs/modal#onshow */ onShow?: ?DirectEventHandler, @@ -88,14 +88,14 @@ type NativeProps = $ReadOnly<{| * The `onDismiss` prop allows passing a function that will be called once * the modal has been dismissed. * - * See https://reactnative.dev/docs/modal.html#ondismiss + * See https://reactnative.dev/docs/modal#ondismiss */ onDismiss?: ?DirectEventHandler, /** * The `visible` prop determines whether your modal is visible. * - * See https://reactnative.dev/docs/modal.html#visible + * See https://reactnative.dev/docs/modal#visible */ visible?: WithDefault, @@ -107,7 +107,7 @@ type NativeProps = $ReadOnly<{| /** * The `supportedOrientations` prop allows the modal to be rotated to any of the specified orientations. * - * See https://reactnative.dev/docs/modal.html#supportedorientations + * See https://reactnative.dev/docs/modal#supportedorientations */ supportedOrientations?: WithDefault< $ReadOnlyArray< @@ -123,7 +123,7 @@ type NativeProps = $ReadOnly<{| /** * The `onOrientationChange` callback is called when the orientation changes while the modal is being displayed. * - * See https://reactnative.dev/docs/modal.html#onorientationchange + * See https://reactnative.dev/docs/modal#onorientationchange */ onOrientationChange?: ?DirectEventHandler, diff --git a/Libraries/PermissionsAndroid/PermissionsAndroid.js b/Libraries/PermissionsAndroid/PermissionsAndroid.js index 5d9ff0d7af9e..673a98d648eb 100644 --- a/Libraries/PermissionsAndroid/PermissionsAndroid.js +++ b/Libraries/PermissionsAndroid/PermissionsAndroid.js @@ -73,7 +73,7 @@ const PERMISSIONS = Object.freeze({ /** * `PermissionsAndroid` provides access to Android M's new permissions model. * - * See https://reactnative.dev/docs/permissionsandroid.html + * See https://reactnative.dev/docs/permissionsandroid */ class PermissionsAndroid { @@ -150,7 +150,7 @@ class PermissionsAndroid { * Returns a promise resolving to a boolean value as to whether the specified * permissions has been granted * - * See https://reactnative.dev/docs/permissionsandroid.html#check + * See https://reactnative.dev/docs/permissionsandroid#check */ check(permission: PermissionType): Promise { if (Platform.OS !== 'android') { @@ -177,7 +177,7 @@ class PermissionsAndroid { * If the optional rationale argument is included (which is an object with a * `title` and `message`), this function checks with the OS whether it is * necessary to show a dialog explaining why the permission is needed - * (https://developer.android.com/training/permissions/requesting.html#explain) + * (https://developer.android.com/training/permissions/requesting#explain) * and then shows the system permission dialog * * @deprecated @@ -204,7 +204,7 @@ class PermissionsAndroid { * Prompts the user to enable a permission and returns a promise resolving to a * string value indicating whether the user allowed or denied the request * - * See https://reactnative.dev/docs/permissionsandroid.html#request + * See https://reactnative.dev/docs/permissionsandroid#request */ async request( permission: PermissionType, @@ -254,7 +254,7 @@ class PermissionsAndroid { * returns an object with the permissions as keys and strings as values * indicating whether the user allowed or denied the request * - * See https://reactnative.dev/docs/permissionsandroid.html#requestmultiple + * See https://reactnative.dev/docs/permissionsandroid#requestmultiple */ requestMultiple( permissions: Array, diff --git a/Libraries/PushNotificationIOS/PushNotificationIOS.js b/Libraries/PushNotificationIOS/PushNotificationIOS.js index d1d78cc860c9..f1299ab9c52d 100644 --- a/Libraries/PushNotificationIOS/PushNotificationIOS.js +++ b/Libraries/PushNotificationIOS/PushNotificationIOS.js @@ -93,7 +93,7 @@ export type PushNotificationEventName = $Keys<{ * Handle push notifications for your app, including permission handling and * icon badge number. * - * See https://reactnative.dev/docs/pushnotificationios.html + * See https://reactnative.dev/docs/pushnotificationios */ class PushNotificationIOS { _data: Object; @@ -116,7 +116,7 @@ class PushNotificationIOS { /** * Schedules the localNotification for immediate presentation. * - * See https://reactnative.dev/docs/pushnotificationios.html#presentlocalnotification + * See https://reactnative.dev/docs/pushnotificationios#presentlocalnotification */ static presentLocalNotification(details: Object) { invariant( @@ -129,7 +129,7 @@ class PushNotificationIOS { /** * Schedules the localNotification for future presentation. * - * See https://reactnative.dev/docs/pushnotificationios.html#schedulelocalnotification + * See https://reactnative.dev/docs/pushnotificationios#schedulelocalnotification */ static scheduleLocalNotification(details: Object) { invariant( @@ -142,7 +142,7 @@ class PushNotificationIOS { /** * Cancels all scheduled localNotifications. * - * See https://reactnative.dev/docs/pushnotificationios.html#cancelalllocalnotifications + * See https://reactnative.dev/docs/pushnotificationios#cancelalllocalnotifications */ static cancelAllLocalNotifications() { invariant( @@ -155,7 +155,7 @@ class PushNotificationIOS { /** * Remove all delivered notifications from Notification Center. * - * See https://reactnative.dev/docs/pushnotificationios.html#removealldeliverednotifications + * See https://reactnative.dev/docs/pushnotificationios#removealldeliverednotifications */ static removeAllDeliveredNotifications(): void { invariant( @@ -168,7 +168,7 @@ class PushNotificationIOS { /** * Provides you with a list of the app’s notifications that are still displayed in Notification Center. * - * See https://reactnative.dev/docs/pushnotificationios.html#getdeliverednotifications + * See https://reactnative.dev/docs/pushnotificationios#getdeliverednotifications */ static getDeliveredNotifications( callback: (notifications: Array) => void, @@ -183,7 +183,7 @@ class PushNotificationIOS { /** * Removes the specified notifications from Notification Center * - * See https://reactnative.dev/docs/pushnotificationios.html#removedeliverednotifications + * See https://reactnative.dev/docs/pushnotificationios#removedeliverednotifications */ static removeDeliveredNotifications(identifiers: Array): void { invariant( @@ -196,7 +196,7 @@ class PushNotificationIOS { /** * Sets the badge number for the app icon on the home screen. * - * See https://reactnative.dev/docs/pushnotificationios.html#setapplicationiconbadgenumber + * See https://reactnative.dev/docs/pushnotificationios#setapplicationiconbadgenumber */ static setApplicationIconBadgeNumber(number: number) { invariant( @@ -209,7 +209,7 @@ class PushNotificationIOS { /** * Gets the current badge number for the app icon on the home screen. * - * See https://reactnative.dev/docs/pushnotificationios.html#getapplicationiconbadgenumber + * See https://reactnative.dev/docs/pushnotificationios#getapplicationiconbadgenumber */ static getApplicationIconBadgeNumber(callback: Function) { invariant( @@ -222,7 +222,7 @@ class PushNotificationIOS { /** * Cancel local notifications. * - * See https://reactnative.dev/docs/pushnotificationios.html#cancellocalnotification + * See https://reactnative.dev/docs/pushnotificationios#cancellocalnotification */ static cancelLocalNotifications(userInfo: Object) { invariant( @@ -235,7 +235,7 @@ class PushNotificationIOS { /** * Gets the local notifications that are currently scheduled. * - * See https://reactnative.dev/docs/pushnotificationios.html#getscheduledlocalnotifications + * See https://reactnative.dev/docs/pushnotificationios#getscheduledlocalnotifications */ static getScheduledLocalNotifications(callback: Function) { invariant( @@ -249,7 +249,7 @@ class PushNotificationIOS { * Attaches a listener to remote or local notification events while the app * is running in the foreground or the background. * - * See https://reactnative.dev/docs/pushnotificationios.html#addeventlistener + * See https://reactnative.dev/docs/pushnotificationios#addeventlistener */ static addEventListener(type: PushNotificationEventName, handler: Function) { invariant( @@ -296,7 +296,7 @@ class PushNotificationIOS { * Removes the event listener. Do this in `componentWillUnmount` to prevent * memory leaks. * - * See https://reactnative.dev/docs/pushnotificationios.html#removeeventlistener + * See https://reactnative.dev/docs/pushnotificationios#removeeventlistener */ static removeEventListener( type: PushNotificationEventName, @@ -323,7 +323,7 @@ class PushNotificationIOS { * a subset of these can be requested by passing a map of requested * permissions. * - * See https://reactnative.dev/docs/pushnotificationios.html#requestpermissions + * See https://reactnative.dev/docs/pushnotificationios#requestpermissions */ static requestPermissions(permissions?: { alert?: boolean, @@ -360,7 +360,7 @@ class PushNotificationIOS { /** * Unregister for all remote notifications received via Apple Push Notification service. * - * See https://reactnative.dev/docs/pushnotificationios.html#abandonpermissions + * See https://reactnative.dev/docs/pushnotificationios#abandonpermissions */ static abandonPermissions() { invariant( @@ -374,7 +374,7 @@ class PushNotificationIOS { * See what push permissions are currently enabled. `callback` will be * invoked with a `permissions` object. * - * See https://reactnative.dev/docs/pushnotificationios.html#checkpermissions + * See https://reactnative.dev/docs/pushnotificationios#checkpermissions */ static checkPermissions(callback: Function) { invariant(typeof callback === 'function', 'Must provide a valid callback'); @@ -389,7 +389,7 @@ class PushNotificationIOS { * This method returns a promise that resolves to either the notification * object if the app was launched by a push notification, or `null` otherwise. * - * See https://reactnative.dev/docs/pushnotificationios.html#getinitialnotification + * See https://reactnative.dev/docs/pushnotificationios#getinitialnotification */ static getInitialNotification(): Promise { invariant( @@ -433,7 +433,7 @@ class PushNotificationIOS { if (nativeNotif.remote) { // Extract data from Apple's `aps` dict as defined: - // https://developer.apple.com/library/ios/documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/Chapters/ApplePushService.html + // https://developer.apple.com/library/ios/documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/Chapters/ApplePushService Object.keys(nativeNotif).forEach(notifKey => { const notifVal = nativeNotif[notifKey]; if (notifKey === 'aps') { @@ -461,7 +461,7 @@ class PushNotificationIOS { * This method is available for remote notifications that have been received via: * `application:didReceiveRemoteNotification:fetchCompletionHandler:` * - * See https://reactnative.dev/docs/pushnotificationios.html#finish + * See https://reactnative.dev/docs/pushnotificationios#finish */ finish(fetchResult: string) { if ( @@ -494,7 +494,7 @@ class PushNotificationIOS { /** * Gets the sound string from the `aps` object * - * See https://reactnative.dev/docs/pushnotificationios.html#getsound + * See https://reactnative.dev/docs/pushnotificationios#getsound */ getSound(): ?string { return this._sound; @@ -503,7 +503,7 @@ class PushNotificationIOS { /** * Gets the category string from the `aps` object * - * See https://reactnative.dev/docs/pushnotificationios.html#getcategory + * See https://reactnative.dev/docs/pushnotificationios#getcategory */ getCategory(): ?string { return this._category; @@ -512,7 +512,7 @@ class PushNotificationIOS { /** * Gets the notification's main message from the `aps` object * - * See https://reactnative.dev/docs/pushnotificationios.html#getalert + * See https://reactnative.dev/docs/pushnotificationios#getalert */ getAlert(): ?string | ?Object { return this._alert; @@ -521,7 +521,7 @@ class PushNotificationIOS { /** * Gets the content-available number from the `aps` object * - * See https://reactnative.dev/docs/pushnotificationios.html#getcontentavailable + * See https://reactnative.dev/docs/pushnotificationios#getcontentavailable */ getContentAvailable(): ContentAvailable { return this._contentAvailable; @@ -530,7 +530,7 @@ class PushNotificationIOS { /** * Gets the badge count number from the `aps` object * - * See https://reactnative.dev/docs/pushnotificationios.html#getbadgecount + * See https://reactnative.dev/docs/pushnotificationios#getbadgecount */ getBadgeCount(): ?number { return this._badgeCount; @@ -539,7 +539,7 @@ class PushNotificationIOS { /** * Gets the data object on the notif * - * See https://reactnative.dev/docs/pushnotificationios.html#getdata + * See https://reactnative.dev/docs/pushnotificationios#getdata */ getData(): ?Object { return this._data; @@ -548,7 +548,7 @@ class PushNotificationIOS { /** * Gets the thread ID on the notif * - * See https://reactnative.dev/docs/pushnotificationios.html#getthreadid + * See https://reactnative.dev/docs/pushnotificationios#getthreadid */ getThreadID(): ?string { return this._threadID; diff --git a/Libraries/ReactNative/AppRegistry.js b/Libraries/ReactNative/AppRegistry.js index e6cd67571953..906772010019 100644 --- a/Libraries/ReactNative/AppRegistry.js +++ b/Libraries/ReactNative/AppRegistry.js @@ -68,7 +68,7 @@ let showArchitectureIndicator = false; /** * `AppRegistry` is the JavaScript entry point to running all React Native apps. * - * See https://reactnative.dev/docs/appregistry.html + * See https://reactnative.dev/docs/appregistry */ const AppRegistry = { setWrapperComponentProvider(provider: WrapperComponentProvider) { @@ -102,7 +102,7 @@ const AppRegistry = { /** * Registers an app's root component. * - * See https://reactnative.dev/docs/appregistry.html#registercomponent + * See https://reactnative.dev/docs/appregistry#registercomponent */ registerComponent( appKey: string, @@ -180,7 +180,7 @@ const AppRegistry = { /** * Loads the JavaScript bundle and runs the app. * - * See https://reactnative.dev/docs/appregistry.html#runapplication + * See https://reactnative.dev/docs/appregistry#runapplication */ runApplication( appKey: string, @@ -244,7 +244,7 @@ const AppRegistry = { /** * Stops an application when a view should be destroyed. * - * See https://reactnative.dev/docs/appregistry.html#unmountapplicationcomponentatroottag + * See https://reactnative.dev/docs/appregistry#unmountapplicationcomponentatroottag */ unmountApplicationComponentAtRootTag(rootTag: RootTag): void { // NOTE: RootTag type @@ -255,7 +255,7 @@ const AppRegistry = { /** * Register a headless task. A headless task is a bit of code that runs without a UI. * - * See https://reactnative.dev/docs/appregistry.html#registerheadlesstask + * See https://reactnative.dev/docs/appregistry#registerheadlesstask */ registerHeadlessTask(taskKey: string, taskProvider: TaskProvider): void { // $FlowFixMe[object-this-reference] @@ -267,7 +267,7 @@ const AppRegistry = { /** * Register a cancellable headless task. A headless task is a bit of code that runs without a UI. * - * See https://reactnative.dev/docs/appregistry.html#registercancellableheadlesstask + * See https://reactnative.dev/docs/appregistry#registercancellableheadlesstask */ registerCancellableHeadlessTask( taskKey: string, @@ -286,7 +286,7 @@ const AppRegistry = { /** * Only called from native code. Starts a headless task. * - * See https://reactnative.dev/docs/appregistry.html#startheadlesstask + * See https://reactnative.dev/docs/appregistry#startheadlesstask */ startHeadlessTask(taskId: number, taskKey: string, data: any): void { const taskProvider = taskProviders.get(taskKey); @@ -324,7 +324,7 @@ const AppRegistry = { /** * Only called from native code. Cancels a headless task. * - * See https://reactnative.dev/docs/appregistry.html#cancelheadlesstask + * See https://reactnative.dev/docs/appregistry#cancelheadlesstask */ cancelHeadlessTask(taskId: number, taskKey: string): void { const taskCancelProvider = taskCancelProviders.get(taskKey); diff --git a/Libraries/Storage/AsyncStorage.js b/Libraries/Storage/AsyncStorage.js index d254e8093f93..6c2fc78882a5 100644 --- a/Libraries/Storage/AsyncStorage.js +++ b/Libraries/Storage/AsyncStorage.js @@ -35,7 +35,7 @@ type GetRequest = { * storage system that is global to the app. It should be used instead of * LocalStorage. * - * See https://reactnative.dev/docs/asyncstorage.html + * See https://reactnative.dev/docs/asyncstorage */ const AsyncStorage = { _getRequests: ([]: Array), @@ -45,7 +45,7 @@ const AsyncStorage = { /** * Fetches an item for a `key` and invokes a callback upon completion. * - * See https://reactnative.dev/docs/asyncstorage.html#getitem + * See https://reactnative.dev/docs/asyncstorage#getitem */ getItem: function ( key: string, @@ -70,7 +70,7 @@ const AsyncStorage = { /** * Sets the value for a `key` and invokes a callback upon completion. * - * See https://reactnative.dev/docs/asyncstorage.html#setitem + * See https://reactnative.dev/docs/asyncstorage#setitem */ setItem: function ( key: string, @@ -94,7 +94,7 @@ const AsyncStorage = { /** * Removes an item for a `key` and invokes a callback upon completion. * - * See https://reactnative.dev/docs/asyncstorage.html#removeitem + * See https://reactnative.dev/docs/asyncstorage#removeitem */ removeItem: function ( key: string, @@ -120,7 +120,7 @@ const AsyncStorage = { * * **NOTE:** This is not supported by all native implementations. * - * See https://reactnative.dev/docs/asyncstorage.html#mergeitem + * See https://reactnative.dev/docs/asyncstorage#mergeitem */ mergeItem: function ( key: string, @@ -146,7 +146,7 @@ const AsyncStorage = { * don't want to call this; use `removeItem` or `multiRemove` to clear only * your app's keys. * - * See https://reactnative.dev/docs/asyncstorage.html#clear + * See https://reactnative.dev/docs/asyncstorage#clear */ clear: function (callback?: ?(error: ?Error) => void): Promise { invariant(RCTAsyncStorage, 'RCTAsyncStorage not available'); @@ -165,7 +165,7 @@ const AsyncStorage = { /** * Gets *all* keys known to your app; for all callers, libraries, etc. * - * See https://reactnative.dev/docs/asyncstorage.html#getallkeys + * See https://reactnative.dev/docs/asyncstorage#getallkeys */ getAllKeys: function ( callback?: ?(error: ?Error, keys: ?Array) => void, @@ -196,7 +196,7 @@ const AsyncStorage = { /** * Flushes any pending requests using a single batch call to get the data. * - * See https://reactnative.dev/docs/asyncstorage.html#flushgetrequests + * See https://reactnative.dev/docs/asyncstorage#flushgetrequests * */ flushGetRequests: function (): void { const getRequests = this._getRequests; @@ -235,7 +235,7 @@ const AsyncStorage = { * inputs. Your callback will be invoked with an array of corresponding * key-value pairs found. * - * See https://reactnative.dev/docs/asyncstorage.html#multiget + * See https://reactnative.dev/docs/asyncstorage#multiget */ multiGet: function ( keys: Array, @@ -270,7 +270,7 @@ const AsyncStorage = { * Use this as a batch operation for storing multiple key-value pairs. When * the operation completes you'll get a single callback with any errors. * - * See https://reactnative.dev/docs/asyncstorage.html#multiset + * See https://reactnative.dev/docs/asyncstorage#multiset */ multiSet: function ( keyValuePairs: Array>, @@ -293,7 +293,7 @@ const AsyncStorage = { /** * Call this to batch the deletion of all keys in the `keys` array. * - * See https://reactnative.dev/docs/asyncstorage.html#multiremove + * See https://reactnative.dev/docs/asyncstorage#multiremove */ multiRemove: function ( keys: Array, @@ -319,7 +319,7 @@ const AsyncStorage = { * * **NOTE**: This is not supported by all native implementations. * - * See https://reactnative.dev/docs/asyncstorage.html#multimerge + * See https://reactnative.dev/docs/asyncstorage#multimerge */ multiMerge: function ( keyValuePairs: Array>, diff --git a/Libraries/Text/Text.js b/Libraries/Text/Text.js index f57cb4eac7ed..cd28d02a04dc 100644 --- a/Libraries/Text/Text.js +++ b/Libraries/Text/Text.js @@ -21,7 +21,7 @@ import {useContext, useMemo, useState} from 'react'; /** * Text is the fundamental component for displaying text. * - * @see https://reactnative.dev/docs/text.html + * @see https://reactnative.dev/docs/text */ const Text: React.AbstractComponent< TextProps, diff --git a/Libraries/Text/TextProps.js b/Libraries/Text/TextProps.js index 3942a5998cd3..c7213a3933c6 100644 --- a/Libraries/Text/TextProps.js +++ b/Libraries/Text/TextProps.js @@ -32,13 +32,13 @@ export type PressRetentionOffset = $ReadOnly<{| |}>; /** - * @see https://reactnative.dev/docs/text.html#reference + * @see https://reactnative.dev/docs/text#reference */ export type TextProps = $ReadOnly<{| /** * Indicates whether the view is an accessibility element. * - * See https://reactnative.dev/docs/text.html#accessible + * See https://reactnative.dev/docs/text#accessible */ accessible?: ?boolean, accessibilityActions?: ?$ReadOnlyArray, @@ -51,14 +51,14 @@ export type TextProps = $ReadOnly<{| /** * Whether font should be scaled down automatically. * - * See https://reactnative.dev/docs/text.html#adjustsfontsizetofit + * See https://reactnative.dev/docs/text#adjustsfontsizetofit */ adjustsFontSizeToFit?: ?boolean, /** * Whether fonts should scale to respect Text Size accessibility settings. * - * See https://reactnative.dev/docs/text.html#allowfontscaling + * See https://reactnative.dev/docs/text#allowfontscaling */ allowFontScaling?: ?boolean, @@ -73,7 +73,7 @@ export type TextProps = $ReadOnly<{| * When `numberOfLines` is set, this prop defines how text will be * truncated. * - * See https://reactnative.dev/docs/text.html#ellipsizemode + * See https://reactnative.dev/docs/text#ellipsizemode */ ellipsizeMode?: ?('clip' | 'head' | 'middle' | 'tail'), @@ -89,35 +89,35 @@ export type TextProps = $ReadOnly<{| /** * Used to locate this view from native code. * - * See https://reactnative.dev/docs/text.html#nativeid + * See https://reactnative.dev/docs/text#nativeid */ nativeID?: ?string, /** * Used to truncate the text with an ellipsis. * - * See https://reactnative.dev/docs/text.html#numberoflines + * See https://reactnative.dev/docs/text#numberoflines */ numberOfLines?: ?number, /** * Invoked on mount and layout changes. * - * See https://reactnative.dev/docs/text.html#onlayout + * See https://reactnative.dev/docs/text#onlayout */ onLayout?: ?(event: LayoutEvent) => mixed, /** * This function is called on long press. * - * See https://reactnative.dev/docs/text.html#onlongpress + * See https://reactnative.dev/docs/text#onlongpress */ onLongPress?: ?(event: PressEvent) => mixed, /** * This function is called on press. * - * See https://reactnative.dev/docs/text.html#onpress + * See https://reactnative.dev/docs/text#onpress */ onPress?: ?(event: PressEvent) => mixed, onPressIn?: ?(event: PressEvent) => mixed, @@ -135,14 +135,14 @@ export type TextProps = $ReadOnly<{| * Defines how far your touch may move off of the button, before * deactivating the button. * - * See https://reactnative.dev/docs/text.html#pressretentionoffset + * See https://reactnative.dev/docs/text#pressretentionoffset */ pressRetentionOffset?: ?PressRetentionOffset, /** * Lets the user select text. * - * See https://reactnative.dev/docs/text.html#selectable + * See https://reactnative.dev/docs/text#selectable */ selectable?: ?boolean, style?: ?TextStyleProp, @@ -150,7 +150,7 @@ export type TextProps = $ReadOnly<{| /** * Used to locate this view in end-to-end tests. * - * See https://reactnative.dev/docs/text.html#testid + * See https://reactnative.dev/docs/text#testid */ testID?: ?string, @@ -161,14 +161,14 @@ export type TextProps = $ReadOnly<{| /** * Specifies the disabled state of the text view for testing purposes. * - * See https://reactnative.dev/docs/text.html#disabled + * See https://reactnative.dev/docs/text#disabled */ disabled?: ?boolean, /** * The highlight color of the text. * - * See https://reactnative.dev/docs/text.html#selectioncolor + * See https://reactnative.dev/docs/text#selectioncolor */ selectionColor?: ?string, @@ -177,7 +177,7 @@ export type TextProps = $ReadOnly<{| /** * Set text break strategy on Android. * - * See https://reactnative.dev/docs/text.html#textbreakstrategy + * See https://reactnative.dev/docs/text#textbreakstrategy */ textBreakStrategy?: ?('balanced' | 'highQuality' | 'simple'), @@ -189,14 +189,14 @@ export type TextProps = $ReadOnly<{| /** * Smallest possible scale a font can reach. * - * See https://reactnative.dev/docs/text.html#minimumfontscale + * See https://reactnative.dev/docs/text#minimumfontscale */ minimumFontScale?: ?number, /** * When `true`, no visual change is made when text is pressed down. * - * See https://reactnative.dev/docs/text.html#supperhighlighting + * See https://reactnative.dev/docs/text#supperhighlighting */ suppressHighlighting?: ?boolean, |}>; diff --git a/Libraries/Vibration/Vibration.js b/Libraries/Vibration/Vibration.js index dc3157462984..af8c9fb5d576 100644 --- a/Libraries/Vibration/Vibration.js +++ b/Libraries/Vibration/Vibration.js @@ -15,7 +15,7 @@ const Platform = require('../Utilities/Platform'); /** * Vibration API * - * See https://reactnative.dev/docs/vibration.html + * See https://reactnative.dev/docs/vibration */ let _vibrating: boolean = false; @@ -68,7 +68,7 @@ const Vibration = { /** * Trigger a vibration with specified `pattern`. * - * See https://reactnative.dev/docs/vibration.html#vibrate + * See https://reactnative.dev/docs/vibration#vibrate */ vibrate: function ( pattern: number | Array = _default_vibration_length, @@ -98,7 +98,7 @@ const Vibration = { /** * Stop vibration * - * See https://reactnative.dev/docs/vibration.html#cancel + * See https://reactnative.dev/docs/vibration#cancel */ cancel: function () { if (Platform.OS === 'ios') { diff --git a/ReactAndroid/DevExperience.md b/ReactAndroid/DevExperience.md index aa56e8c1e5b0..c0d259daae20 100644 --- a/ReactAndroid/DevExperience.md +++ b/ReactAndroid/DevExperience.md @@ -1,4 +1,4 @@ -Here's how to test the whole dev experience end-to-end. This will be eventually merged into the [Getting Started guide](https://reactnative.dev/docs/getting-started.html). +Here's how to test the whole dev experience end-to-end. This will be eventually merged into the [Getting Started guide](https://reactnative.dev/docs/getting-started). Assuming you have the [Android SDK](https://developer.android.com/sdk/installing/index.html) installed, run `android` to open the Android SDK Manager. diff --git a/bots/dangerfile.js b/bots/dangerfile.js index 91803ed12981..955a364adc0c 100644 --- a/bots/dangerfile.js +++ b/bots/dangerfile.js @@ -91,6 +91,6 @@ if (!isMergeRefMaster && isMergeRefStable) { } else if (!isMergeRefMaster && !isMergeRefStable) { const title = ':exclamation: Base Branch'; const idea = - 'The base branch for this PR is something other than `main`. [Are you sure you want to target something other than the `main` branch?](https://reactnative.dev/docs/contributing.html#pull-requests)'; + 'The base branch for this PR is something other than `main`. [Are you sure you want to target something other than the `main` branch?](https://reactnative.dev/docs/contributing#pull-requests)'; fail(`${title} - ${idea}`); } diff --git a/scripts/run-android-local-integration-tests.sh b/scripts/run-android-local-integration-tests.sh index 252a1879b6a6..1825427571d4 100755 --- a/scripts/run-android-local-integration-tests.sh +++ b/scripts/run-android-local-integration-tests.sh @@ -5,7 +5,7 @@ # LICENSE file in the root directory of this source tree. # Runs all Android integration tests locally. -# See https://reactnative.dev/docs/testing.html +# See https://reactnative.dev/docs/testing source $(dirname $0)/validate-android-sdk.sh source $(dirname $0)/validate-android-test-env.sh diff --git a/scripts/run-android-local-unit-tests.sh b/scripts/run-android-local-unit-tests.sh index a339cf2bfeb9..7730b67295d0 100755 --- a/scripts/run-android-local-unit-tests.sh +++ b/scripts/run-android-local-unit-tests.sh @@ -5,7 +5,7 @@ # LICENSE file in the root directory of this source tree. # Runs all Android unit tests locally. -# See https://reactnative.dev/docs/testing.html +# See https://reactnative.dev/docs/testing source $(dirname $0)/validate-android-sdk.sh source $(dirname $0)/validate-android-test-env.sh diff --git a/scripts/validate-android-sdk.sh b/scripts/validate-android-sdk.sh index 06661779fef8..8ead1cb16d79 100755 --- a/scripts/validate-android-sdk.sh +++ b/scripts/validate-android-sdk.sh @@ -13,7 +13,7 @@ if [ -z "$ANDROID_HOME" ]; then echo "Error: \$ANDROID_HOME is not configured." echo "You must first install the Android SDK and then set \$ANDROID_HOME." echo "If you already installed the Android SDK, the problem is that you need to export ANDROID_HOME from your .bashrc or equivalent." - echo "See https://reactnative.dev/docs/getting-started.html for instructions." + echo "See https://reactnative.dev/docs/getting-started for instructions." exit 1 fi @@ -21,7 +21,7 @@ if [ ! -d "$ANDROID_HOME" ]; then echo "Error: \$ANDROID_HOME = $ANDROID_HOME but that directory does not exist." echo "It is possible that you installed then uninstalled the Android SDK." echo "In that case, you should reinstall it." - echo "See https://reactnative.dev/docs/getting-started.html for instructions." + echo "See https://reactnative.dev/docs/getting-started for instructions." exit 1 fi @@ -31,7 +31,7 @@ if [ ! -e "$ANDROID_HOME/tools/emulator" ]; then echo "This indicates something is broken with your Android SDK install." echo "One possibility is that you have \$ANDROID_HOME set to the wrong value." echo "If that seems correct, you might want to try reinstalling the Android SDK." - echo "See https://reactnative.dev/docs/getting-started.html for instructions." + echo "See https://reactnative.dev/docs/getting-started for instructions." exit 1 fi @@ -49,6 +49,6 @@ if [ -z `which adb` ]; then echo "This indicates something is broken with your Android SDK install." echo "The most likely problem is that you are not adding \$ANDROID_HOME/platform-tools to your \$PATH." echo "If all else fails, try reinstalling the Android SDK." - echo "See https://reactnative.dev/docs/getting-started.html for instructions." + echo "See https://reactnative.dev/docs/getting-started for instructions." exit 1 fi diff --git a/scripts/validate-ios-test-env.sh b/scripts/validate-ios-test-env.sh index 3f87c1914483..0df1826cac84 100755 --- a/scripts/validate-ios-test-env.sh +++ b/scripts/validate-ios-test-env.sh @@ -16,7 +16,7 @@ function version_gt() { test "$(printf '%s\n' "$@" | sort -V | head -n 1)" != "$ # Check that node is installed. if [ -z "$(which node)" ]; then echo "Could not find Node binary. Please check your nodejs install." - echo "See https://reactnative.dev/docs/getting-started.html for instructions." + echo "See https://reactnative.dev/docs/getting-started for instructions." exit 1 fi @@ -25,14 +25,14 @@ NODE_VERSION="$(command node --version | sed 's/[-/a-zA-Z]//g' |sed 's/.\{2\}$// if (( $(echo "${NODE_VERSION} < 12.0" | bc -l) )); then echo "Node ${NODE_VERSION} detected. This version of Node is not supported." - echo "See https://reactnative.dev/docs/getting-started.html for instructions." + echo "See https://reactnative.dev/docs/getting-started for instructions." exit 1 fi # Check that Xcode is installed. if [ -z "$(which xcodebuild)" ]; then echo "Could not find Xcode build tools. Please check your Xcode install." - echo "See https://reactnative.dev/docs/getting-started.html for instructions." + echo "See https://reactnative.dev/docs/getting-started for instructions." exit 1 fi @@ -42,6 +42,6 @@ XCODE_VERSION="$(command xcodebuild -version | sed '$ d' | sed 's/[-/a-zA-Z]//g' if (version_gt $MIN_XCODE_VERSION $XCODE_VERSION) && [ "$XCODE_VERSION" != "$MIN_XCODE_VERSION" ]; then echo "Xcode ${XCODE_VERSION} detected. React Native requires ${MIN_XCODE_VERSION} or newer." echo "Older versions of Xcode may cause cryptic build errors." - echo "See https://reactnative.dev/docs/getting-started.html for instructions." + echo "See https://reactnative.dev/docs/getting-started for instructions." exit 1 fi