diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md index 71d2e3fd30c..be64bc44f25 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.md +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -9,7 +9,7 @@ labels: 'Needs: Triage :mag:' Description: Please provide a clear and concise description of what the bug is. Include screenshots if needed. - Please test using the latest React Native release to make sure your issue has not already been fixed: http://facebook.github.io/react-native/docs/upgrading.html + Please test using the latest React Native release to make sure your issue has not already been fixed: https://reactnative.dev/docs/upgrading.html React Native version: diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml index 0b1bca32487..c50c3e2a4f2 100644 --- a/.github/ISSUE_TEMPLATE/config.yml +++ b/.github/ISSUE_TEMPLATE/config.yml @@ -4,7 +4,7 @@ contact_links: url: https://github.com/facebook/react-native-website/issues about: Please report documentation issues in the React Native website repository. - name: 馃 Questions and Help - url: https://facebook.github.io/react-native/help + url: https://reactnative.dev/help about: Looking for help with your app? Please refer to the React Native community's support resources. - name: 馃殌 Discussions and Proposals url: https://github.com/react-native-community/discussions-and-proposals diff --git a/.github/SUPPORT.md b/.github/SUPPORT.md index d229644aa40..4e313c997e3 100644 --- a/.github/SUPPORT.md +++ b/.github/SUPPORT.md @@ -32,4 +32,4 @@ If you want to participate in casual discussions about the use of React Native, - [React Native Community Facebook Group](https://www.facebook.com/groups/react.native.community) -> For a full list of community resources, check out [React Native's Community page](https://facebook.github.io/react-native/help). +> For a full list of community resources, check out [React Native's Community page](https://reactnative.dev/help). diff --git a/Libraries/ART/React-ART.podspec b/Libraries/ART/React-ART.podspec index a21710e6277..030e88e7815 100644 --- a/Libraries/ART/React-ART.podspec +++ b/Libraries/ART/React-ART.podspec @@ -20,7 +20,7 @@ Pod::Spec.new do |s| s.name = "React-ART" s.version = version s.summary = "A library for drawing vector graphics." - s.homepage = "http://facebook.github.io/react-native/" + s.homepage = "https://reactnative.dev/" s.license = package["license"] s.author = "Facebook, Inc. and its affiliates" s.platforms = { :ios => "10.0", :tvos => "10.0" } diff --git a/Libraries/ActionSheetIOS/ActionSheetIOS.js b/Libraries/ActionSheetIOS/ActionSheetIOS.js index b0dd906fd4e..bda2844d4f6 100644 --- a/Libraries/ActionSheetIOS/ActionSheetIOS.js +++ b/Libraries/ActionSheetIOS/ActionSheetIOS.js @@ -18,7 +18,7 @@ const processColor = require('../StyleSheet/processColor'); /** * Display action sheets and share sheets on iOS. * - * See http://facebook.github.io/react-native/docs/actionsheetios.html + * See https://reactnative.dev/docs/actionsheetios.html */ const ActionSheetIOS = { /** @@ -35,7 +35,7 @@ const ActionSheetIOS = { * The 'callback' function takes one parameter, the zero-based index * of the selected item. * - * See http://facebook.github.io/react-native/docs/actionsheetios.html#showactionsheetwithoptions + * See https://reactnative.dev/docs/actionsheetios.html#showactionsheetwithoptions */ showActionSheetWithOptions( options: {| @@ -101,7 +101,7 @@ const ActionSheetIOS = { * - a boolean value signifying success or failure * - a string that, in the case of success, indicates the method of sharing * - * See http://facebook.github.io/react-native/docs/actionsheetios.html#showshareactionsheetwithoptions + * See https://reactnative.dev/docs/actionsheetios.html#showshareactionsheetwithoptions */ showShareActionSheetWithOptions( options: Object, diff --git a/Libraries/ActionSheetIOS/React-RCTActionSheet.podspec b/Libraries/ActionSheetIOS/React-RCTActionSheet.podspec index a24d109f316..ef883132395 100644 --- a/Libraries/ActionSheetIOS/React-RCTActionSheet.podspec +++ b/Libraries/ActionSheetIOS/React-RCTActionSheet.podspec @@ -20,8 +20,8 @@ Pod::Spec.new do |s| s.name = "React-RCTActionSheet" s.version = version s.summary = "An API for displaying iOS action sheets and share sheets." - s.homepage = "http://facebook.github.io/react-native/" - s.documentation_url = "https://facebook.github.io/react-native/docs/actionsheetios" + s.homepage = "https://reactnative.dev/" + s.documentation_url = "https://reactnative.dev/docs/actionsheetios" s.license = package["license"] s.author = "Facebook, Inc. and its affiliates" s.platforms = { :ios => "10.0", :tvos => "10.0" } diff --git a/Libraries/Alert/Alert.js b/Libraries/Alert/Alert.js index 5012bd18f11..e6aead18643 100644 --- a/Libraries/Alert/Alert.js +++ b/Libraries/Alert/Alert.js @@ -38,7 +38,7 @@ type Options = { /** * Launches an alert dialog with the specified title and message. * - * See http://facebook.github.io/react-native/docs/alert.html + * See https://reactnative.dev/docs/alert.html */ class Alert { static alert( diff --git a/Libraries/Animated/src/AnimatedImplementation.js b/Libraries/Animated/src/AnimatedImplementation.js index ce70beb529b..9d29266bf89 100644 --- a/Libraries/Animated/src/AnimatedImplementation.js +++ b/Libraries/Animated/src/AnimatedImplementation.js @@ -542,33 +542,33 @@ const event = function( * If additional transforms are added, be sure to include them in * AnimatedMock.js as well. * - * See http://facebook.github.io/react-native/docs/animated.html + * See https://reactnative.dev/docs/animated.html */ module.exports = { /** * Standard value class for driving animations. Typically initialized with * `new Animated.Value(0);` * - * See http://facebook.github.io/react-native/docs/animated.html#value + * See https://reactnative.dev/docs/animated.html#value */ Value: AnimatedValue, /** * 2D value class for driving 2D animations, such as pan gestures. * - * See https://facebook.github.io/react-native/docs/animatedvaluexy.html + * See https://reactnative.dev/docs/animatedvaluexy.html */ ValueXY: AnimatedValueXY, /** * Exported to use the Interpolation type in flow. * - * See http://facebook.github.io/react-native/docs/animated.html#interpolation + * See https://reactnative.dev/docs/animated.html#interpolation */ Interpolation: AnimatedInterpolation, /** * Exported for ease of type checking. All animated values derive from this * class. * - * See http://facebook.github.io/react-native/docs/animated.html#node + * See https://reactnative.dev/docs/animated.html#node */ Node: AnimatedNode, @@ -576,21 +576,21 @@ module.exports = { * Animates a value from an initial velocity to zero based on a decay * coefficient. * - * See http://facebook.github.io/react-native/docs/animated.html#decay + * See https://reactnative.dev/docs/animated.html#decay */ decay, /** * Animates a value along a timed easing curve. The Easing module has tons of * predefined curves, or you can use your own function. * - * See http://facebook.github.io/react-native/docs/animated.html#timing + * See https://reactnative.dev/docs/animated.html#timing */ timing, /** * Animates a value according to an analytical spring model based on * damped harmonic oscillation. * - * See http://facebook.github.io/react-native/docs/animated.html#spring + * See https://reactnative.dev/docs/animated.html#spring */ spring, @@ -598,7 +598,7 @@ module.exports = { * Creates a new Animated value composed from two Animated values added * together. * - * See http://facebook.github.io/react-native/docs/animated.html#add + * See https://reactnative.dev/docs/animated.html#add */ add, @@ -606,7 +606,7 @@ module.exports = { * Creates a new Animated value composed by subtracting the second Animated * value from the first Animated value. * - * See http://facebook.github.io/react-native/docs/animated.html#subtract + * See https://reactnative.dev/docs/animated.html#subtract */ subtract, @@ -614,7 +614,7 @@ module.exports = { * Creates a new Animated value composed by dividing the first Animated value * by the second Animated value. * - * See http://facebook.github.io/react-native/docs/animated.html#divide + * See https://reactnative.dev/docs/animated.html#divide */ divide, @@ -622,7 +622,7 @@ module.exports = { * Creates a new Animated value composed from two Animated values multiplied * together. * - * See http://facebook.github.io/react-native/docs/animated.html#multiply + * See https://reactnative.dev/docs/animated.html#multiply */ multiply, @@ -630,7 +630,7 @@ module.exports = { * Creates a new Animated value that is the (non-negative) modulo of the * provided Animated value. * - * See http://facebook.github.io/react-native/docs/animated.html#modulo + * See https://reactnative.dev/docs/animated.html#modulo */ modulo, @@ -639,14 +639,14 @@ module.exports = { * difference between the last value so even if the value is far from the * bounds it will start changing when the value starts getting closer again. * - * See http://facebook.github.io/react-native/docs/animated.html#diffclamp + * See https://reactnative.dev/docs/animated.html#diffclamp */ diffClamp, /** * Starts an animation after the given delay. * - * See http://facebook.github.io/react-native/docs/animated.html#delay + * See https://reactnative.dev/docs/animated.html#delay */ delay, /** @@ -654,7 +654,7 @@ module.exports = { * before starting the next. If the current running animation is stopped, no * following animations will be started. * - * See http://facebook.github.io/react-native/docs/animated.html#sequence + * See https://reactnative.dev/docs/animated.html#sequence */ sequence, /** @@ -662,21 +662,21 @@ module.exports = { * of the animations is stopped, they will all be stopped. You can override * this with the `stopTogether` flag. * - * See http://facebook.github.io/react-native/docs/animated.html#parallel + * See https://reactnative.dev/docs/animated.html#parallel */ parallel, /** * Array of animations may run in parallel (overlap), but are started in * sequence with successive delays. Nice for doing trailing effects. * - * See http://facebook.github.io/react-native/docs/animated.html#stagger + * See https://reactnative.dev/docs/animated.html#stagger */ stagger, /** * Loops a given animation continuously, so that each time it reaches the * end, it resets and begins again from the start. * - * See http://facebook.github.io/react-native/docs/animated.html#loop + * See https://reactnative.dev/docs/animated.html#loop */ loop, @@ -684,14 +684,14 @@ module.exports = { * Takes an array of mappings and extracts values from each arg accordingly, * then calls `setValue` on the mapped outputs. * - * See http://facebook.github.io/react-native/docs/animated.html#event + * See https://reactnative.dev/docs/animated.html#event */ event, /** * Make any React component Animatable. Used to create `Animated.View`, etc. * - * See http://facebook.github.io/react-native/docs/animated.html#createanimatedcomponent + * See https://reactnative.dev/docs/animated.html#createanimatedcomponent */ createAnimatedComponent, @@ -699,7 +699,7 @@ module.exports = { * Imperative API to attach an animated value to an event on a view. Prefer * using `Animated.event` with `useNativeDrive: true` if possible. * - * See http://facebook.github.io/react-native/docs/animated.html#attachnativeevent + * See https://reactnative.dev/docs/animated.html#attachnativeevent */ attachNativeEvent, @@ -707,7 +707,7 @@ module.exports = { * Advanced imperative API for snooping on animated events that are passed in * through props. Use values directly where possible. * - * See http://facebook.github.io/react-native/docs/animated.html#forkevent + * See https://reactnative.dev/docs/animated.html#forkevent */ forkEvent, unforkEvent, diff --git a/Libraries/Animated/src/nodes/AnimatedNode.js b/Libraries/Animated/src/nodes/AnimatedNode.js index 4b6a079bf73..7371d49fd5b 100644 --- a/Libraries/Animated/src/nodes/AnimatedNode.js +++ b/Libraries/Animated/src/nodes/AnimatedNode.js @@ -65,7 +65,7 @@ class AnimatedNode { * animations. This is useful because there is no way to * synchronously read the value because it might be driven natively. * - * See http://facebook.github.io/react-native/docs/animatedvalue.html#addlistener + * See https://reactnative.dev/docs/animatedvalue.html#addlistener */ addListener(callback: (value: any) => mixed): string { const id = String(_uniqueId++); @@ -80,7 +80,7 @@ class AnimatedNode { * Unregister a listener. The `id` param shall match the identifier * previously returned by `addListener()`. * - * See http://facebook.github.io/react-native/docs/animatedvalue.html#removelistener + * See https://reactnative.dev/docs/animatedvalue.html#removelistener */ removeListener(id: string): void { delete this._listeners[id]; @@ -92,7 +92,7 @@ class AnimatedNode { /** * Remove all registered listeners. * - * See http://facebook.github.io/react-native/docs/animatedvalue.html#removealllisteners + * See https://reactnative.dev/docs/animatedvalue.html#removealllisteners */ removeAllListeners(): void { this._listeners = {}; diff --git a/Libraries/Animated/src/nodes/AnimatedValue.js b/Libraries/Animated/src/nodes/AnimatedValue.js index 4fa35ed27c2..90107418434 100644 --- a/Libraries/Animated/src/nodes/AnimatedValue.js +++ b/Libraries/Animated/src/nodes/AnimatedValue.js @@ -66,7 +66,7 @@ function _flush(rootNode: AnimatedValue): void { * mechanism at a time. Using a new mechanism (e.g. starting a new animation, * or calling `setValue`) will stop any previous ones. * - * See http://facebook.github.io/react-native/docs/animatedvalue.html + * See https://reactnative.dev/docs/animatedvalue.html */ class AnimatedValue extends AnimatedWithChildren { _value: number; @@ -95,7 +95,7 @@ class AnimatedValue extends AnimatedWithChildren { * Directly set the value. This will stop any animations running on the value * and update all the bound properties. * - * See http://facebook.github.io/react-native/docs/animatedvalue.html#setvalue + * See https://reactnative.dev/docs/animatedvalue.html#setvalue */ setValue(value: number): void { if (this._animation) { @@ -116,7 +116,7 @@ class AnimatedValue extends AnimatedWithChildren { * `setValue`, an animation, or `Animated.event`. Useful for compensating * things like the start of a pan gesture. * - * See http://facebook.github.io/react-native/docs/animatedvalue.html#setoffset + * See https://reactnative.dev/docs/animatedvalue.html#setoffset */ setOffset(offset: number): void { this._offset = offset; @@ -129,7 +129,7 @@ class AnimatedValue extends AnimatedWithChildren { * Merges the offset value into the base value and resets the offset to zero. * The final output of the value is unchanged. * - * See http://facebook.github.io/react-native/docs/animatedvalue.html#flattenoffset + * See https://reactnative.dev/docs/animatedvalue.html#flattenoffset */ flattenOffset(): void { this._value += this._offset; @@ -143,7 +143,7 @@ class AnimatedValue extends AnimatedWithChildren { * Sets the offset value to the base value, and resets the base value to zero. * The final output of the value is unchanged. * - * See http://facebook.github.io/react-native/docs/animatedvalue.html#extractoffset + * See https://reactnative.dev/docs/animatedvalue.html#extractoffset */ extractOffset(): void { this._offset += this._value; @@ -158,7 +158,7 @@ class AnimatedValue extends AnimatedWithChildren { * final value after stopping the animation, which is useful for updating * state to match the animation position with layout. * - * See http://facebook.github.io/react-native/docs/animatedvalue.html#stopanimation + * See https://reactnative.dev/docs/animatedvalue.html#stopanimation */ stopAnimation(callback?: ?(value: number) => void): void { this.stopTracking(); @@ -170,7 +170,7 @@ class AnimatedValue extends AnimatedWithChildren { /** * Stops any animation and resets the value to its original. * - * See http://facebook.github.io/react-native/docs/animatedvalue.html#resetanimation + * See https://reactnative.dev/docs/animatedvalue.html#resetanimation */ resetAnimation(callback?: ?(value: number) => void): void { this.stopAnimation(callback); @@ -193,7 +193,7 @@ class AnimatedValue extends AnimatedWithChildren { * Typically only used internally, but could be used by a custom Animation * class. * - * See http://facebook.github.io/react-native/docs/animatedvalue.html#animate + * See https://reactnative.dev/docs/animatedvalue.html#animate */ animate(animation: Animation, callback: ?EndCallback): void { let handle = null; diff --git a/Libraries/Animated/src/nodes/AnimatedValueXY.js b/Libraries/Animated/src/nodes/AnimatedValueXY.js index 2e845b26219..28d3395db8a 100644 --- a/Libraries/Animated/src/nodes/AnimatedValueXY.js +++ b/Libraries/Animated/src/nodes/AnimatedValueXY.js @@ -27,7 +27,7 @@ let _uniqueId = 1; * 2D Value for driving 2D animations, such as pan gestures. Almost identical * API to normal `Animated.Value`, but multiplexed. * - * See http://facebook.github.io/react-native/docs/animatedvaluexy.html + * See https://reactnative.dev/docs/animatedvaluexy.html */ class AnimatedValueXY extends AnimatedWithChildren { x: AnimatedValue; @@ -69,7 +69,7 @@ class AnimatedValueXY extends AnimatedWithChildren { * Directly set the value. This will stop any animations running on the value * and update all the bound properties. * - * See http://facebook.github.io/react-native/docs/animatedvaluexy.html#setvalue + * See https://reactnative.dev/docs/animatedvaluexy.html#setvalue */ setValue(value: {x: number, y: number, ...}) { this.x.setValue(value.x); @@ -81,7 +81,7 @@ class AnimatedValueXY extends AnimatedWithChildren { * via `setValue`, an animation, or `Animated.event`. Useful for compensating * things like the start of a pan gesture. * - * See http://facebook.github.io/react-native/docs/animatedvaluexy.html#setoffset + * See https://reactnative.dev/docs/animatedvaluexy.html#setoffset */ setOffset(offset: {x: number, y: number, ...}) { this.x.setOffset(offset.x); @@ -92,7 +92,7 @@ class AnimatedValueXY extends AnimatedWithChildren { * Merges the offset value into the base value and resets the offset to zero. * The final output of the value is unchanged. * - * See http://facebook.github.io/react-native/docs/animatedvaluexy.html#flattenoffset + * See https://reactnative.dev/docs/animatedvaluexy.html#flattenoffset */ flattenOffset(): void { this.x.flattenOffset(); @@ -103,7 +103,7 @@ class AnimatedValueXY extends AnimatedWithChildren { * Sets the offset value to the base value, and resets the base value to * zero. The final output of the value is unchanged. * - * See http://facebook.github.io/react-native/docs/animatedvaluexy.html#extractoffset + * See https://reactnative.dev/docs/animatedvaluexy.html#extractoffset */ extractOffset(): void { this.x.extractOffset(); @@ -124,7 +124,7 @@ class AnimatedValueXY extends AnimatedWithChildren { /** * Stops any animation and resets the value to its original. * - * See http://facebook.github.io/react-native/docs/animatedvaluexy.html#resetanimation + * See https://reactnative.dev/docs/animatedvaluexy.html#resetanimation */ resetAnimation( callback?: (value: { @@ -143,7 +143,7 @@ class AnimatedValueXY extends AnimatedWithChildren { * final value after stopping the animation, which is useful for updating * state to match the animation position with layout. * - * See http://facebook.github.io/react-native/docs/animatedvaluexy.html#stopanimation + * See https://reactnative.dev/docs/animatedvaluexy.html#stopanimation */ stopAnimation( callback?: (value: { @@ -164,7 +164,7 @@ class AnimatedValueXY extends AnimatedWithChildren { * * Returns a string that serves as an identifier for the listener. * - * See http://facebook.github.io/react-native/docs/animatedvaluexy.html#addlistener + * See https://reactnative.dev/docs/animatedvaluexy.html#addlistener */ addListener(callback: ValueXYListenerCallback): string { const id = String(_uniqueId++); @@ -182,7 +182,7 @@ class AnimatedValueXY extends AnimatedWithChildren { * Unregister a listener. The `id` param shall match the identifier * previously returned by `addListener()`. * - * See http://facebook.github.io/react-native/docs/animatedvaluexy.html#removelistener + * See https://reactnative.dev/docs/animatedvaluexy.html#removelistener */ removeListener(id: string): void { this.x.removeListener(this._listeners[id].x); @@ -193,7 +193,7 @@ class AnimatedValueXY extends AnimatedWithChildren { /** * Remove all registered listeners. * - * See http://facebook.github.io/react-native/docs/animatedvaluexy.html#removealllisteners + * See https://reactnative.dev/docs/animatedvaluexy.html#removealllisteners */ removeAllListeners(): void { this.x.removeAllListeners(); @@ -204,7 +204,7 @@ class AnimatedValueXY extends AnimatedWithChildren { /** * Converts `{x, y}` into `{left, top}` for use in style. * - * See http://facebook.github.io/react-native/docs/animatedvaluexy.html#getlayout + * See https://reactnative.dev/docs/animatedvaluexy.html#getlayout */ getLayout(): {[key: string]: AnimatedValue, ...} { return { @@ -216,7 +216,7 @@ class AnimatedValueXY extends AnimatedWithChildren { /** * Converts `{x, y}` into a useable translation transform. * - * See http://facebook.github.io/react-native/docs/animatedvaluexy.html#gettranslatetransform + * See https://reactnative.dev/docs/animatedvaluexy.html#gettranslatetransform */ getTranslateTransform(): Array<{[key: string]: AnimatedValue, ...}> { return [{translateX: this.x}, {translateY: this.y}]; diff --git a/Libraries/AppState/AppState.js b/Libraries/AppState/AppState.js index 30a0808f440..b5fb59bd9fd 100644 --- a/Libraries/AppState/AppState.js +++ b/Libraries/AppState/AppState.js @@ -22,7 +22,7 @@ import NativeAppState from './NativeAppState'; * `AppState` can tell you if the app is in the foreground or background, * and notify you when the state changes. * - * See http://facebook.github.io/react-native/docs/appstate.html + * See https://reactnative.dev/docs/appstate.html */ class AppState extends NativeEventEmitter { _eventHandlers: Object; @@ -73,7 +73,7 @@ class AppState extends NativeEventEmitter { * Add a handler to AppState changes by listening to the `change` event type * and providing the handler. * - * See http://facebook.github.io/react-native/docs/appstate.html#addeventlistener + * See https://reactnative.dev/docs/appstate.html#addeventlistener */ addEventListener(type: string, handler: Function) { invariant( @@ -120,7 +120,7 @@ class AppState extends NativeEventEmitter { /** * Remove a handler by passing the `change` event type and the handler. * - * See http://facebook.github.io/react-native/docs/appstate.html#removeeventlistener + * See https://reactnative.dev/docs/appstate.html#removeeventlistener */ removeEventListener(type: string, handler: Function) { invariant( diff --git a/Libraries/Blob/React-RCTBlob.podspec b/Libraries/Blob/React-RCTBlob.podspec index f42864b8fee..f4c7cd1bd16 100644 --- a/Libraries/Blob/React-RCTBlob.podspec +++ b/Libraries/Blob/React-RCTBlob.podspec @@ -23,7 +23,7 @@ Pod::Spec.new do |s| s.name = "React-RCTBlob" s.version = version s.summary = "An API for displaying iOS action sheets and share sheets." - s.homepage = "http://facebook.github.io/react-native/" + s.homepage = "https://reactnative.dev/" s.license = package["license"] s.author = "Facebook, Inc. and its affiliates" s.platforms = { :ios => "10.0", :tvos => "10.0" } diff --git a/Libraries/Components/AccessibilityInfo/AccessibilityInfo.android.js b/Libraries/Components/AccessibilityInfo/AccessibilityInfo.android.js index 1840dfce692..7d7e92a444b 100644 --- a/Libraries/Components/AccessibilityInfo/AccessibilityInfo.android.js +++ b/Libraries/Components/AccessibilityInfo/AccessibilityInfo.android.js @@ -34,7 +34,7 @@ const _subscriptions = new Map(); * well as to register to be notified when the state of the screen reader * changes. * - * See http://facebook.github.io/react-native/docs/accessibilityinfo.html + * See https://reactnative.dev/docs/accessibilityinfo.html */ const AccessibilityInfo = { @@ -138,7 +138,7 @@ const AccessibilityInfo = { /** * Set accessibility focus to a react component. * - * See http://facebook.github.io/react-native/docs/accessibilityinfo.html#setaccessibilityfocus + * See https://reactnative.dev/docs/accessibilityinfo.html#setaccessibilityfocus */ setAccessibilityFocus: function(reactTag: number): void { UIManager.sendAccessibilityEvent( @@ -150,7 +150,7 @@ const AccessibilityInfo = { /** * Post a string to be announced by the screen reader. * - * See http://facebook.github.io/react-native/docs/accessibilityinfo.html#announceforaccessibility + * See https://reactnative.dev/docs/accessibilityinfo.html#announceforaccessibility */ announceForAccessibility: function(announcement: string): void { if (NativeAccessibilityInfo) { diff --git a/Libraries/Components/AccessibilityInfo/AccessibilityInfo.ios.js b/Libraries/Components/AccessibilityInfo/AccessibilityInfo.ios.js index 4627b70d2ae..c09b16d470f 100644 --- a/Libraries/Components/AccessibilityInfo/AccessibilityInfo.ios.js +++ b/Libraries/Components/AccessibilityInfo/AccessibilityInfo.ios.js @@ -46,7 +46,7 @@ const _subscriptions = new Map(); * well as to register to be notified when the state of the screen reader * changes. * - * See http://facebook.github.io/react-native/docs/accessibilityinfo.html + * See https://reactnative.dev/docs/accessibilityinfo.html */ const AccessibilityInfo = { /** @@ -55,7 +55,7 @@ const AccessibilityInfo = { * Returns a promise which resolves to a boolean. * The result is `true` when bold text is enabled and `false` otherwise. * - * See http://facebook.github.io/react-native/docs/accessibilityinfo.html#isBoldTextEnabled + * See https://reactnative.dev/docs/accessibilityinfo.html#isBoldTextEnabled */ isBoldTextEnabled: function(): Promise { return new Promise((resolve, reject) => { @@ -73,7 +73,7 @@ const AccessibilityInfo = { * Returns a promise which resolves to a boolean. * The result is `true` when grayscale is enabled and `false` otherwise. * - * See http://facebook.github.io/react-native/docs/accessibilityinfo.html#isGrayscaleEnabled + * See https://reactnative.dev/docs/accessibilityinfo.html#isGrayscaleEnabled */ isGrayscaleEnabled: function(): Promise { return new Promise((resolve, reject) => { @@ -91,7 +91,7 @@ const AccessibilityInfo = { * Returns a promise which resolves to a boolean. * The result is `true` when invert color is enabled and `false` otherwise. * - * See http://facebook.github.io/react-native/docs/accessibilityinfo.html#isInvertColorsEnabled + * See https://reactnative.dev/docs/accessibilityinfo.html#isInvertColorsEnabled */ isInvertColorsEnabled: function(): Promise { return new Promise((resolve, reject) => { @@ -109,7 +109,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 http://facebook.github.io/react-native/docs/accessibilityinfo.html#isReduceMotionEnabled + * See https://reactnative.dev/docs/accessibilityinfo.html#isReduceMotionEnabled */ isReduceMotionEnabled: function(): Promise { return new Promise((resolve, reject) => { @@ -127,7 +127,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 http://facebook.github.io/react-native/docs/accessibilityinfo.html#isReduceTransparencyEnabled + * See https://reactnative.dev/docs/accessibilityinfo.html#isReduceTransparencyEnabled */ isReduceTransparencyEnabled: function(): Promise { return new Promise((resolve, reject) => { @@ -148,7 +148,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 http://facebook.github.io/react-native/docs/accessibilityinfo.html#isScreenReaderEnabled + * See https://reactnative.dev/docs/accessibilityinfo.html#isScreenReaderEnabled */ isScreenReaderEnabled: function(): Promise { return new Promise((resolve, reject) => { @@ -201,7 +201,7 @@ const AccessibilityInfo = { * - `success`: A boolean indicating whether the announcement was * successfully made. * - * See http://facebook.github.io/react-native/docs/accessibilityinfo.html#addeventlistener + * See https://reactnative.dev/docs/accessibilityinfo.html#addeventlistener */ addEventListener: function( eventName: ChangeEventName, @@ -231,7 +231,7 @@ const AccessibilityInfo = { /** * Set accessibility focus to a react component. * - * See http://facebook.github.io/react-native/docs/accessibilityinfo.html#setaccessibilityfocus + * See https://reactnative.dev/docs/accessibilityinfo.html#setaccessibilityfocus */ setAccessibilityFocus: function(reactTag: number): void { if (NativeAccessibilityManager) { @@ -242,7 +242,7 @@ const AccessibilityInfo = { /** * Post a string to be announced by the screen reader. * - * See http://facebook.github.io/react-native/docs/accessibilityinfo.html#announceforaccessibility + * See https://reactnative.dev/docs/accessibilityinfo.html#announceforaccessibility */ announceForAccessibility: function(announcement: string): void { if (NativeAccessibilityManager) { @@ -253,7 +253,7 @@ const AccessibilityInfo = { /** * Remove an event handler. * - * See http://facebook.github.io/react-native/docs/accessibilityinfo.html#removeeventlistener + * See https://reactnative.dev/docs/accessibilityinfo.html#removeeventlistener */ removeEventListener: function( eventName: ChangeEventName, diff --git a/Libraries/Components/ActivityIndicator/ActivityIndicator.js b/Libraries/Components/ActivityIndicator/ActivityIndicator.js index 6026cf16737..0776f1b1961 100644 --- a/Libraries/Components/ActivityIndicator/ActivityIndicator.js +++ b/Libraries/Components/ActivityIndicator/ActivityIndicator.js @@ -30,7 +30,7 @@ type IOSProps = $ReadOnly<{| /** * Whether the indicator should hide when not animating (true by default). * - * See http://facebook.github.io/react-native/docs/activityindicator.html#hideswhenstopped + * See https://reactnative.dev/docs/activityindicator.html#hideswhenstopped */ hidesWhenStopped?: ?boolean, |}>; @@ -41,14 +41,14 @@ type Props = $ReadOnly<{| /** * Whether to show the indicator (true, the default) or hide it (false). * - * See http://facebook.github.io/react-native/docs/activityindicator.html#animating + * See https://reactnative.dev/docs/activityindicator.html#animating */ animating?: ?boolean, /** * The foreground color of the spinner (default is gray). * - * See http://facebook.github.io/react-native/docs/activityindicator.html#color + * See https://reactnative.dev/docs/activityindicator.html#color */ color?: ?string, @@ -56,7 +56,7 @@ type Props = $ReadOnly<{| * Size of the indicator (default is 'small'). * Passing a number to the size prop is only supported on Android. * - * See http://facebook.github.io/react-native/docs/activityindicator.html#size + * See https://reactnative.dev/docs/activityindicator.html#size */ size?: ?IndicatorSize, |}>; @@ -64,7 +64,7 @@ type Props = $ReadOnly<{| /** * Displays a circular loading indicator. * - * See http://facebook.github.io/react-native/docs/activityindicator.html + * See https://reactnative.dev/docs/activityindicator.html */ const ActivityIndicator = (props: Props, forwardedRef?: any) => { const {onLayout, style, size, ...restProps} = props; diff --git a/Libraries/Components/ActivityIndicator/ActivityIndicatorViewNativeComponent.js b/Libraries/Components/ActivityIndicator/ActivityIndicatorViewNativeComponent.js index a91460f31fe..37898d2607a 100644 --- a/Libraries/Components/ActivityIndicator/ActivityIndicatorViewNativeComponent.js +++ b/Libraries/Components/ActivityIndicator/ActivityIndicatorViewNativeComponent.js @@ -24,21 +24,21 @@ type NativeProps = $ReadOnly<{| /** * Whether the indicator should hide when not animating (true by default). * - * See http://facebook.github.io/react-native/docs/activityindicator.html#hideswhenstopped + * See https://reactnative.dev/docs/activityindicator.html#hideswhenstopped */ hidesWhenStopped?: WithDefault, /** * Whether to show the indicator (true, the default) or hide it (false). * - * See http://facebook.github.io/react-native/docs/activityindicator.html#animating + * See https://reactnative.dev/docs/activityindicator.html#animating */ animating?: WithDefault, /** * The foreground color of the spinner (default is gray). * - * See http://facebook.github.io/react-native/docs/activityindicator.html#color + * See https://reactnative.dev/docs/activityindicator.html#color */ color?: ?ColorValue, @@ -46,7 +46,7 @@ type NativeProps = $ReadOnly<{| * Size of the indicator (default is 'small'). * Passing a number to the size prop is only supported on Android. * - * See http://facebook.github.io/react-native/docs/activityindicator.html#size + * See https://reactnative.dev/docs/activityindicator.html#size */ size?: WithDefault<'small' | 'large', 'small'>, |}>; diff --git a/Libraries/Components/ScrollView/ScrollView.js b/Libraries/Components/ScrollView/ScrollView.js index fbdde3cabe5..1194c2c03bd 100644 --- a/Libraries/Components/ScrollView/ScrollView.js +++ b/Libraries/Components/ScrollView/ScrollView.js @@ -625,7 +625,7 @@ const standardVerticalContext: ContextType = Object.freeze({horizontal: false}); * view from becoming the responder. * * - * `` vs [``](/react-native/docs/flatlist.html) - which one to use? + * `` vs [``](https://reactnative.dev/docs/flatlist.html) - 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/View.js b/Libraries/Components/View/View.js index cba9b02a398..0fd0d938676 100644 --- a/Libraries/Components/View/View.js +++ b/Libraries/Components/View/View.js @@ -23,7 +23,7 @@ export type Props = ViewProps; * supports layout with flexbox, style, some touch handling, and accessibility * controls. * - * @see http://facebook.github.io/react-native/docs/view.html + * @see https://reactnative.dev/docs/view.html */ const View: React.AbstractComponent< ViewProps, diff --git a/Libraries/Components/View/ViewPropTypes.js b/Libraries/Components/View/ViewPropTypes.js index 70022b5aca9..5d3a888f77d 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 http://facebook.github.io/react-native/docs/view.html#onaccessibilitytap + * See https://reactnative.dev/docs/view.html#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 http://facebook.github.io/react-native/docs/view.html#onlayout + * See https://reactnative.dev/docs/view.html#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 http://facebook.github.io/react-native/docs/view.html#onmagictap + * See https://reactnative.dev/docs/view.html#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 http://facebook.github.io/react-native/docs/view.html#onaccessibilityescape + * See https://reactnative.dev/docs/view.html#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 http://facebook.github.io/react-native/docs/view.html#onmoveshouldsetresponder + * See https://reactnative.dev/docs/view.html#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 http://facebook.github.io/react-native/docs/view.html#onMoveShouldsetrespondercapture + * See https://reactnative.dev/docs/view.html#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 http://facebook.github.io/react-native/docs/view.html#onrespondergrant + * See https://reactnative.dev/docs/view.html#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 http://facebook.github.io/react-native/docs/view.html#onrespondermove + * See https://reactnative.dev/docs/view.html#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 http://facebook.github.io/react-native/docs/view.html#onresponderreject + * See https://reactnative.dev/docs/view.html#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 http://facebook.github.io/react-native/docs/view.html#onresponderrelease + * See https://reactnative.dev/docs/view.html#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 http://facebook.github.io/react-native/docs/view.html#onresponderterminate + * See https://reactnative.dev/docs/view.html#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 http://facebook.github.io/react-native/docs/view.html#onresponderterminationrequest + * See https://reactnative.dev/docs/view.html#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 http://facebook.github.io/react-native/docs/view.html#onstartshouldsetresponder + * See https://reactnative.dev/docs/view.html#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 http://facebook.github.io/react-native/docs/view.html#onstartshouldsetrespondercapture + * See https://reactnative.dev/docs/view.html#onstartshouldsetrespondercapture */ onStartShouldSetResponderCapture?: ?(e: PressEvent) => boolean, |}>; @@ -244,7 +244,7 @@ type AndroidViewProps = $ReadOnly<{| * * @platform android * - * See http://facebook.github.io/react-native/docs/view.html#rendertohardwaretextureandroid + * See https://reactnative.dev/docs/view.html#rendertohardwaretextureandroid */ renderToHardwareTextureAndroid?: ?boolean, @@ -256,7 +256,7 @@ type AndroidViewProps = $ReadOnly<{| * * @platform android * - * See http://facebook.github.io/react-native/docs/view.html#collapsable + * See https://reactnative.dev/docs/view.html#collapsable */ collapsable?: ?boolean, @@ -266,7 +266,7 @@ type AndroidViewProps = $ReadOnly<{| * * @platform android * - * See http://facebook.github.io/react-native/docs/view.html#needsoffscreenalphacompositing + * See https://reactnative.dev/docs/view.html#needsoffscreenalphacompositing */ needsOffscreenAlphaCompositing?: ?boolean, @@ -276,7 +276,7 @@ type AndroidViewProps = $ReadOnly<{| * * @platform android * - * See http://facebook.github.io/react-native/docs/view.html#accessibilityliveregion + * See https://reactnative.dev/docs/view.html#accessibilityliveregion */ accessibilityLiveRegion?: ?('none' | 'polite' | 'assertive'), @@ -287,7 +287,7 @@ type AndroidViewProps = $ReadOnly<{| * * @platform android * - * See http://facebook.github.io/react-native/docs/view.html#importantforaccessibility + * See https://reactnative.dev/docs/view.html#importantforaccessibility */ importantForAccessibility?: ?('auto' | 'yes' | 'no' | 'no-hide-descendants'), @@ -363,7 +363,7 @@ type IOSViewProps = $ReadOnly<{| * * @platform ios * - * See http://facebook.github.io/react-native/docs/view.html#accessibilityviewismodal + * See https://reactnative.dev/docs/view.html#accessibilityviewismodal */ accessibilityViewIsModal?: ?boolean, @@ -373,7 +373,7 @@ type IOSViewProps = $ReadOnly<{| * * @platform ios * - * See http://facebook.github.io/react-native/docs/view.html#accessibilityElementsHidden + * See https://reactnative.dev/docs/view.html#accessibilityElementsHidden */ accessibilityElementsHidden?: ?boolean, @@ -382,7 +382,7 @@ type IOSViewProps = $ReadOnly<{| * * @platform ios * - * See http://facebook.github.io/react-native/docs/view.html#shouldrasterizeios + * See https://reactnative.dev/docs/view.html#shouldrasterizeios */ shouldRasterizeIOS?: ?boolean, |}>; @@ -403,7 +403,7 @@ export type ViewProps = $ReadOnly<{| * When `true`, indicates that the view is an accessibility element. * By default, all the touchable elements are accessible. * - * See http://facebook.github.io/react-native/docs/view.html#accessible + * See https://reactnative.dev/docs/view.html#accessible */ accessible?: ?boolean, @@ -412,7 +412,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 http://facebook.github.io/react-native/docs/view.html#accessibilitylabel + * See https://reactnative.dev/docs/view.html#accessibilitylabel */ accessibilityLabel?: ?Stringish, @@ -422,7 +422,7 @@ export type ViewProps = $ReadOnly<{| * accessibility label. * * - * See http://facebook.github.io/react-native/docs/view.html#accessibilityHint + * See https://reactnative.dev/docs/view.html#accessibilityHint */ accessibilityHint?: ?Stringish, @@ -448,7 +448,7 @@ export type ViewProps = $ReadOnly<{| * * > This disables the 'layout-only view removal' optimization for this view! * - * See http://facebook.github.io/react-native/docs/view.html#testid + * See https://reactnative.dev/docs/view.html#testid */ testID?: ?string, @@ -457,7 +457,7 @@ export type ViewProps = $ReadOnly<{| * * > This disables the 'layout-only view removal' optimization for this view! * - * See http://facebook.github.io/react-native/docs/view.html#nativeid + * See https://reactnative.dev/docs/view.html#nativeid */ nativeID?: ?string, @@ -470,14 +470,14 @@ export type ViewProps = $ReadOnly<{| * > of sibling views always takes precedence if a touch hits two overlapping * > views. * - * See http://facebook.github.io/react-native/docs/view.html#hitslop + * See https://reactnative.dev/docs/view.html#hitslop */ hitSlop?: ?EdgeInsetsProp, /** * Controls whether the `View` can be the target of touch events. * - * See http://facebook.github.io/react-native/docs/view.html#pointerevents + * See https://reactnative.dev/docs/view.html#pointerevents */ pointerEvents?: ?('auto' | 'box-none' | 'box-only' | 'none'), @@ -489,7 +489,7 @@ export type ViewProps = $ReadOnly<{| * subviews must also have `overflow: hidden`, as should the containing view * (or one of its superviews). * - * See http://facebook.github.io/react-native/docs/view.html#removeclippedsubviews + * See https://reactnative.dev/docs/view.html#removeclippedsubviews */ removeClippedSubviews?: ?boolean, |}>; diff --git a/Libraries/DeprecatedPropTypes/DeprecatedTextPropTypes.js b/Libraries/DeprecatedPropTypes/DeprecatedTextPropTypes.js index f053e8e283d..f14635ab3a8 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://facebook.github.io/react-native/docs/text.html#ellipsizemode + * See https://reactnative.dev/docs/text.html#ellipsizemode */ ellipsizeMode: (PropTypes.oneOf([ 'head', @@ -38,13 +38,13 @@ module.exports = { /** * Used to truncate the text with an ellipsis. * - * See https://facebook.github.io/react-native/docs/text.html#numberoflines + * See https://reactnative.dev/docs/text.html#numberoflines */ numberOfLines: PropTypes.number, /** * Set text break strategy on Android. * - * See https://facebook.github.io/react-native/docs/text.html#textbreakstrategy + * See https://reactnative.dev/docs/text.html#textbreakstrategy */ textBreakStrategy: (PropTypes.oneOf([ 'simple', @@ -54,63 +54,63 @@ module.exports = { /** * Invoked on mount and layout changes. * - * See https://facebook.github.io/react-native/docs/text.html#onlayout + * See https://reactnative.dev/docs/text.html#onlayout */ onLayout: PropTypes.func, /** * This function is called on press. * - * See https://facebook.github.io/react-native/docs/text.html#onpress + * See https://reactnative.dev/docs/text.html#onpress */ onPress: PropTypes.func, /** * This function is called on long press. * - * See https://facebook.github.io/react-native/docs/text.html#onlongpress + * See https://reactnative.dev/docs/text.html#onlongpress */ onLongPress: PropTypes.func, /** * Defines how far your touch may move off of the button, before * deactivating the button. * - * See https://facebook.github.io/react-native/docs/text.html#pressretentionoffset + * See https://reactnative.dev/docs/text.html#pressretentionoffset */ pressRetentionOffset: DeprecatedEdgeInsetsPropType, /** * Lets the user select text. * - * See https://facebook.github.io/react-native/docs/text.html#selectable + * See https://reactnative.dev/docs/text.html#selectable */ selectable: PropTypes.bool, /** * The highlight color of the text. * - * See https://facebook.github.io/react-native/docs/text.html#selectioncolor + * See https://reactnative.dev/docs/text.html#selectioncolor */ selectionColor: DeprecatedColorPropType, /** * When `true`, no visual change is made when text is pressed down. * - * See https://facebook.github.io/react-native/docs/text.html#supperhighlighting + * See https://reactnative.dev/docs/text.html#supperhighlighting */ suppressHighlighting: PropTypes.bool, style: stylePropType, /** * Used to locate this view in end-to-end tests. * - * See https://facebook.github.io/react-native/docs/text.html#testid + * See https://reactnative.dev/docs/text.html#testid */ testID: PropTypes.string, /** * Used to locate this view from native code. * - * See https://facebook.github.io/react-native/docs/text.html#nativeid + * See https://reactnative.dev/docs/text.html#nativeid */ nativeID: PropTypes.string, /** * Whether fonts should scale to respect Text Size accessibility settings. * - * See https://facebook.github.io/react-native/docs/text.html#allowfontscaling + * See https://reactnative.dev/docs/text.html#allowfontscaling */ allowFontScaling: PropTypes.bool, /** @@ -124,31 +124,31 @@ module.exports = { /** * Indicates whether the view is an accessibility element. * - * See https://facebook.github.io/react-native/docs/text.html#accessible + * See https://reactnative.dev/docs/text.html#accessible */ accessible: PropTypes.bool, /** * Whether font should be scaled down automatically. * - * See https://facebook.github.io/react-native/docs/text.html#adjustsfontsizetofit + * See https://reactnative.dev/docs/text.html#adjustsfontsizetofit */ adjustsFontSizeToFit: PropTypes.bool, /** * Smallest possible scale a font can reach. * - * See https://facebook.github.io/react-native/docs/text.html#minimumfontscale + * See https://reactnative.dev/docs/text.html#minimumfontscale */ minimumFontScale: PropTypes.number, /** * Specifies the disabled state of the text view for testing purposes. * - * See https://facebook.github.io/react-native/docs/text.html#disabled + * See https://reactnative.dev/docs/text.html#disabled */ disabled: PropTypes.bool, /** * Determines the types of data converted to clickable URLs in text. * - * See https://facebook.github.io/react-native/docs/text.html#dataDetectorType + * See https://reactnative.dev/docs/text.html#dataDetectorType */ dataDetectorType: (PropTypes.oneOf( DataDetectorTypes, diff --git a/Libraries/DeprecatedPropTypes/DeprecatedViewPropTypes.js b/Libraries/DeprecatedPropTypes/DeprecatedViewPropTypes.js index 6268a7f3fae..c008361311a 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 http://facebook.github.io/react-native/docs/view.html#accessible + * See https://reactnative.dev/docs/view.html#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 http://facebook.github.io/react-native/docs/view.html#accessibilitylabel + * See https://reactnative.dev/docs/view.html#accessibilitylabel */ accessibilityLabel: PropTypes.node, @@ -45,7 +45,7 @@ module.exports = { * accessibility label. * * - * See http://facebook.github.io/react-native/docs/view.html#accessibilityHint + * See https://reactnative.dev/docs/view.html#accessibilityHint */ accessibilityHint: PropTypes.string, @@ -108,7 +108,7 @@ module.exports = { * * @platform android * - * See http://facebook.github.io/react-native/docs/view.html#accessibilityliveregion + * See https://reactnative.dev/docs/view.html#accessibilityliveregion */ accessibilityLiveRegion: (PropTypes.oneOf([ 'none', @@ -123,7 +123,7 @@ module.exports = { * * @platform android * - * See http://facebook.github.io/react-native/docs/view.html#importantforaccessibility + * See https://reactnative.dev/docs/view.html#importantforaccessibility */ importantForAccessibility: (PropTypes.oneOf([ 'auto', @@ -139,7 +139,7 @@ module.exports = { * * @platform ios * - * See http://facebook.github.io/react-native/docs/view.html#accessibilityviewismodal + * See https://reactnative.dev/docs/view.html#accessibilityviewismodal */ accessibilityViewIsModal: PropTypes.bool, @@ -149,7 +149,7 @@ module.exports = { * * @platform ios * - * See http://facebook.github.io/react-native/docs/view.html#accessibilityElementsHidden + * See https://reactnative.dev/docs/view.html#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 http://facebook.github.io/react-native/docs/view.html#onaccessibilitytap + * See https://reactnative.dev/docs/view.html#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 http://facebook.github.io/react-native/docs/view.html#onmagictap + * See https://reactnative.dev/docs/view.html#onmagictap */ onMagicTap: PropTypes.func, @@ -182,7 +182,7 @@ module.exports = { * * > This disables the 'layout-only view removal' optimization for this view! * - * See http://facebook.github.io/react-native/docs/view.html#testid + * See https://reactnative.dev/docs/view.html#testid */ testID: PropTypes.string, @@ -191,7 +191,7 @@ module.exports = { * * > This disables the 'layout-only view removal' optimization for this view! * - * See http://facebook.github.io/react-native/docs/view.html#nativeid + * See https://reactnative.dev/docs/view.html#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 http://facebook.github.io/react-native/docs/view.html#onrespondergrant + * See https://reactnative.dev/docs/view.html#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 http://facebook.github.io/react-native/docs/view.html#onrespondermove + * See https://reactnative.dev/docs/view.html#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 http://facebook.github.io/react-native/docs/view.html#onresponderreject + * See https://reactnative.dev/docs/view.html#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 http://facebook.github.io/react-native/docs/view.html#onresponderrelease + * See https://reactnative.dev/docs/view.html#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 http://facebook.github.io/react-native/docs/view.html#onresponderterminate + * See https://reactnative.dev/docs/view.html#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 http://facebook.github.io/react-native/docs/view.html#onresponderterminationrequest + * See https://reactnative.dev/docs/view.html#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 http://facebook.github.io/react-native/docs/view.html#onstartshouldsetresponder + * See https://reactnative.dev/docs/view.html#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 http://facebook.github.io/react-native/docs/view.html#onstartshouldsetrespondercapture + * See https://reactnative.dev/docs/view.html#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 http://facebook.github.io/react-native/docs/view.html#onmoveshouldsetresponder + * See https://reactnative.dev/docs/view.html#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 http://facebook.github.io/react-native/docs/view.html#onMoveShouldsetrespondercapture + * See https://reactnative.dev/docs/view.html#onMoveShouldsetrespondercapture */ onMoveShouldSetResponderCapture: PropTypes.func, @@ -319,7 +319,7 @@ module.exports = { * > of sibling views always takes precedence if a touch hits two overlapping * > views. * - * See http://facebook.github.io/react-native/docs/view.html#hitslop + * See https://reactnative.dev/docs/view.html#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 http://facebook.github.io/react-native/docs/view.html#onlayout + * See https://reactnative.dev/docs/view.html#onlayout */ onLayout: PropTypes.func, /** * Controls whether the `View` can be the target of touch events. * - * See http://facebook.github.io/react-native/docs/view.html#pointerevents + * See https://reactnative.dev/docs/view.html#pointerevents */ pointerEvents: (PropTypes.oneOf([ 'box-none', @@ -349,7 +349,7 @@ module.exports = { ]): React$PropType$Primitive<'box-none' | 'none' | 'box-only' | 'auto'>), /** - * See http://facebook.github.io/react-native/docs/style.html + * See https://reactnative.dev/docs/style.html */ 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 http://facebook.github.io/react-native/docs/view.html#removeclippedsubviews + * See https://reactnative.dev/docs/view.html#removeclippedsubviews */ removeClippedSubviews: PropTypes.bool, @@ -371,7 +371,7 @@ module.exports = { * * @platform android * - * See http://facebook.github.io/react-native/docs/view.html#rendertohardwaretextureandroid + * See https://reactnative.dev/docs/view.html#rendertohardwaretextureandroid */ renderToHardwareTextureAndroid: PropTypes.bool, @@ -380,7 +380,7 @@ module.exports = { * * @platform ios * - * See http://facebook.github.io/react-native/docs/view.html#shouldrasterizeios + * See https://reactnative.dev/docs/view.html#shouldrasterizeios */ shouldRasterizeIOS: PropTypes.bool, @@ -392,7 +392,7 @@ module.exports = { * * @platform android * - * See http://facebook.github.io/react-native/docs/view.html#collapsable + * See https://reactnative.dev/docs/view.html#collapsable */ collapsable: PropTypes.bool, @@ -402,7 +402,7 @@ module.exports = { * * @platform android * - * See http://facebook.github.io/react-native/docs/view.html#needsoffscreenalphacompositing + * See https://reactnative.dev/docs/view.html#needsoffscreenalphacompositing */ needsOffscreenAlphaCompositing: PropTypes.bool, }; diff --git a/Libraries/FBLazyVector/FBLazyVector.podspec b/Libraries/FBLazyVector/FBLazyVector.podspec index b4645e1d49b..439c326f9de 100644 --- a/Libraries/FBLazyVector/FBLazyVector.podspec +++ b/Libraries/FBLazyVector/FBLazyVector.podspec @@ -20,7 +20,7 @@ Pod::Spec.new do |s| s.name = "FBLazyVector" s.version = version s.summary = "-" # TODO - s.homepage = "http://facebook.github.io/react-native/" + s.homepage = "https://reactnative.dev/" s.license = package["license"] s.author = "Facebook, Inc. and its affiliates" s.platforms = { :ios => "10.0", :tvos => "10.0" } diff --git a/Libraries/FBReactNativeSpec/FBReactNativeSpec.podspec b/Libraries/FBReactNativeSpec/FBReactNativeSpec.podspec index 5e90f021119..202ca894070 100644 --- a/Libraries/FBReactNativeSpec/FBReactNativeSpec.podspec +++ b/Libraries/FBReactNativeSpec/FBReactNativeSpec.podspec @@ -23,7 +23,7 @@ Pod::Spec.new do |s| s.name = "FBReactNativeSpec" s.version = version s.summary = "-" # TODO - s.homepage = "http://facebook.github.io/react-native/" + s.homepage = "https://reactnative.dev/" s.license = package["license"] s.author = "Facebook, Inc. and its affiliates" s.platforms = { :ios => "10.0", :tvos => "10.0" } diff --git a/Libraries/Image/Image.android.js b/Libraries/Image/Image.android.js index 309879cd5d7..a445ebcebc5 100644 --- a/Libraries/Image/Image.android.js +++ b/Libraries/Image/Image.android.js @@ -40,7 +40,7 @@ const ImageProps = { DeprecatedImageStylePropTypes, ): ReactPropsCheckType), /** - * See https://facebook.github.io/react-native/docs/image.html#source + * See https://reactnative.dev/docs/image.html#source */ source: (PropTypes.oneOfType([ PropTypes.shape({ @@ -76,15 +76,15 @@ const ImageProps = { /** * blurRadius: the blur radius of the blur filter added to the image * - * See https://facebook.github.io/react-native/docs/image.html#blurradius + * See https://reactnative.dev/docs/image.html#blurradius */ blurRadius: PropTypes.number, /** - * See https://facebook.github.io/react-native/docs/image.html#defaultsource + * See https://reactnative.dev/docs/image.html#defaultsource */ defaultSource: PropTypes.number, /** - * See https://facebook.github.io/react-native/docs/image.html#loadingindicatorsource + * See https://reactnative.dev/docs/image.html#loadingindicatorsource */ loadingIndicatorSource: (PropTypes.oneOfType([ PropTypes.shape({ @@ -119,7 +119,7 @@ const ImageProps = { * 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://facebook.github.io/react-native/docs/image.html#resizemethod + * See https://reactnative.dev/docs/image.html#resizemethod */ resizeMethod: (PropTypes.oneOf([ 'auto', @@ -130,7 +130,7 @@ const ImageProps = { * Determines how to resize the image when the frame doesn't match the raw * image dimensions. * - * See https://facebook.github.io/react-native/docs/image.html#resizemode + * See https://reactnative.dev/docs/image.html#resizemode */ resizeMode: (PropTypes.oneOf([ 'cover', @@ -146,7 +146,7 @@ const ImageProps = { /** * Retrieve the width and height (in pixels) of an image prior to displaying it * - * See https://facebook.github.io/react-native/docs/image.html#getsize + * See https://reactnative.dev/docs/image.html#getsize */ function getSize( url: string, @@ -169,7 +169,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://facebook.github.io/react-native/docs/image.html#getsizewithheaders + * See https://reactnative.dev/docs/image.html#getsizewithheaders */ function getSizeWithHeaders( url: string, @@ -202,7 +202,7 @@ function abortPrefetch(requestId: number) { /** * Perform cache interrogation. * - * See https://facebook.github.io/react-native/docs/image.html#querycache + * See https://reactnative.dev/docs/image.html#querycache */ async function queryCache( urls: Array, @@ -225,7 +225,7 @@ type ImageComponentStatics = $ReadOnly<{| * including network images, static resources, temporary local images, and * images from local disk, such as the camera roll. * - * See https://facebook.github.io/react-native/docs/image.html + * See https://reactnative.dev/docs/image.html */ let Image = (props: ImagePropsType, forwardedRef) => { let source = resolveAssetSource(props.source); @@ -311,7 +311,7 @@ Image.displayName = 'Image'; /** * Retrieve the width and height (in pixels) of an image prior to displaying it * - * See https://facebook.github.io/react-native/docs/image.html#getsize + * See https://reactnative.dev/docs/image.html#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 @@ -322,7 +322,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://facebook.github.io/react-native/docs/image.html#getsizewithheaders + * See https://reactnative.dev/docs/image.html#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 @@ -333,7 +333,7 @@ Image.getSizeWithHeaders = getSizeWithHeaders; * Prefetches a remote image for later use by downloading it to the disk * cache * - * See https://facebook.github.io/react-native/docs/image.html#prefetch + * See https://reactnative.dev/docs/image.html#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 @@ -343,7 +343,7 @@ Image.prefetch = prefetch; /** * Abort prefetch request. * - * See https://facebook.github.io/react-native/docs/image.html#abortprefetch + * See https://reactnative.dev/docs/image.html#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 @@ -353,7 +353,7 @@ Image.abortPrefetch = abortPrefetch; /** * Perform cache interrogation. * - * See https://facebook.github.io/react-native/docs/image.html#querycache + * See https://reactnative.dev/docs/image.html#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 @@ -363,7 +363,7 @@ Image.queryCache = queryCache; /** * Resolves an asset reference into an object. * - * See https://facebook.github.io/react-native/docs/image.html#resolveassetsource + * See https://reactnative.dev/docs/image.html#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 78a795cb1fd..22b28309076 100644 --- a/Libraries/Image/Image.ios.js +++ b/Libraries/Image/Image.ios.js @@ -82,7 +82,7 @@ type ImageComponentStatics = $ReadOnly<{| * including network images, static resources, temporary local images, and * images from local disk, such as the camera roll. * - * See https://facebook.github.io/react-native/docs/image.html + * See https://reactnative.dev/docs/image.html */ let Image = (props: ImagePropsType, forwardedRef) => { const source = resolveAssetSource(props.source) || { @@ -144,7 +144,7 @@ Image.displayName = 'Image'; /** * Retrieve the width and height (in pixels) of an image prior to displaying it. * - * See https://facebook.github.io/react-native/docs/image.html#getsize + * See https://reactnative.dev/docs/image.html#getsize */ /* $FlowFixMe(>=0.89.0 site=react_native_ios_fb) This comment suppresses an * error found when Flow v0.89 was deployed. To see the error, delete this @@ -155,7 +155,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://facebook.github.io/react-native/docs/image.html#getsizewithheaders + * See https://reactnative.dev/docs/image.html#getsizewithheaders */ /* $FlowFixMe(>=0.89.0 site=react_native_ios_fb) This comment suppresses an * error found when Flow v0.89 was deployed. To see the error, delete this @@ -166,7 +166,7 @@ Image.getSizeWithHeaders = getSizeWithHeaders; * Prefetches a remote image for later use by downloading it to the disk * cache. * - * See https://facebook.github.io/react-native/docs/image.html#prefetch + * See https://reactnative.dev/docs/image.html#prefetch */ /* $FlowFixMe(>=0.89.0 site=react_native_ios_fb) This comment suppresses an * error found when Flow v0.89 was deployed. To see the error, delete this @@ -176,7 +176,7 @@ Image.prefetch = prefetch; /** * Performs cache interrogation. * - * See https://facebook.github.io/react-native/docs/image.html#querycache + * See https://reactnative.dev/docs/image.html#querycache */ /* $FlowFixMe(>=0.89.0 site=react_native_ios_fb) This comment suppresses an * error found when Flow v0.89 was deployed. To see the error, delete this @@ -186,7 +186,7 @@ Image.queryCache = queryCache; /** * Resolves an asset reference into an object. * - * See https://facebook.github.io/react-native/docs/image.html#resolveassetsource + * See https://reactnative.dev/docs/image.html#resolveassetsource */ /* $FlowFixMe(>=0.89.0 site=react_native_ios_fb) This comment suppresses an * error found when Flow v0.89 was deployed. To see the error, delete this diff --git a/Libraries/Image/ImageBackground.js b/Libraries/Image/ImageBackground.js index d9c849c5270..b4b6223b846 100644 --- a/Libraries/Image/ImageBackground.js +++ b/Libraries/Image/ImageBackground.js @@ -27,7 +27,7 @@ const View = require('../Components/View/View'); * return ( * * React * diff --git a/Libraries/Image/ImageProps.js b/Libraries/Image/ImageProps.js index b3098a814de..e676bc4bd4c 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://facebook.github.io/react-native/docs/image.html#defaultsource + * See https://reactnative.dev/docs/image.html#defaultsource */ defaultSource?: ?ImageSource, /** * Invoked when a partial load of the image is complete. * - * See https://facebook.github.io/react-native/docs/image.html#onpartialload + * See https://reactnative.dev/docs/image.html#onpartialload */ onPartialLoad?: ?() => void, /** * Invoked on download progress with `{nativeEvent: {loaded, total}}`. * - * See https://facebook.github.io/react-native/docs/image.html#onprogress + * See https://reactnative.dev/docs/image.html#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://facebook.github.io/react-native/docs/image.html#accessible + * See https://reactnative.dev/docs/image.html#accessible */ accessible?: ?boolean, @@ -73,26 +73,26 @@ export type ImageProps = {| * The text that's read by the screen reader when the user interacts with * the image. * - * See https://facebook.github.io/react-native/docs/image.html#accessibilitylabel + * See https://reactnative.dev/docs/image.html#accessibilitylabel */ accessibilityLabel?: ?Stringish, /** * blurRadius: the blur radius of the blur filter added to the image * - * See https://facebook.github.io/react-native/docs/image.html#blurradius + * See https://reactnative.dev/docs/image.html#blurradius */ blurRadius?: ?number, /** - * See https://facebook.github.io/react-native/docs/image.html#capinsets + * See https://reactnative.dev/docs/image.html#capinsets */ capInsets?: ?EdgeInsetsProp, /** * Invoked on load error with `{nativeEvent: {error}}`. * - * See https://facebook.github.io/react-native/docs/image.html#onerror + * See https://reactnative.dev/docs/image.html#onerror */ onError?: ?( event: SyntheticEvent< @@ -106,7 +106,7 @@ export type ImageProps = {| * Invoked on mount and layout changes with * `{nativeEvent: {layout: {x, y, width, height}}}`. * - * See https://facebook.github.io/react-native/docs/image.html#onlayout + * See https://reactnative.dev/docs/image.html#onlayout */ onLayout?: ?(event: LayoutEvent) => mixed, @@ -114,38 +114,38 @@ export type ImageProps = {| /** * Invoked when load completes successfully. * - * See https://facebook.github.io/react-native/docs/image.html#onload + * See https://reactnative.dev/docs/image.html#onload */ onLoad?: ?(event: ImageLoadEvent) => void, /** * Invoked when load either succeeds or fails. * - * See https://facebook.github.io/react-native/docs/image.html#onloadend + * See https://reactnative.dev/docs/image.html#onloadend */ onLoadEnd?: ?() => void, /** * Invoked on load start. * - * See https://facebook.github.io/react-native/docs/image.html#onloadstart + * See https://reactnative.dev/docs/image.html#onloadstart */ onLoadStart?: ?() => void, /** - * See https://facebook.github.io/react-native/docs/image.html#resizemethod + * See https://reactnative.dev/docs/image.html#resizemethod */ resizeMethod?: ?('auto' | 'resize' | 'scale'), /** * The image source (either a remote URL or a local file resource). * - * See https://facebook.github.io/react-native/docs/image.html#source + * See https://reactnative.dev/docs/image.html#source */ source?: ?ImageSource, /** - * See https://facebook.github.io/react-native/docs/image.html#style + * See https://reactnative.dev/docs/image.html#style */ style?: ?ImageStyleProp, @@ -157,7 +157,7 @@ export type ImageProps = {| * Determines how to resize the image when the frame doesn't match the raw * image dimensions. * - * See https://facebook.github.io/react-native/docs/image.html#resizemode + * See https://reactnative.dev/docs/image.html#resizemode */ resizeMode?: ?('cover' | 'contain' | 'stretch' | 'repeat' | 'center'), @@ -165,7 +165,7 @@ export type ImageProps = {| * A unique identifier for this element to be used in UI Automation * testing scripts. * - * See https://facebook.github.io/react-native/docs/image.html#testid + * See https://reactnative.dev/docs/image.html#testid */ testID?: ?string, diff --git a/Libraries/Image/React-RCTImage.podspec b/Libraries/Image/React-RCTImage.podspec index dc62f223186..1ff37192769 100644 --- a/Libraries/Image/React-RCTImage.podspec +++ b/Libraries/Image/React-RCTImage.podspec @@ -23,8 +23,8 @@ Pod::Spec.new do |s| s.name = "React-RCTImage" s.version = version s.summary = "A React component for displaying different types of images." - s.homepage = "http://facebook.github.io/react-native/" - s.documentation_url = "https://facebook.github.io/react-native/docs/image" + s.homepage = "https://reactnative.dev/" + s.documentation_url = "https://reactnative.dev/docs/image" s.license = package["license"] s.author = "Facebook, Inc. and its affiliates" s.platforms = { :ios => "10.0", :tvos => "10.0" } diff --git a/Libraries/Image/nativeImageSource.js b/Libraries/Image/nativeImageSource.js index 3c07014f370..eaf3812d9c6 100644 --- a/Libraries/Image/nativeImageSource.js +++ b/Libraries/Image/nativeImageSource.js @@ -20,7 +20,7 @@ type NativeImageSourceSpec = $ReadOnly<{| default?: string, // For more details on width and height, see - // http://facebook.github.io/react-native/docs/images.html#why-not-automatically-size-everything + // https://reactnative.dev/docs/images.html#why-not-automatically-size-everything height: number, width: number, |}>; @@ -38,7 +38,7 @@ type NativeImageSourceSpec = $ReadOnly<{| * automates measurements and allows adding new images without rebuilding the * native app. For more details visit: * - * http://facebook.github.io/react-native/docs/images.html + * https://reactnative.dev/docs/images.html * */ function nativeImageSource(spec: NativeImageSourceSpec): ImageURISource { diff --git a/Libraries/Linking/Linking.js b/Libraries/Linking/Linking.js index 8c7dfa9b0c0..dd6fc76f152 100644 --- a/Libraries/Linking/Linking.js +++ b/Libraries/Linking/Linking.js @@ -22,7 +22,7 @@ import NativeLinking from './NativeLinking'; * `Linking` gives you a general interface to interact with both incoming * and outgoing app links. * - * See https://facebook.github.io/react-native/docs/linking.html + * See https://reactnative.dev/docs/linking.html */ class Linking extends NativeEventEmitter { constructor() { @@ -33,7 +33,7 @@ class Linking extends NativeEventEmitter { * Add a handler to Linking changes by listening to the `url` event type * and providing the handler * - * See https://facebook.github.io/react-native/docs/linking.html#addeventlistener + * See https://reactnative.dev/docs/linking.html#addeventlistener */ addEventListener(type: string, handler: Function) { this.addListener(type, handler); @@ -42,7 +42,7 @@ class Linking extends NativeEventEmitter { /** * Remove a handler by passing the `url` event type and the handler. * - * See https://facebook.github.io/react-native/docs/linking.html#removeeventlistener + * See https://reactnative.dev/docs/linking.html#removeeventlistener */ removeEventListener(type: string, handler: Function) { this.removeListener(type, handler); @@ -51,7 +51,7 @@ class Linking extends NativeEventEmitter { /** * Try to open the given `url` with any of the installed apps. * - * See https://facebook.github.io/react-native/docs/linking.html#openurl + * See https://reactnative.dev/docs/linking.html#openurl */ openURL(url: string): Promise { this._validateURL(url); @@ -61,7 +61,7 @@ class Linking extends NativeEventEmitter { /** * Determine whether or not an installed app can handle a given URL. * - * See https://facebook.github.io/react-native/docs/linking.html#canopenurl + * See https://reactnative.dev/docs/linking.html#canopenurl */ canOpenURL(url: string): Promise { this._validateURL(url); @@ -71,7 +71,7 @@ class Linking extends NativeEventEmitter { /** * Open app settings. * - * See https://facebook.github.io/react-native/docs/linking.html#opensettings + * See https://reactnative.dev/docs/linking.html#opensettings */ openSettings(): Promise { return NativeLinking.openSettings(); @@ -81,7 +81,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://facebook.github.io/react-native/docs/linking.html#getinitialurl + * See https://reactnative.dev/docs/linking.html#getinitialurl */ getInitialURL(): Promise { return Platform.OS === 'android' @@ -96,7 +96,7 @@ class Linking extends NativeEventEmitter { * * @platform android * - * See https://facebook.github.io/react-native/docs/linking.html#sendintent + * See https://reactnative.dev/docs/linking.html#sendintent */ sendIntent( action: string, diff --git a/Libraries/LinkingIOS/React-RCTLinking.podspec b/Libraries/LinkingIOS/React-RCTLinking.podspec index 9746e9fd50c..7f71490a818 100644 --- a/Libraries/LinkingIOS/React-RCTLinking.podspec +++ b/Libraries/LinkingIOS/React-RCTLinking.podspec @@ -23,8 +23,8 @@ Pod::Spec.new do |s| s.name = "React-RCTLinking" s.version = version s.summary = "A general interface to interact with both incoming and outgoing app links." - s.homepage = "http://facebook.github.io/react-native/" - s.documentation_url = "https://facebook.github.io/react-native/docs/linking" + s.homepage = "https://reactnative.dev/" + s.documentation_url = "https://reactnative.dev/docs/linking" s.license = package["license"] s.author = "Facebook, Inc. and its affiliates" s.platforms = { :ios => "10.0", :tvos => "10.0" } diff --git a/Libraries/Lists/SectionList.js b/Libraries/Lists/SectionList.js index 52da28685c1..0f20fa7ed93 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 [``](/react-native/docs/flatlist.html). + * The actual data to render, akin to the `data` prop in [``](https://reactnative.dev/docs/flatlist.html). * * General shape: * @@ -134,7 +134,7 @@ type DefaultProps = typeof defaultProps; * - Scroll loading. * * If you don't need section support and want a simpler interface, use - * [``](/react-native/docs/flatlist.html). + * [``](https://reactnative.dev/docs/flatlist.html). * * Simple Examples: * diff --git a/Libraries/Lists/VirtualizedList.js b/Libraries/Lists/VirtualizedList.js index 26638924d79..49b5aa29753 100644 --- a/Libraries/Lists/VirtualizedList.js +++ b/Libraries/Lists/VirtualizedList.js @@ -349,8 +349,8 @@ type ListDebugInfo = { }; /** - * Base implementation for the more convenient [``](/react-native/docs/flatlist.html) - * and [``](/react-native/docs/sectionlist.html) components, which are also better + * Base implementation for the more convenient [``](https://reactnative.dev/docs/flatlist.html) + * and [``](https://reactnative.dev/docs/sectionlist.html) 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 c01cdd8dbc9..c588ec5b6ee 100644 --- a/Libraries/Modal/Modal.js +++ b/Libraries/Modal/Modal.js @@ -25,7 +25,7 @@ import RCTModalHostView from './RCTModalHostViewNativeComponent'; /** * The Modal component is a simple way to present content above an enclosing view. * - * See https://facebook.github.io/react-native/docs/modal.html + * See https://reactnative.dev/docs/modal.html */ // In order to route onDismiss callbacks, we need to uniquely identifier each @@ -44,14 +44,14 @@ export type Props = $ReadOnly<{| /** * The `animationType` prop controls how the modal animates. * - * See https://facebook.github.io/react-native/docs/modal.html#animationtype + * See https://reactnative.dev/docs/modal.html#animationtype */ animationType?: ?('none' | 'slide' | 'fade'), /** * The `presentationStyle` prop controls how the modal appears. * - * See https://facebook.github.io/react-native/docs/modal.html#presentationstyle + * See https://reactnative.dev/docs/modal.html#presentationstyle */ presentationStyle?: ?( | 'fullScreen' @@ -64,7 +64,7 @@ export type Props = $ReadOnly<{| * The `transparent` prop determines whether your modal will fill the * entire view. * - * See https://facebook.github.io/react-native/docs/modal.html#transparent + * See https://reactnative.dev/docs/modal.html#transparent */ transparent?: ?boolean, @@ -72,7 +72,7 @@ export type Props = $ReadOnly<{| * The `statusBarTranslucent` prop determines whether your modal should go under * the system statusbar. * - * See https://facebook.github.io/react-native/docs/modal.html#transparent + * See https://reactnative.dev/docs/modal.html#transparent */ statusBarTranslucent?: ?boolean, @@ -82,14 +82,14 @@ export type Props = $ReadOnly<{| * * This prop works inly on Android. * - * See https://facebook.github.io/react-native/docs/modal.html#hardwareaccelerated + * See https://reactnative.dev/docs/modal.html#hardwareaccelerated */ hardwareAccelerated?: ?boolean, /** * The `visible` prop determines whether your modal is visible. * - * See https://facebook.github.io/react-native/docs/modal.html#visible + * See https://reactnative.dev/docs/modal.html#visible */ visible?: ?boolean, @@ -99,7 +99,7 @@ export type Props = $ReadOnly<{| * * This is required on Apple TV and Android. * - * See https://facebook.github.io/react-native/docs/modal.html#onrequestclose + * See https://reactnative.dev/docs/modal.html#onrequestclose */ onRequestClose?: ?DirectEventHandler, @@ -107,7 +107,7 @@ export type Props = $ReadOnly<{| * The `onShow` prop allows passing a function that will be called once the * modal has been shown. * - * See https://facebook.github.io/react-native/docs/modal.html#onshow + * See https://reactnative.dev/docs/modal.html#onshow */ onShow?: ?DirectEventHandler, @@ -115,14 +115,14 @@ export type Props = $ReadOnly<{| * The `onDismiss` prop allows passing a function that will be called once * the modal has been dismissed. * - * See https://facebook.github.io/react-native/docs/modal.html#ondismiss + * See https://reactnative.dev/docs/modal.html#ondismiss */ onDismiss?: ?() => mixed, /** * The `supportedOrientations` prop allows the modal to be rotated to any of the specified orientations. * - * See https://facebook.github.io/react-native/docs/modal.html#supportedorientations + * See https://reactnative.dev/docs/modal.html#supportedorientations */ supportedOrientations?: ?$ReadOnlyArray< | 'portrait' @@ -135,7 +135,7 @@ export type Props = $ReadOnly<{| /** * The `onOrientationChange` callback is called when the orientation changes while the modal is being displayed. * - * See https://facebook.github.io/react-native/docs/modal.html#onorientationchange + * See https://reactnative.dev/docs/modal.html#onorientationchange */ onOrientationChange?: ?DirectEventHandler, |}>; diff --git a/Libraries/Modal/RCTModalHostViewNativeComponent.js b/Libraries/Modal/RCTModalHostViewNativeComponent.js index 9363a3b98d3..62bd8a8daf1 100644 --- a/Libraries/Modal/RCTModalHostViewNativeComponent.js +++ b/Libraries/Modal/RCTModalHostViewNativeComponent.js @@ -30,14 +30,14 @@ type NativeProps = $ReadOnly<{| /** * The `animationType` prop controls how the modal animates. * - * See https://facebook.github.io/react-native/docs/modal.html#animationtype + * See https://reactnative.dev/docs/modal.html#animationtype */ animationType?: WithDefault<'none' | 'slide' | 'fade', 'none'>, /** * The `presentationStyle` prop controls how the modal appears. * - * See https://facebook.github.io/react-native/docs/modal.html#presentationstyle + * See https://reactnative.dev/docs/modal.html#presentationstyle */ presentationStyle?: WithDefault< 'fullScreen' | 'pageSheet' | 'formSheet' | 'overFullScreen', @@ -48,7 +48,7 @@ type NativeProps = $ReadOnly<{| * The `transparent` prop determines whether your modal will fill the * entire view. * - * See https://facebook.github.io/react-native/docs/modal.html#transparent + * See https://reactnative.dev/docs/modal.html#transparent */ transparent?: WithDefault, @@ -56,7 +56,7 @@ type NativeProps = $ReadOnly<{| * The `statusBarTranslucent` prop determines whether your modal should go under * the system statusbar. * - * See https://facebook.github.io/react-native/docs/modal.html#statusBarTranslucent + * See https://reactnative.dev/docs/modal.html#statusBarTranslucent */ statusBarTranslucent?: WithDefault, @@ -64,7 +64,7 @@ type NativeProps = $ReadOnly<{| * The `hardwareAccelerated` prop controls whether to force hardware * acceleration for the underlying window. * - * See https://facebook.github.io/react-native/docs/modal.html#hardwareaccelerated + * See https://reactnative.dev/docs/modal.html#hardwareaccelerated */ hardwareAccelerated?: WithDefault, @@ -74,7 +74,7 @@ type NativeProps = $ReadOnly<{| * * This is required on Apple TV and Android. * - * See https://facebook.github.io/react-native/docs/modal.html#onrequestclose + * See https://reactnative.dev/docs/modal.html#onrequestclose */ onRequestClose?: ?DirectEventHandler, @@ -82,7 +82,7 @@ type NativeProps = $ReadOnly<{| * The `onShow` prop allows passing a function that will be called once the * modal has been shown. * - * See https://facebook.github.io/react-native/docs/modal.html#onshow + * See https://reactnative.dev/docs/modal.html#onshow */ onShow?: ?DirectEventHandler, @@ -94,7 +94,7 @@ type NativeProps = $ReadOnly<{| /** * The `supportedOrientations` prop allows the modal to be rotated to any of the specified orientations. * - * See https://facebook.github.io/react-native/docs/modal.html#supportedorientations + * See https://reactnative.dev/docs/modal.html#supportedorientations */ supportedOrientations?: WithDefault< $ReadOnlyArray< @@ -110,7 +110,7 @@ type NativeProps = $ReadOnly<{| /** * The `onOrientationChange` callback is called when the orientation changes while the modal is being displayed. * - * See https://facebook.github.io/react-native/docs/modal.html#onorientationchange + * See https://reactnative.dev/docs/modal.html#onorientationchange */ onOrientationChange?: ?DirectEventHandler, diff --git a/Libraries/NativeAnimation/React-RCTAnimation.podspec b/Libraries/NativeAnimation/React-RCTAnimation.podspec index 51e671db7a2..6fe7512ce8f 100644 --- a/Libraries/NativeAnimation/React-RCTAnimation.podspec +++ b/Libraries/NativeAnimation/React-RCTAnimation.podspec @@ -23,7 +23,7 @@ Pod::Spec.new do |s| s.name = "React-RCTAnimation" s.version = version s.summary = "A native driver for the Animated API." - s.homepage = "http://facebook.github.io/react-native/" + s.homepage = "https://reactnative.dev/" s.license = package["license"] s.author = "Facebook, Inc. and its affiliates" s.platforms = { :ios => "10.0", :tvos => "10.0" } diff --git a/Libraries/Network/React-RCTNetwork.podspec b/Libraries/Network/React-RCTNetwork.podspec index f592b705df3..cff2945d6ef 100644 --- a/Libraries/Network/React-RCTNetwork.podspec +++ b/Libraries/Network/React-RCTNetwork.podspec @@ -23,7 +23,7 @@ Pod::Spec.new do |s| s.name = "React-RCTNetwork" s.version = version s.summary = "The networking library of React Native." - s.homepage = "http://facebook.github.io/react-native/" + s.homepage = "https://reactnative.dev/" s.license = package["license"] s.author = "Facebook, Inc. and its affiliates" s.platforms = { :ios => "10.0", :tvos => "10.0" } diff --git a/Libraries/NewAppScreen/components/LearnMoreLinks.js b/Libraries/NewAppScreen/components/LearnMoreLinks.js index 6db3a1970fe..9effd49e172 100644 --- a/Libraries/NewAppScreen/components/LearnMoreLinks.js +++ b/Libraries/NewAppScreen/components/LearnMoreLinks.js @@ -19,45 +19,45 @@ const links = [ { id: 1, title: 'The Basics', - link: 'https://facebook.github.io/react-native/docs/tutorial', + link: 'https://reactnative.dev/docs/tutorial', description: 'Explains a Hello World for React Native.', }, { id: 2, title: 'Style', - link: 'https://facebook.github.io/react-native/docs/style', + link: 'https://reactnative.dev/docs/style', description: 'Covers how to use the prop named style which controls the visuals.', }, { id: 3, title: 'Layout', - link: 'https://facebook.github.io/react-native/docs/flexbox', + link: 'https://reactnative.dev/docs/flexbox', description: 'React Native uses flexbox for layout, learn how it works.', }, { id: 4, title: 'Components', - link: 'https://facebook.github.io/react-native/docs/components-and-apis', + link: 'https://reactnative.dev/docs/components-and-apis', description: 'The full list of components and APIs inside React Native.', }, { id: 5, title: 'Navigation', - link: 'https://facebook.github.io/react-native/docs/navigation', + link: 'https://reactnative.dev/docs/navigation', description: 'How to handle moving between screens inside your application.', }, { id: 6, title: 'Networking', - link: 'https://facebook.github.io/react-native/docs/network', + link: 'https://reactnative.dev/docs/network', description: 'How to use the Fetch API in React Native.', }, { id: 7, title: 'Help', - link: 'https://facebook.github.io/react-native/help', + link: 'https://reactnative.dev/help', description: 'Need more help? There are many other React Native developers who may have the answer.', }, diff --git a/Libraries/PermissionsAndroid/PermissionsAndroid.js b/Libraries/PermissionsAndroid/PermissionsAndroid.js index 66694c2f320..83124ccc24b 100644 --- a/Libraries/PermissionsAndroid/PermissionsAndroid.js +++ b/Libraries/PermissionsAndroid/PermissionsAndroid.js @@ -66,7 +66,7 @@ const PERMISSIONS = Object.freeze({ /** * `PermissionsAndroid` provides access to Android M's new permissions model. * - * See https://facebook.github.io/react-native/docs/permissionsandroid.html + * See https://reactnative.dev/docs/permissionsandroid.html */ class PermissionsAndroid { @@ -134,7 +134,7 @@ class PermissionsAndroid { * Returns a promise resolving to a boolean value as to whether the specified * permissions has been granted * - * See https://facebook.github.io/react-native/docs/permissionsandroid.html#check + * See https://reactnative.dev/docs/permissionsandroid.html#check */ check(permission: PermissionType): Promise { if (Platform.OS !== 'android') { @@ -188,7 +188,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://facebook.github.io/react-native/docs/permissionsandroid.html#request + * See https://reactnative.dev/docs/permissionsandroid.html#request */ async request( permission: PermissionType, @@ -236,7 +236,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://facebook.github.io/react-native/docs/permissionsandroid.html#requestmultiple + * See https://reactnative.dev/docs/permissionsandroid.html#requestmultiple */ requestMultiple( permissions: Array, diff --git a/Libraries/PushNotificationIOS/PushNotificationIOS.js b/Libraries/PushNotificationIOS/PushNotificationIOS.js index 66c5c541675..73c184e749e 100644 --- a/Libraries/PushNotificationIOS/PushNotificationIOS.js +++ b/Libraries/PushNotificationIOS/PushNotificationIOS.js @@ -67,7 +67,7 @@ export type PushNotificationEventName = $Keys<{ * Handle push notifications for your app, including permission handling and * icon badge number. * - * See https://facebook.github.io/react-native/docs/pushnotificationios.html + * See https://reactnative.dev/docs/pushnotificationios.html */ class PushNotificationIOS { _data: Object; @@ -90,7 +90,7 @@ class PushNotificationIOS { /** * Schedules the localNotification for immediate presentation. * - * See https://facebook.github.io/react-native/docs/pushnotificationios.html#presentlocalnotification + * See https://reactnative.dev/docs/pushnotificationios.html#presentlocalnotification */ static presentLocalNotification(details: Object) { invariant( @@ -103,7 +103,7 @@ class PushNotificationIOS { /** * Schedules the localNotification for future presentation. * - * See https://facebook.github.io/react-native/docs/pushnotificationios.html#schedulelocalnotification + * See https://reactnative.dev/docs/pushnotificationios.html#schedulelocalnotification */ static scheduleLocalNotification(details: Object) { invariant( @@ -116,7 +116,7 @@ class PushNotificationIOS { /** * Cancels all scheduled localNotifications. * - * See https://facebook.github.io/react-native/docs/pushnotificationios.html#cancelalllocalnotifications + * See https://reactnative.dev/docs/pushnotificationios.html#cancelalllocalnotifications */ static cancelAllLocalNotifications() { invariant( @@ -129,7 +129,7 @@ class PushNotificationIOS { /** * Remove all delivered notifications from Notification Center. * - * See https://facebook.github.io/react-native/docs/pushnotificationios.html#removealldeliverednotifications + * See https://reactnative.dev/docs/pushnotificationios.html#removealldeliverednotifications */ static removeAllDeliveredNotifications(): void { invariant( @@ -142,7 +142,7 @@ class PushNotificationIOS { /** * Provides you with a list of the app鈥檚 notifications that are still displayed in Notification Center. * - * See https://facebook.github.io/react-native/docs/pushnotificationios.html#getdeliverednotifications + * See https://reactnative.dev/docs/pushnotificationios.html#getdeliverednotifications */ static getDeliveredNotifications( callback: (notifications: Array) => void, @@ -157,7 +157,7 @@ class PushNotificationIOS { /** * Removes the specified notifications from Notification Center * - * See https://facebook.github.io/react-native/docs/pushnotificationios.html#removedeliverednotifications + * See https://reactnative.dev/docs/pushnotificationios.html#removedeliverednotifications */ static removeDeliveredNotifications(identifiers: Array): void { invariant( @@ -170,7 +170,7 @@ class PushNotificationIOS { /** * Sets the badge number for the app icon on the home screen. * - * See https://facebook.github.io/react-native/docs/pushnotificationios.html#setapplicationiconbadgenumber + * See https://reactnative.dev/docs/pushnotificationios.html#setapplicationiconbadgenumber */ static setApplicationIconBadgeNumber(number: number) { invariant( @@ -183,7 +183,7 @@ class PushNotificationIOS { /** * Gets the current badge number for the app icon on the home screen. * - * See https://facebook.github.io/react-native/docs/pushnotificationios.html#getapplicationiconbadgenumber + * See https://reactnative.dev/docs/pushnotificationios.html#getapplicationiconbadgenumber */ static getApplicationIconBadgeNumber(callback: Function) { invariant( @@ -196,7 +196,7 @@ class PushNotificationIOS { /** * Cancel local notifications. * - * See https://facebook.github.io/react-native/docs/pushnotificationios.html#cancellocalnotification + * See https://reactnative.dev/docs/pushnotificationios.html#cancellocalnotification */ static cancelLocalNotifications(userInfo: Object) { invariant( @@ -209,7 +209,7 @@ class PushNotificationIOS { /** * Gets the local notifications that are currently scheduled. * - * See https://facebook.github.io/react-native/docs/pushnotificationios.html#getscheduledlocalnotifications + * See https://reactnative.dev/docs/pushnotificationios.html#getscheduledlocalnotifications */ static getScheduledLocalNotifications(callback: Function) { invariant( @@ -223,7 +223,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://facebook.github.io/react-native/docs/pushnotificationios.html#addeventlistener + * See https://reactnative.dev/docs/pushnotificationios.html#addeventlistener */ static addEventListener(type: PushNotificationEventName, handler: Function) { invariant( @@ -270,7 +270,7 @@ class PushNotificationIOS { * Removes the event listener. Do this in `componentWillUnmount` to prevent * memory leaks. * - * See https://facebook.github.io/react-native/docs/pushnotificationios.html#removeeventlistener + * See https://reactnative.dev/docs/pushnotificationios.html#removeeventlistener */ static removeEventListener( type: PushNotificationEventName, @@ -297,7 +297,7 @@ class PushNotificationIOS { * a subset of these can be requested by passing a map of requested * permissions. * - * See https://facebook.github.io/react-native/docs/pushnotificationios.html#requestpermissions + * See https://reactnative.dev/docs/pushnotificationios.html#requestpermissions */ static requestPermissions(permissions?: { alert?: boolean, @@ -334,7 +334,7 @@ class PushNotificationIOS { /** * Unregister for all remote notifications received via Apple Push Notification service. * - * See https://facebook.github.io/react-native/docs/pushnotificationios.html#abandonpermissions + * See https://reactnative.dev/docs/pushnotificationios.html#abandonpermissions */ static abandonPermissions() { invariant( @@ -348,7 +348,7 @@ class PushNotificationIOS { * See what push permissions are currently enabled. `callback` will be * invoked with a `permissions` object. * - * See https://facebook.github.io/react-native/docs/pushnotificationios.html#checkpermissions + * See https://reactnative.dev/docs/pushnotificationios.html#checkpermissions */ static checkPermissions(callback: Function) { invariant(typeof callback === 'function', 'Must provide a valid callback'); @@ -363,7 +363,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://facebook.github.io/react-native/docs/pushnotificationios.html#getinitialnotification + * See https://reactnative.dev/docs/pushnotificationios.html#getinitialnotification */ static getInitialNotification(): Promise { invariant( @@ -421,7 +421,7 @@ class PushNotificationIOS { * This method is available for remote notifications that have been received via: * `application:didReceiveRemoteNotification:fetchCompletionHandler:` * - * See https://facebook.github.io/react-native/docs/pushnotificationios.html#finish + * See https://reactnative.dev/docs/pushnotificationios.html#finish */ finish(fetchResult: string) { if ( @@ -454,7 +454,7 @@ class PushNotificationIOS { /** * Gets the sound string from the `aps` object * - * See https://facebook.github.io/react-native/docs/pushnotificationios.html#getsound + * See https://reactnative.dev/docs/pushnotificationios.html#getsound */ getSound(): ?string { return this._sound; @@ -463,7 +463,7 @@ class PushNotificationIOS { /** * Gets the category string from the `aps` object * - * See https://facebook.github.io/react-native/docs/pushnotificationios.html#getcategory + * See https://reactnative.dev/docs/pushnotificationios.html#getcategory */ getCategory(): ?string { return this._category; @@ -472,7 +472,7 @@ class PushNotificationIOS { /** * Gets the notification's main message from the `aps` object * - * See https://facebook.github.io/react-native/docs/pushnotificationios.html#getalert + * See https://reactnative.dev/docs/pushnotificationios.html#getalert */ getAlert(): ?string | ?Object { return this._alert; @@ -481,7 +481,7 @@ class PushNotificationIOS { /** * Gets the content-available number from the `aps` object * - * See https://facebook.github.io/react-native/docs/pushnotificationios.html#getcontentavailable + * See https://reactnative.dev/docs/pushnotificationios.html#getcontentavailable */ getContentAvailable(): ContentAvailable { return this._contentAvailable; @@ -490,7 +490,7 @@ class PushNotificationIOS { /** * Gets the badge count number from the `aps` object * - * See https://facebook.github.io/react-native/docs/pushnotificationios.html#getbadgecount + * See https://reactnative.dev/docs/pushnotificationios.html#getbadgecount */ getBadgeCount(): ?number { return this._badgeCount; @@ -499,7 +499,7 @@ class PushNotificationIOS { /** * Gets the data object on the notif * - * See https://facebook.github.io/react-native/docs/pushnotificationios.html#getdata + * See https://reactnative.dev/docs/pushnotificationios.html#getdata */ getData(): ?Object { return this._data; @@ -508,7 +508,7 @@ class PushNotificationIOS { /** * Gets the thread ID on the notif * - * See https://facebook.github.io/react-native/docs/pushnotificationios.html#getthreadid + * See https://reactnative.dev/docs/pushnotificationios.html#getthreadid */ getThreadID(): ?string { return this._threadID; diff --git a/Libraries/PushNotificationIOS/React-RCTPushNotification.podspec b/Libraries/PushNotificationIOS/React-RCTPushNotification.podspec index 69fa86b686a..56149035c48 100644 --- a/Libraries/PushNotificationIOS/React-RCTPushNotification.podspec +++ b/Libraries/PushNotificationIOS/React-RCTPushNotification.podspec @@ -23,8 +23,8 @@ Pod::Spec.new do |s| s.name = "React-RCTPushNotification" s.version = version s.summary = "A library for handling push notifications for your app, including permission handling and icon badge number." - s.homepage = "http://facebook.github.io/react-native/" - s.documentation_url = "https://facebook.github.io/react-native/docs/pushnotificationios" + s.homepage = "https://reactnative.dev/" + s.documentation_url = "https://reactnative.dev/docs/pushnotificationios" s.license = package["license"] s.author = "Facebook, Inc. and its affiliates" s.platforms = { :ios => "10.0", :tvos => "10.0" } diff --git a/Libraries/RCTRequired/RCTRequired.podspec b/Libraries/RCTRequired/RCTRequired.podspec index 8762aaf044a..3c55234fbd3 100644 --- a/Libraries/RCTRequired/RCTRequired.podspec +++ b/Libraries/RCTRequired/RCTRequired.podspec @@ -20,7 +20,7 @@ Pod::Spec.new do |s| s.name = "RCTRequired" s.version = version s.summary = "-" # TODO - s.homepage = "http://facebook.github.io/react-native/" + s.homepage = "https://reactnative.dev/" s.license = package["license"] s.author = "Facebook, Inc. and its affiliates" s.platforms = { :ios => "10.0", :tvos => "10.0" } diff --git a/Libraries/ReactNative/AppRegistry.js b/Libraries/ReactNative/AppRegistry.js index 6dc81373132..99abee3e0d7 100644 --- a/Libraries/ReactNative/AppRegistry.js +++ b/Libraries/ReactNative/AppRegistry.js @@ -69,7 +69,7 @@ let showArchitectureIndicator = false; /** * `AppRegistry` is the JavaScript entry point to running all React Native apps. * - * See http://facebook.github.io/react-native/docs/appregistry.html + * See https://reactnative.dev/docs/appregistry.html */ const AppRegistry = { setWrapperComponentProvider(provider: WrapperComponentProvider) { @@ -103,7 +103,7 @@ const AppRegistry = { /** * Registers an app's root component. * - * See http://facebook.github.io/react-native/docs/appregistry.html#registercomponent + * See https://reactnative.dev/docs/appregistry.html#registercomponent */ registerComponent( appKey: string, @@ -178,7 +178,7 @@ const AppRegistry = { /** * Loads the JavaScript bundle and runs the app. * - * See http://facebook.github.io/react-native/docs/appregistry.html#runapplication + * See https://reactnative.dev/docs/appregistry.html#runapplication */ runApplication(appKey: string, appParameters: any): void { if (appKey !== 'LogBox') { @@ -205,7 +205,7 @@ const AppRegistry = { /** * Stops an application when a view should be destroyed. * - * See http://facebook.github.io/react-native/docs/appregistry.html#unmountapplicationcomponentatroottag + * See https://reactnative.dev/docs/appregistry.html#unmountapplicationcomponentatroottag */ unmountApplicationComponentAtRootTag(rootTag: number): void { ReactNative.unmountComponentAtNodeAndRemoveContainer(rootTag); @@ -214,7 +214,7 @@ const AppRegistry = { /** * Register a headless task. A headless task is a bit of code that runs without a UI. * - * See http://facebook.github.io/react-native/docs/appregistry.html#registerheadlesstask + * See https://reactnative.dev/docs/appregistry.html#registerheadlesstask */ registerHeadlessTask(taskKey: string, taskProvider: TaskProvider): void { this.registerCancellableHeadlessTask(taskKey, taskProvider, () => () => { @@ -225,7 +225,7 @@ const AppRegistry = { /** * Register a cancellable headless task. A headless task is a bit of code that runs without a UI. * - * See http://facebook.github.io/react-native/docs/appregistry.html#registercancellableheadlesstask + * See https://reactnative.dev/docs/appregistry.html#registercancellableheadlesstask */ registerCancellableHeadlessTask( taskKey: string, @@ -244,7 +244,7 @@ const AppRegistry = { /** * Only called from native code. Starts a headless task. * - * See http://facebook.github.io/react-native/docs/appregistry.html#startheadlesstask + * See https://reactnative.dev/docs/appregistry.html#startheadlesstask */ startHeadlessTask(taskId: number, taskKey: string, data: any): void { const taskProvider = taskProviders.get(taskKey); @@ -282,7 +282,7 @@ const AppRegistry = { /** * Only called from native code. Cancels a headless task. * - * See http://facebook.github.io/react-native/docs/appregistry.html#cancelheadlesstask + * See https://reactnative.dev/docs/appregistry.html#cancelheadlesstask */ cancelHeadlessTask(taskId: number, taskKey: string): void { const taskCancelProvider = taskCancelProviders.get(taskKey); diff --git a/Libraries/Settings/React-RCTSettings.podspec b/Libraries/Settings/React-RCTSettings.podspec index d01f67f6bbe..7eac8586744 100644 --- a/Libraries/Settings/React-RCTSettings.podspec +++ b/Libraries/Settings/React-RCTSettings.podspec @@ -23,8 +23,8 @@ Pod::Spec.new do |s| s.name = "React-RCTSettings" s.version = version s.summary = "A wrapper for NSUserDefaults, a persistent key-value store available only on iOS." - s.homepage = "http://facebook.github.io/react-native/" - s.documentation_url = "https://facebook.github.io/react-native/docs/settings" + s.homepage = "https://reactnative.dev/" + s.documentation_url = "https://reactnative.dev/docs/settings" s.license = package["license"] s.author = "Facebook, Inc. and its affiliates" s.platforms = { :ios => "10.0", :tvos => "10.0" } diff --git a/Libraries/Storage/AsyncStorage.js b/Libraries/Storage/AsyncStorage.js index 5c749a93805..67f365a0e03 100644 --- a/Libraries/Storage/AsyncStorage.js +++ b/Libraries/Storage/AsyncStorage.js @@ -23,7 +23,7 @@ const RCTAsyncStorage = NativeAsyncStorage; * storage system that is global to the app. It should be used instead of * LocalStorage. * - * See http://facebook.github.io/react-native/docs/asyncstorage.html + * See https://reactnative.dev/docs/asyncstorage.html */ const AsyncStorage = { _getRequests: ([]: Array), @@ -33,7 +33,7 @@ const AsyncStorage = { /** * Fetches an item for a `key` and invokes a callback upon completion. * - * See http://facebook.github.io/react-native/docs/asyncstorage.html#getitem + * See https://reactnative.dev/docs/asyncstorage.html#getitem */ getItem: function( key: string, @@ -58,7 +58,7 @@ const AsyncStorage = { /** * Sets the value for a `key` and invokes a callback upon completion. * - * See http://facebook.github.io/react-native/docs/asyncstorage.html#setitem + * See https://reactnative.dev/docs/asyncstorage.html#setitem */ setItem: function( key: string, @@ -82,7 +82,7 @@ const AsyncStorage = { /** * Removes an item for a `key` and invokes a callback upon completion. * - * See http://facebook.github.io/react-native/docs/asyncstorage.html#removeitem + * See https://reactnative.dev/docs/asyncstorage.html#removeitem */ removeItem: function( key: string, @@ -108,7 +108,7 @@ const AsyncStorage = { * * **NOTE:** This is not supported by all native implementations. * - * See http://facebook.github.io/react-native/docs/asyncstorage.html#mergeitem + * See https://reactnative.dev/docs/asyncstorage.html#mergeitem */ mergeItem: function( key: string, @@ -134,7 +134,7 @@ const AsyncStorage = { * don't want to call this; use `removeItem` or `multiRemove` to clear only * your app's keys. * - * See http://facebook.github.io/react-native/docs/asyncstorage.html#clear + * See https://reactnative.dev/docs/asyncstorage.html#clear */ clear: function(callback?: ?(error: ?Error) => void): Promise { invariant(RCTAsyncStorage, 'RCTAsyncStorage not available'); @@ -153,7 +153,7 @@ const AsyncStorage = { /** * Gets *all* keys known to your app; for all callers, libraries, etc. * - * See http://facebook.github.io/react-native/docs/asyncstorage.html#getallkeys + * See https://reactnative.dev/docs/asyncstorage.html#getallkeys */ getAllKeys: function( callback?: ?(error: ?Error, keys: ?Array) => void, @@ -184,7 +184,7 @@ const AsyncStorage = { /** * Flushes any pending requests using a single batch call to get the data. * - * See http://facebook.github.io/react-native/docs/asyncstorage.html#flushgetrequests + * See https://reactnative.dev/docs/asyncstorage.html#flushgetrequests * */ flushGetRequests: function(): void { const getRequests = this._getRequests; @@ -223,7 +223,7 @@ const AsyncStorage = { * inputs. Your callback will be invoked with an array of corresponding * key-value pairs found. * - * See http://facebook.github.io/react-native/docs/asyncstorage.html#multiget + * See https://reactnative.dev/docs/asyncstorage.html#multiget */ multiGet: function( keys: Array, @@ -265,7 +265,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 http://facebook.github.io/react-native/docs/asyncstorage.html#multiset + * See https://reactnative.dev/docs/asyncstorage.html#multiset */ multiSet: function( keyValuePairs: Array>, @@ -288,7 +288,7 @@ const AsyncStorage = { /** * Call this to batch the deletion of all keys in the `keys` array. * - * See http://facebook.github.io/react-native/docs/asyncstorage.html#multiremove + * See https://reactnative.dev/docs/asyncstorage.html#multiremove */ multiRemove: function( keys: Array, @@ -314,7 +314,7 @@ const AsyncStorage = { * * **NOTE**: This is not supported by all native implementations. * - * See http://facebook.github.io/react-native/docs/asyncstorage.html#multimerge + * See https://reactnative.dev/docs/asyncstorage.html#multimerge */ multiMerge: function( keyValuePairs: Array>, diff --git a/Libraries/Text/React-RCTText.podspec b/Libraries/Text/React-RCTText.podspec index e3bf11bc278..6f94706d54e 100644 --- a/Libraries/Text/React-RCTText.podspec +++ b/Libraries/Text/React-RCTText.podspec @@ -20,8 +20,8 @@ Pod::Spec.new do |s| s.name = "React-RCTText" s.version = version s.summary = "A React component for displaying text." - s.homepage = "http://facebook.github.io/react-native/" - s.documentation_url = "https://facebook.github.io/react-native/docs/text" + s.homepage = "https://reactnative.dev/" + s.documentation_url = "https://reactnative.dev/docs/text" s.license = package["license"] s.author = "Facebook, Inc. and its affiliates" s.platforms = { :ios => "10.0", :tvos => "10.0" } diff --git a/Libraries/Text/Text.js b/Libraries/Text/Text.js index f523ba80db2..660dd879761 100644 --- a/Libraries/Text/Text.js +++ b/Libraries/Text/Text.js @@ -83,7 +83,7 @@ const viewConfig = { /** * A React component for displaying text. * - * See https://facebook.github.io/react-native/docs/text.html + * See https://reactnative.dev/docs/text.html */ class TouchableText extends React.Component { static defaultProps = { diff --git a/Libraries/Text/TextProps.js b/Libraries/Text/TextProps.js index b14dfbfa88c..009929e8ff7 100644 --- a/Libraries/Text/TextProps.js +++ b/Libraries/Text/TextProps.js @@ -30,13 +30,13 @@ export type PressRetentionOffset = $ReadOnly<{| |}>; /** - * @see https://facebook.github.io/react-native/docs/text.html#reference + * @see https://reactnative.dev/docs/text.html#reference */ export type TextProps = $ReadOnly<{| /** * Indicates whether the view is an accessibility element. * - * See https://facebook.github.io/react-native/docs/text.html#accessible + * See https://reactnative.dev/docs/text.html#accessible */ accessible?: ?boolean, accessibilityHint?: ?Stringish, @@ -47,14 +47,14 @@ export type TextProps = $ReadOnly<{| /** * Whether font should be scaled down automatically. * - * See https://facebook.github.io/react-native/docs/text.html#adjustsfontsizetofit + * See https://reactnative.dev/docs/text.html#adjustsfontsizetofit */ adjustsFontSizeToFit?: ?boolean, /** * Whether fonts should scale to respect Text Size accessibility settings. * - * See https://facebook.github.io/react-native/docs/text.html#allowfontscaling + * See https://reactnative.dev/docs/text.html#allowfontscaling */ allowFontScaling?: ?boolean, children?: ?Node, @@ -63,7 +63,7 @@ export type TextProps = $ReadOnly<{| * When `numberOfLines` is set, this prop defines how text will be * truncated. * - * See https://facebook.github.io/react-native/docs/text.html#ellipsizemode + * See https://reactnative.dev/docs/text.html#ellipsizemode */ ellipsizeMode?: ?('clip' | 'head' | 'middle' | 'tail'), @@ -79,35 +79,35 @@ export type TextProps = $ReadOnly<{| /** * Used to locate this view from native code. * - * See https://facebook.github.io/react-native/docs/text.html#nativeid + * See https://reactnative.dev/docs/text.html#nativeid */ nativeID?: ?string, /** * Used to truncate the text with an ellipsis. * - * See https://facebook.github.io/react-native/docs/text.html#numberoflines + * See https://reactnative.dev/docs/text.html#numberoflines */ numberOfLines?: ?number, /** * Invoked on mount and layout changes. * - * See https://facebook.github.io/react-native/docs/text.html#onlayout + * See https://reactnative.dev/docs/text.html#onlayout */ onLayout?: ?(event: LayoutEvent) => mixed, /** * This function is called on long press. * - * See https://facebook.github.io/react-native/docs/text.html#onlongpress + * See https://reactnative.dev/docs/text.html#onlongpress */ onLongPress?: ?(event: PressEvent) => mixed, /** * This function is called on press. * - * See https://facebook.github.io/react-native/docs/text.html#onpress + * See https://reactnative.dev/docs/text.html#onpress */ onPress?: ?(event: PressEvent) => mixed, onResponderGrant?: ?(event: PressEvent, dispatchID: string) => void, @@ -123,14 +123,14 @@ export type TextProps = $ReadOnly<{| * Defines how far your touch may move off of the button, before * deactivating the button. * - * See https://facebook.github.io/react-native/docs/text.html#pressretentionoffset + * See https://reactnative.dev/docs/text.html#pressretentionoffset */ pressRetentionOffset?: ?PressRetentionOffset, /** * Lets the user select text. * - * See https://facebook.github.io/react-native/docs/text.html#selectable + * See https://reactnative.dev/docs/text.html#selectable */ selectable?: ?boolean, style?: ?TextStyleProp, @@ -138,7 +138,7 @@ export type TextProps = $ReadOnly<{| /** * Used to locate this view in end-to-end tests. * - * See https://facebook.github.io/react-native/docs/text.html#testid + * See https://reactnative.dev/docs/text.html#testid */ testID?: ?string, @@ -149,14 +149,14 @@ export type TextProps = $ReadOnly<{| /** * Specifies the disabled state of the text view for testing purposes. * - * See https://facebook.github.io/react-native/docs/text.html#disabled + * See https://reactnative.dev/docs/text.html#disabled */ disabled?: ?boolean, /** * The highlight color of the text. * - * See https://facebook.github.io/react-native/docs/text.html#selectioncolor + * See https://reactnative.dev/docs/text.html#selectioncolor */ selectionColor?: ?string, @@ -165,7 +165,7 @@ export type TextProps = $ReadOnly<{| /** * Set text break strategy on Android. * - * See https://facebook.github.io/react-native/docs/text.html#textbreakstrategy + * See https://reactnative.dev/docs/text.html#textbreakstrategy */ textBreakStrategy?: ?('balanced' | 'highQuality' | 'simple'), @@ -177,14 +177,14 @@ export type TextProps = $ReadOnly<{| /** * Smallest possible scale a font can reach. * - * See https://facebook.github.io/react-native/docs/text.html#minimumfontscale + * See https://reactnative.dev/docs/text.html#minimumfontscale */ minimumFontScale?: ?number, /** * When `true`, no visual change is made when text is pressed down. * - * See https://facebook.github.io/react-native/docs/text.html#supperhighlighting + * See https://reactnative.dev/docs/text.html#supperhighlighting */ suppressHighlighting?: ?boolean, |}>; diff --git a/Libraries/TypeSafety/RCTTypeSafety.podspec b/Libraries/TypeSafety/RCTTypeSafety.podspec index 86975db3cd7..90869877abd 100644 --- a/Libraries/TypeSafety/RCTTypeSafety.podspec +++ b/Libraries/TypeSafety/RCTTypeSafety.podspec @@ -23,7 +23,7 @@ Pod::Spec.new do |s| s.name = "RCTTypeSafety" s.version = version s.summary = "-" # TODO - s.homepage = "http://facebook.github.io/react-native/" + s.homepage = "https://reactnative.dev/" s.license = package["license"] s.author = "Facebook, Inc. and its affiliates" s.platforms = { :ios => "10.0", :tvos => "10.0" } diff --git a/Libraries/Vibration/React-RCTVibration.podspec b/Libraries/Vibration/React-RCTVibration.podspec index 0f330860bfc..91907516059 100644 --- a/Libraries/Vibration/React-RCTVibration.podspec +++ b/Libraries/Vibration/React-RCTVibration.podspec @@ -23,8 +23,8 @@ Pod::Spec.new do |s| s.name = "React-RCTVibration" s.version = version s.summary = "An API for controlling the vibration hardware of the device." - s.homepage = "http://facebook.github.io/react-native/" - s.documentation_url = "https://facebook.github.io/react-native/docs/vibration" + s.homepage = "https://reactnative.dev/" + s.documentation_url = "https://reactnative.dev/docs/vibration" s.license = package["license"] s.author = "Facebook, Inc. and its affiliates" s.platforms = { :ios => "10.0", :tvos => "10.0" } diff --git a/Libraries/Vibration/Vibration.js b/Libraries/Vibration/Vibration.js index 2f20cd7ae60..ff3a755a05e 100644 --- a/Libraries/Vibration/Vibration.js +++ b/Libraries/Vibration/Vibration.js @@ -17,7 +17,7 @@ const Platform = require('../Utilities/Platform'); /** * Vibration API * - * See https://facebook.github.io/react-native/docs/vibration.html + * See https://reactnative.dev/docs/vibration.html */ let _vibrating: boolean = false; @@ -67,7 +67,7 @@ const Vibration = { /** * Trigger a vibration with specified `pattern`. * - * See https://facebook.github.io/react-native/docs/vibration.html#vibrate + * See https://reactnative.dev/docs/vibration.html#vibrate */ vibrate: function( pattern: number | Array = 400, @@ -97,7 +97,7 @@ const Vibration = { /** * Stop vibration * - * See https://facebook.github.io/react-native/docs/vibration.html#cancel + * See https://reactnative.dev/docs/vibration.html#cancel */ cancel: function() { if (Platform.OS === 'ios') { diff --git a/README.md b/README.md index d914e8f37e5..55093498798 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@

- + React Native

@@ -22,7 +22,7 @@ Current npm package version. - + PRs welcome! @@ -31,15 +31,15 @@

- Getting Started + Getting Started 路 - Learn the Basics + Learn the Basics 路 - Showcase + Showcase 路 - Contribute + Contribute 路 - Community + Community 路 Support

@@ -54,7 +54,7 @@ React Native brings [**React**'s][r] declarative UI framework to iOS and Android React Native is developed and supported by many companies and individual core contributors. Find out more in our [ecosystem overview][e]. [r]: https://reactjs.org/ -[p]: https://facebook.github.io/react-native/docs/out-of-tree-platforms +[p]: https://reactnative.dev/docs/out-of-tree-platforms [e]: https://github.com/facebook/react-native/blob/master/ECOSYSTEM.md ## Contents @@ -74,15 +74,15 @@ React Native apps may target iOS 10.0 and Android 4.1 (API 16) or newer. You may ## 馃帀 Building your first React Native app -Follow the [Getting Started guide](https://facebook.github.io/react-native/docs/getting-started.html). The recommended way to install React Native depends on your project. Here you can find short guides for the most common scenarios: +Follow the [Getting Started guide](https://reactnative.dev/docs/getting-started.html). The recommended way to install React Native depends on your project. Here you can find short guides for the most common scenarios: - [Trying out React Native][hello-world] - [Creating a New Application][new-app] - [Adding React Native to an Existing Application][existing] [hello-world]: https://snack.expo.io/@hramos/hello,-world! -[new-app]: https://facebook.github.io/react-native/docs/getting-started.html -[existing]: https://facebook.github.io/react-native/docs/integration-with-existing-apps.html +[new-app]: https://reactnative.dev/docs/getting-started.html +[existing]: https://reactnative.dev/docs/integration-with-existing-apps.html ## 馃摉 Documentation @@ -92,7 +92,7 @@ The React Native documentation discusses components, APIs, and topics that are s The source for the React Native documentation and website is hosted on a separate repo, [**@facebook/react-native-website**][repo-website]. -[docs]: https://facebook.github.io/react-native/docs/getting-started.html +[docs]: https://reactnative.dev/docs/getting-started.html [r-docs]: https://reactjs.org/docs/getting-started.html [repo-website]: https://github.com/facebook/react-native-website @@ -102,7 +102,7 @@ Upgrading to new versions of React Native may give you access to more APIs, view React Native releases are discussed in the React Native Community, [**@react-native-community/react-native-releases**][repo-releases]. -[u]: https://facebook.github.io/react-native/docs/upgrading +[u]: https://reactnative.dev/docs/upgrading [repo-releases]: https://github.com/react-native-community/react-native-releases ## 馃憦 How to Contribute @@ -120,7 +120,7 @@ Please read the [full text][code] so that you can understand what actions will a Read our [**Contributing Guide**][contribute] to learn about our development process, how to propose bugfixes and improvements, and how to build and test your changes to React Native. -[contribute]: https://facebook.github.io/react-native/docs/contributing +[contribute]: https://reactnative.dev/docs/contributing ### [Open Source Roadmap][roadmap] diff --git a/RNTester/RCTTest/React-RCTTest.podspec b/RNTester/RCTTest/React-RCTTest.podspec index a5c47025bc1..3391cc24890 100644 --- a/RNTester/RCTTest/React-RCTTest.podspec +++ b/RNTester/RCTTest/React-RCTTest.podspec @@ -23,7 +23,7 @@ Pod::Spec.new do |s| s.name = "React-RCTTest" s.version = version s.summary = "Tools for integration and snapshot testing." - s.homepage = "http://facebook.github.io/react-native/" + s.homepage = "https://reactnative.dev/" s.license = package["license"] s.author = "Facebook, Inc. and its affiliates" s.platforms = { :ios => "10.0", :tvos => "10.0" } diff --git a/RNTester/README.md b/RNTester/README.md index a85e0845709..168a96e431f 100644 --- a/RNTester/README.md +++ b/RNTester/README.md @@ -32,7 +32,7 @@ _Note: Building for the first time can take a while._ Open the RNTester app in your emulator. If you want to use a physical device, run `adb devices`, then `adb -s reverse tcp:8081 tcp:8081`. -See [Running on Device](https://facebook.github.io/react-native/docs/running-on-device.html) for additional instructions on using a physical device. +See [Running on Device](https://reactnative.dev/docs/running-on-device.html) for additional instructions on using a physical device. ### Running with Buck diff --git a/RNTester/RNTesterUnitTests/RCTImageLoaderTests.m b/RNTester/RNTesterUnitTests/RCTImageLoaderTests.m index 5e17c5056cf..7a791930591 100644 --- a/RNTester/RNTesterUnitTests/RCTImageLoaderTests.m +++ b/RNTester/RNTesterUnitTests/RCTImageLoaderTests.m @@ -51,7 +51,7 @@ RCTDefineImageDecoder(RCTImageLoaderTestsDecoder2) NS_VALID_UNTIL_END_OF_SCOPE RCTBridge *bridge = [[RCTBridge alloc] initWithBundleURL:_bundleURL moduleProvider:^{ return @[loader]; } launchOptions:nil]; - NSURLRequest *urlRequest = [NSURLRequest requestWithURL:[NSURL URLWithString:@"https://facebook.github.io/react-native/img/opengraph.png"]]; + NSURLRequest *urlRequest = [NSURLRequest requestWithURL:[NSURL URLWithString:@"https://reactnative.dev/img/opengraph.png"]]; [[bridge moduleForClass:[RCTImageLoader class]] loadImageWithURLRequest:urlRequest size:CGSizeMake(100, 100) @@ -89,7 +89,7 @@ RCTDefineImageDecoder(RCTImageLoaderTestsDecoder2) NS_VALID_UNTIL_END_OF_SCOPE RCTBridge *bridge = [[RCTBridge alloc] initWithBundleURL:_bundleURL moduleProvider:^{ return @[loader1, loader2]; } launchOptions:nil]; - NSURLRequest *urlRequest = [NSURLRequest requestWithURL:[NSURL URLWithString:@"https://facebook.github.io/react-native/img/opengraph.png"]]; + NSURLRequest *urlRequest = [NSURLRequest requestWithURL:[NSURL URLWithString:@"https://reactnative.dev/img/opengraph.png"]]; [[bridge moduleForClass:[RCTImageLoader class]] loadImageWithURLRequest:urlRequest size:CGSizeMake(100, 100) diff --git a/RNTester/js/examples/Share/ShareExample.js b/RNTester/js/examples/Share/ShareExample.js index fe33658a9f2..bf33e7670ae 100644 --- a/RNTester/js/examples/Share/ShareExample.js +++ b/RNTester/js/examples/Share/ShareExample.js @@ -71,7 +71,7 @@ class ShareMessageExample extends React.Component { Share.share( { message: 'A framework for building native apps using React', - url: 'http://facebook.github.io/react-native/', + url: 'https://reactnative.dev/', title: 'React Native', }, { diff --git a/RNTester/js/examples/XHR/XHRExampleAbortController.js b/RNTester/js/examples/XHR/XHRExampleAbortController.js index 8b70f30746a..8d205d7024e 100644 --- a/RNTester/js/examples/XHR/XHRExampleAbortController.js +++ b/RNTester/js/examples/XHR/XHRExampleAbortController.js @@ -20,7 +20,7 @@ class XHRExampleAbortController extends React.Component<{...}, {...}> { _submit(abortDelay) { clearTimeout(this._timeout); const abortController = new global.AbortController(); - fetch('https://facebook.github.io/react-native/', { + fetch('https://reactnative.dev/', { signal: abortController.signal, }) .then(res => res.text()) diff --git a/React-Core.podspec b/React-Core.podspec index b85e969e349..cf65263fbdd 100644 --- a/React-Core.podspec +++ b/React-Core.podspec @@ -39,7 +39,7 @@ Pod::Spec.new do |s| s.name = "React-Core" s.version = version s.summary = "The core of React Native." - s.homepage = "http://facebook.github.io/react-native/" + s.homepage = "https://reactnative.dev/" s.license = package["license"] s.author = "Facebook, Inc. and its affiliates" s.platforms = { :ios => "10.0", :tvos => "10.0" } diff --git a/React.podspec b/React.podspec index a3482c991c4..da482ff0154 100644 --- a/React.podspec +++ b/React.podspec @@ -33,7 +33,7 @@ Pod::Spec.new do |s| beautiful and fast products with no compromises in quality or capability. DESC - s.homepage = "http://facebook.github.io/react-native/" + s.homepage = "https://reactnative.dev/" s.license = package["license"] s.author = "Facebook, Inc. and its affiliates" s.platforms = { :ios => "10.0", :tvos => "10.0" } diff --git a/React/CoreModules/React-CoreModules.podspec b/React/CoreModules/React-CoreModules.podspec index e382f08a5a9..1b38c1c9778 100644 --- a/React/CoreModules/React-CoreModules.podspec +++ b/React/CoreModules/React-CoreModules.podspec @@ -23,7 +23,7 @@ Pod::Spec.new do |s| s.name = "React-CoreModules" s.version = version s.summary = "-" # TODO - s.homepage = "http://facebook.github.io/react-native/" + s.homepage = "https://reactnative.dev/" s.license = package["license"] s.author = "Facebook, Inc. and its affiliates" s.platforms = { :ios => "10.0", :tvos => "10.0" } diff --git a/React/React-RCTFabric.podspec b/React/React-RCTFabric.podspec index 6e1e0f535ce..9123da76ec7 100644 --- a/React/React-RCTFabric.podspec +++ b/React/React-RCTFabric.podspec @@ -25,7 +25,7 @@ Pod::Spec.new do |s| s.name = "React-RCTFabric" s.version = version s.summary = "RCTFabric for React Native." - s.homepage = "http://facebook.github.io/react-native/" + s.homepage = "https://reactnative.dev/" s.license = package["license"] s.author = "Facebook, Inc. and its affiliates" s.platforms = { :ios => "10.0", :tvos => "10.0" } diff --git a/ReactAndroid/DevExperience.md b/ReactAndroid/DevExperience.md index f2deababe7f..aa56e8c1e5b 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://facebook.github.io/react-native/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.html). 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/ReactAndroid/README.md b/ReactAndroid/README.md index d96e2bf1184..a920b7615d9 100644 --- a/ReactAndroid/README.md +++ b/ReactAndroid/README.md @@ -1,7 +1,7 @@ # Building React Native for Android -See the [docs on the website](https://facebook.github.io/react-native/docs/building-from-source.html#android). +See the [docs on the website](https://reactnative.dev/docs/building-from-source.html#android). # Running tests -When you submit a pull request CircleCI will automatically run all tests. To run tests locally, see [Testing](https://facebook.github.io/react-native/docs/testing.html). +When you submit a pull request CircleCI will automatically run all tests. To run tests locally, see [Testing](https://reactnative.dev/docs/testing.html). diff --git a/ReactCommon/React-Fabric.podspec b/ReactCommon/React-Fabric.podspec index b944246d235..8fb693a7ea7 100644 --- a/ReactCommon/React-Fabric.podspec +++ b/ReactCommon/React-Fabric.podspec @@ -25,7 +25,7 @@ Pod::Spec.new do |s| s.name = "React-Fabric" s.version = version s.summary = "Fabric for React Native." - s.homepage = "http://facebook.github.io/react-native/" + s.homepage = "https://reactnative.dev/" s.license = package["license"] s.author = "Facebook, Inc. and its affiliates" s.platforms = { :ios => "10.0", :tvos => "10.0" } diff --git a/ReactCommon/ReactCommon.podspec b/ReactCommon/ReactCommon.podspec index 4d712dd6581..62348ea76c7 100644 --- a/ReactCommon/ReactCommon.podspec +++ b/ReactCommon/ReactCommon.podspec @@ -25,7 +25,7 @@ Pod::Spec.new do |s| s.module_name = "ReactCommon" s.version = version s.summary = "-" # TODO - s.homepage = "http://facebook.github.io/react-native/" + s.homepage = "https://reactnative.dev/" s.license = package["license"] s.author = "Facebook, Inc. and its affiliates" s.platforms = { :ios => "10.0", :tvos => "10.0" } diff --git a/ReactCommon/cxxreact/React-cxxreact.podspec b/ReactCommon/cxxreact/React-cxxreact.podspec index 9058b36f292..bba625c8439 100644 --- a/ReactCommon/cxxreact/React-cxxreact.podspec +++ b/ReactCommon/cxxreact/React-cxxreact.podspec @@ -24,7 +24,7 @@ Pod::Spec.new do |s| s.name = "React-cxxreact" s.version = version s.summary = "-" # TODO - s.homepage = "http://facebook.github.io/react-native/" + s.homepage = "https://reactnative.dev/" s.license = package["license"] s.author = "Facebook, Inc. and its affiliates" s.platforms = { :ios => "10.0", :tvos => "10.0" } diff --git a/ReactCommon/fabric/graphics/React-graphics.podspec b/ReactCommon/fabric/graphics/React-graphics.podspec index 292633a173b..832557c7f1d 100644 --- a/ReactCommon/fabric/graphics/React-graphics.podspec +++ b/ReactCommon/fabric/graphics/React-graphics.podspec @@ -23,7 +23,7 @@ Pod::Spec.new do |s| s.name = "React-graphics" s.version = version s.summary = "Fabric for React Native." - s.homepage = "http://facebook.github.io/react-native/" + s.homepage = "https://reactnative.dev/" s.license = package["license"] s.author = "Facebook, Inc. and its affiliates" s.platforms = { :ios => "9.0", :tvos => "10.0" } diff --git a/ReactCommon/jsi/React-jsi.podspec b/ReactCommon/jsi/React-jsi.podspec index 39e13b1a353..5cec68c6857 100644 --- a/ReactCommon/jsi/React-jsi.podspec +++ b/ReactCommon/jsi/React-jsi.podspec @@ -24,7 +24,7 @@ Pod::Spec.new do |s| s.name = "React-jsi" s.version = version s.summary = "-" # TODO - s.homepage = "http://facebook.github.io/react-native/" + s.homepage = "https://reactnative.dev/" s.license = package["license"] s.author = "Facebook, Inc. and its affiliates" s.platforms = { :ios => "10.0", :tvos => "10.0" } diff --git a/ReactCommon/jsiexecutor/React-jsiexecutor.podspec b/ReactCommon/jsiexecutor/React-jsiexecutor.podspec index 5422bb83f91..77a33c28966 100644 --- a/ReactCommon/jsiexecutor/React-jsiexecutor.podspec +++ b/ReactCommon/jsiexecutor/React-jsiexecutor.podspec @@ -24,7 +24,7 @@ Pod::Spec.new do |s| s.name = "React-jsiexecutor" s.version = version s.summary = "-" # TODO - s.homepage = "http://facebook.github.io/react-native/" + s.homepage = "https://reactnative.dev/" s.license = package["license"] s.author = "Facebook, Inc. and its affiliates" s.platforms = { :ios => "10.0", :tvos => "10.0" } diff --git a/ReactCommon/jsinspector/React-jsinspector.podspec b/ReactCommon/jsinspector/React-jsinspector.podspec index 0d9cf57182e..600480fe8e2 100644 --- a/ReactCommon/jsinspector/React-jsinspector.podspec +++ b/ReactCommon/jsinspector/React-jsinspector.podspec @@ -20,7 +20,7 @@ Pod::Spec.new do |s| s.name = "React-jsinspector" s.version = version s.summary = "-" # TODO - s.homepage = "http://facebook.github.io/react-native/" + s.homepage = "https://reactnative.dev/" s.license = package["license"] s.author = "Facebook, Inc. and its affiliates" s.platforms = { :ios => "10.0", :tvos => "10.0" } diff --git a/bots/dangerfile.js b/bots/dangerfile.js index e9529acff3a..527e6b3c8fe 100644 --- a/bots/dangerfile.js +++ b/bots/dangerfile.js @@ -86,6 +86,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 `master`. [Are you sure you want to target something other than the `master` branch?](http://facebook.github.io/react-native/docs/contributing.html#pull-requests)'; + 'The base branch for this PR is something other than `master`. [Are you sure you want to target something other than the `master` branch?](https://reactnative.dev/docs/contributing.html#pull-requests)'; fail(`${title} - ${idea}`); } diff --git a/scripts/.tests.env b/scripts/.tests.env index 3f766fee43f..c981f7ca82e 100644 --- a/scripts/.tests.env +++ b/scripts/.tests.env @@ -1,5 +1,5 @@ # These should match the recommended versions listed in -# https://facebook.github.io/react-native/docs/getting-started.html +# https://reactnative.dev/docs/getting-started.html ## ANDROID ## diff --git a/scripts/run-android-local-integration-tests.sh b/scripts/run-android-local-integration-tests.sh index 3b8e9026df8..252a1879b6a 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 http://facebook.github.io/react-native/docs/testing.html +# See https://reactnative.dev/docs/testing.html 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 eafa3ecf93b..a339cf2bfeb 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 http://facebook.github.io/react-native/docs/testing.html +# See https://reactnative.dev/docs/testing.html 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 18c950677c3..eddf3a2f852 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://facebook.github.io/react-native/docs/getting-started.html for instructions." + echo "See https://reactnative.dev/docs/getting-started.html 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://facebook.github.io/react-native/docs/getting-started.html for instructions." + echo "See https://reactnative.dev/docs/getting-started.html for instructions." exit 1 fi @@ -31,7 +31,7 @@ if [ ! -e "$ANDROID_HOME/tools/emulator" ]; then echo "This indicates something is borked 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://facebook.github.io/react-native/docs/getting-started.html for instructions." + echo "See https://reactnative.dev/docs/getting-started.html for instructions." exit 1 fi @@ -49,7 +49,6 @@ if [ -z `which adb` ]; then echo "This indicates something is borked 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://facebook.github.io/react-native/docs/getting-started.html for instructions." + echo "See https://reactnative.dev/docs/getting-started.html for instructions." exit 1 fi - diff --git a/scripts/validate-android-test-env.sh b/scripts/validate-android-test-env.sh index 2630a490e28..5f6be9956cb 100755 --- a/scripts/validate-android-test-env.sh +++ b/scripts/validate-android-test-env.sh @@ -61,7 +61,7 @@ if [ ! -e "$PLATFORM_DIR" ]; then echo "Error: could not find version $ANDROID_VERSION of the Android SDK." echo "Specifically, the directory $PLATFORM_DIR does not exist." echo "You probably need to specify the right version using the SDK Manager from within Android Studio." - echo "See https://facebook.github.io/react-native/docs/getting-started.html for details." + echo "See https://reactnative.dev/docs/getting-started.html for details." echo "If you are using Android SDK Tools from the command line, you may need to run:" echo echo " sdkmanager \"platform-tools\" \"platform-tools;android-$MAJOR\"" @@ -76,7 +76,7 @@ if [ ! -e "$BT_DIR" ]; then echo "Error: could not find version $ANDROID_SDK_BUILD_TOOLS_REVISION of the Android build tools." echo "Specifically, the directory $BT_DIR does not exist." echo "You probably need to explicitly install the correct version of the Android SDK Build Tools from within Android Studio." - echo "See https://facebook.github.io/react-native/docs/getting-started.html for details." + echo "See https://reactnative.dev/docs/getting-started.html for details." echo "If you are using Android SDK Tools from the command line, you may need to run:" echo echo " sdkmanager \"platform-tools\" \"build-tools;android-$ANDROID_SDK_BUILD_TOOLS_REVISION\"" @@ -115,5 +115,3 @@ if [ -z "$JAVA_HOME" ]; then echo "You will also want to add \$JAVA_HOME/bin to your path." exit 1 fi - - diff --git a/scripts/validate-ios-test-env.sh b/scripts/validate-ios-test-env.sh index de125efb696..7aa3fb618af 100755 --- a/scripts/validate-ios-test-env.sh +++ b/scripts/validate-ios-test-env.sh @@ -17,7 +17,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 http://facebook.github.io/react-native/docs/getting-started.html for instructions." + echo "See https://reactnative.dev/docs/getting-started.html for instructions." exit 1 fi @@ -26,14 +26,14 @@ NODE_VERSION="$(command node --version | sed 's/[-/a-zA-Z]//g' |sed 's/.\{2\}$// if (( $(echo "${NODE_VERSION} <= 6.0" | bc -l) )); then echo "Node ${NODE_VERSION} detected. This version of Node is not supported." - echo "See https://facebook.github.io/react-native/docs/getting-started.html for instructions." + echo "See https://reactnative.dev/docs/getting-started.html 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://facebook.github.io/react-native/docs/getting-started.html for instructions." + echo "See https://reactnative.dev/docs/getting-started.html for instructions." exit 1 fi @@ -43,6 +43,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://facebook.github.io/react-native/docs/getting-started.html for instructions." + echo "See https://reactnative.dev/docs/getting-started.html for instructions." exit 1 fi diff --git a/template/android/app/build.gradle b/template/android/app/build.gradle index 289cfb6ae44..56a8363293d 100644 --- a/template/android/app/build.gradle +++ b/template/android/app/build.gradle @@ -20,7 +20,7 @@ import com.android.build.OutputFile * // default. Can be overridden with ENTRY_FILE environment variable. * entryFile: "index.android.js", * - * // https://facebook.github.io/react-native/docs/performance#enable-the-ram-format + * // https://reactnative.dev/docs/performance#enable-the-ram-format * bundleCommand: "ram-bundle", * * // whether to bundle JS and assets in debug mode @@ -157,7 +157,7 @@ android { } release { // Caution! In production, you need to generate your own keystore file. - // see https://facebook.github.io/react-native/docs/signed-apk-android. + // see https://reactnative.dev/docs/signed-apk-android. signingConfig signingConfigs.debug minifyEnabled enableProguardInReleaseBuilds proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro"