From b1417d786c8ebd33c2848435c2cd3434fd6fc6a7 Mon Sep 17 00:00:00 2001 From: Simek Date: Thu, 30 Mar 2023 12:49:38 +0200 Subject: [PATCH] fix broken links in versioned docs for 71-66 releases --- .../version-0.66/_integration-with-existing-apps-objc.md | 4 ++-- .../version-0.66/_integration-with-existing-apps-swift.md | 4 ++-- website/versioned_docs/version-0.66/animations.md | 8 ++++---- website/versioned_docs/version-0.66/button.md | 2 +- website/versioned_docs/version-0.66/communication-ios.md | 2 +- .../versioned_docs/version-0.66/custom-webview-android.md | 2 +- website/versioned_docs/version-0.66/debugging.md | 2 +- .../versioned_docs/version-0.66/direct-manipulation.md | 4 ++-- website/versioned_docs/version-0.66/flatlist.md | 2 +- website/versioned_docs/version-0.66/imagebackground.md | 2 +- website/versioned_docs/version-0.66/inputaccessoryview.md | 2 +- .../versioned_docs/version-0.66/native-components-ios.md | 2 +- .../versioned_docs/version-0.66/native-modules-android.md | 6 +++--- website/versioned_docs/version-0.66/native-modules-ios.md | 6 +++--- website/versioned_docs/version-0.66/panresponder.md | 2 +- website/versioned_docs/version-0.66/platformcolor.md | 2 +- website/versioned_docs/version-0.66/roottag.md | 2 +- website/versioned_docs/version-0.66/scrollview.md | 2 +- website/versioned_docs/version-0.66/troubleshooting.md | 2 +- website/versioned_docs/version-0.66/usecolorscheme.md | 2 +- website/versioned_docs/version-0.66/viewtoken.md | 2 +- .../version-0.67/_integration-with-existing-apps-objc.md | 4 ++-- .../version-0.67/_integration-with-existing-apps-swift.md | 4 ++-- website/versioned_docs/version-0.67/animations.md | 8 ++++---- website/versioned_docs/version-0.67/button.md | 2 +- website/versioned_docs/version-0.67/communication-ios.md | 2 +- website/versioned_docs/version-0.67/debugging.md | 2 +- .../versioned_docs/version-0.67/direct-manipulation.md | 4 ++-- website/versioned_docs/version-0.67/flatlist.md | 2 +- website/versioned_docs/version-0.67/image.md | 2 +- website/versioned_docs/version-0.67/imagebackground.md | 2 +- website/versioned_docs/version-0.67/inputaccessoryview.md | 2 +- .../versioned_docs/version-0.67/native-components-ios.md | 2 +- .../versioned_docs/version-0.67/native-modules-android.md | 6 +++--- website/versioned_docs/version-0.67/native-modules-ios.md | 6 +++--- website/versioned_docs/version-0.67/panresponder.md | 2 +- website/versioned_docs/version-0.67/platformcolor.md | 2 +- website/versioned_docs/version-0.67/roottag.md | 2 +- website/versioned_docs/version-0.67/scrollview.md | 2 +- website/versioned_docs/version-0.67/troubleshooting.md | 2 +- website/versioned_docs/version-0.67/usecolorscheme.md | 2 +- website/versioned_docs/version-0.67/viewtoken.md | 2 +- .../version-0.68/_integration-with-existing-apps-objc.md | 4 ++-- .../version-0.68/_integration-with-existing-apps-swift.md | 4 ++-- website/versioned_docs/version-0.68/animations.md | 8 ++++---- website/versioned_docs/version-0.68/button.md | 2 +- website/versioned_docs/version-0.68/communication-ios.md | 2 +- website/versioned_docs/version-0.68/debugging.md | 2 +- .../versioned_docs/version-0.68/direct-manipulation.md | 4 ++-- website/versioned_docs/version-0.68/flatlist.md | 2 +- website/versioned_docs/version-0.68/image.md | 2 +- website/versioned_docs/version-0.68/imagebackground.md | 2 +- website/versioned_docs/version-0.68/inputaccessoryview.md | 2 +- .../versioned_docs/version-0.68/native-components-ios.md | 2 +- .../versioned_docs/version-0.68/native-modules-android.md | 6 +++--- website/versioned_docs/version-0.68/native-modules-ios.md | 6 +++--- .../version-0.68/new-architecture-app-renderer-android.md | 2 +- .../version-0.68/new-architecture-app-renderer-ios.md | 4 ++-- website/versioned_docs/version-0.68/panresponder.md | 2 +- website/versioned_docs/version-0.68/platformcolor.md | 2 +- website/versioned_docs/version-0.68/roottag.md | 2 +- website/versioned_docs/version-0.68/scrollview.md | 2 +- website/versioned_docs/version-0.68/troubleshooting.md | 2 +- website/versioned_docs/version-0.68/usecolorscheme.md | 2 +- website/versioned_docs/version-0.68/viewtoken.md | 2 +- .../version-0.69/_integration-with-existing-apps-objc.md | 4 ++-- .../version-0.69/_integration-with-existing-apps-swift.md | 4 ++-- website/versioned_docs/version-0.69/animations.md | 8 ++++---- website/versioned_docs/version-0.69/button.md | 2 +- website/versioned_docs/version-0.69/communication-ios.md | 2 +- website/versioned_docs/version-0.69/debugging.md | 2 +- .../versioned_docs/version-0.69/direct-manipulation.md | 4 ++-- website/versioned_docs/version-0.69/flatlist.md | 2 +- website/versioned_docs/version-0.69/image.md | 2 +- website/versioned_docs/version-0.69/imagebackground.md | 2 +- website/versioned_docs/version-0.69/inputaccessoryview.md | 2 +- .../versioned_docs/version-0.69/native-components-ios.md | 2 +- .../versioned_docs/version-0.69/native-modules-android.md | 6 +++--- website/versioned_docs/version-0.69/native-modules-ios.md | 6 +++--- .../version-0.69/new-architecture-app-renderer-android.md | 2 +- .../version-0.69/new-architecture-app-renderer-ios.md | 4 ++-- website/versioned_docs/version-0.69/panresponder.md | 2 +- website/versioned_docs/version-0.69/platformcolor.md | 2 +- website/versioned_docs/version-0.69/roottag.md | 2 +- website/versioned_docs/version-0.69/scrollview.md | 2 +- website/versioned_docs/version-0.69/troubleshooting.md | 2 +- website/versioned_docs/version-0.69/usecolorscheme.md | 2 +- website/versioned_docs/version-0.69/viewtoken.md | 2 +- .../version-0.70/_integration-with-existing-apps-objc.md | 4 ++-- .../version-0.70/_integration-with-existing-apps-swift.md | 4 ++-- website/versioned_docs/version-0.70/animations.md | 8 ++++---- website/versioned_docs/version-0.70/button.md | 2 +- website/versioned_docs/version-0.70/communication-ios.md | 2 +- website/versioned_docs/version-0.70/debugging.md | 2 +- .../versioned_docs/version-0.70/direct-manipulation.md | 4 ++-- website/versioned_docs/version-0.70/flatlist.md | 2 +- website/versioned_docs/version-0.70/image.md | 2 +- website/versioned_docs/version-0.70/imagebackground.md | 2 +- website/versioned_docs/version-0.70/inputaccessoryview.md | 2 +- .../versioned_docs/version-0.70/native-components-ios.md | 2 +- .../versioned_docs/version-0.70/native-modules-android.md | 6 +++--- website/versioned_docs/version-0.70/native-modules-ios.md | 6 +++--- .../version-0.70/new-architecture-app-renderer-android.md | 2 +- .../version-0.70/new-architecture-app-renderer-ios.md | 4 ++-- website/versioned_docs/version-0.70/panresponder.md | 2 +- website/versioned_docs/version-0.70/platformcolor.md | 2 +- website/versioned_docs/version-0.70/roottag.md | 2 +- website/versioned_docs/version-0.70/scrollview.md | 2 +- .../the-new-architecture/pillars-fabric-components.md | 2 +- .../the-new-architecture/pillars-turbomodule.md | 2 +- website/versioned_docs/version-0.70/troubleshooting.md | 2 +- website/versioned_docs/version-0.70/usecolorscheme.md | 2 +- website/versioned_docs/version-0.70/viewtoken.md | 2 +- .../version-0.71/_integration-with-existing-apps-objc.md | 4 ++-- .../version-0.71/_integration-with-existing-apps-swift.md | 6 +++--- website/versioned_docs/version-0.71/animations.md | 8 ++++---- website/versioned_docs/version-0.71/button.md | 2 +- website/versioned_docs/version-0.71/communication-ios.md | 2 +- website/versioned_docs/version-0.71/debugging.md | 2 +- .../versioned_docs/version-0.71/direct-manipulation.md | 4 ++-- website/versioned_docs/version-0.71/flatlist.md | 2 +- website/versioned_docs/version-0.71/image.md | 2 +- website/versioned_docs/version-0.71/imagebackground.md | 2 +- website/versioned_docs/version-0.71/inputaccessoryview.md | 2 +- .../versioned_docs/version-0.71/native-components-ios.md | 2 +- .../versioned_docs/version-0.71/native-modules-android.md | 6 +++--- website/versioned_docs/version-0.71/native-modules-ios.md | 6 +++--- website/versioned_docs/version-0.71/panresponder.md | 2 +- website/versioned_docs/version-0.71/platformcolor.md | 2 +- website/versioned_docs/version-0.71/roottag.md | 2 +- website/versioned_docs/version-0.71/scrollview.md | 2 +- .../version-0.71/the-new-architecture/cxx-custom-types.md | 6 +++--- .../the-new-architecture/cxx-cxxturbomodules.md | 2 +- .../the-new-architecture/pillars-fabric-components.md | 2 +- .../the-new-architecture/pillars-turbomodule.md | 2 +- website/versioned_docs/version-0.71/troubleshooting.md | 2 +- website/versioned_docs/version-0.71/usecolorscheme.md | 2 +- website/versioned_docs/version-0.71/viewtoken.md | 2 +- 138 files changed, 204 insertions(+), 204 deletions(-) diff --git a/website/versioned_docs/version-0.66/_integration-with-existing-apps-objc.md b/website/versioned_docs/version-0.66/_integration-with-existing-apps-objc.md index f2047c69f3b..fefbdc98a3b 100644 --- a/website/versioned_docs/version-0.66/_integration-with-existing-apps-objc.md +++ b/website/versioned_docs/version-0.66/_integration-with-existing-apps-objc.md @@ -111,7 +111,7 @@ Install the Command Line Tools. Choose "Preferences..." in the Xcode menu. Go to Before you integrate React Native into your application, you will want to decide what parts of the React Native framework you would like to integrate. We will use CocoaPods to specify which of these "subspecs" your app will depend on. -The list of supported `subspec`s is available in [`/node_modules/react-native/React.podspec`](https://github.com/facebook/react-native/blob/master/React.podspec). They are generally named by functionality. For example, you will generally always want the `Core` `subspec`. That will get you the `AppRegistry`, `StyleSheet`, `View` and other core React Native libraries. If you want to add the React Native `Text` library (e.g., for `` elements), then you will need the `RCTText` `subspec`. If you want the `Image` library (e.g., for `` elements), then you will need the `RCTImage` `subspec`. +The list of supported `subspec`s is available in [`/node_modules/react-native/React.podspec`](https://github.com/facebook/react-native/blob/0.66-stable/React.podspec). They are generally named by functionality. For example, you will generally always want the `Core` `subspec`. That will get you the `AppRegistry`, `StyleSheet`, `View` and other core React Native libraries. If you want to add the React Native `Text` library (e.g., for `` elements), then you will need the `RCTText` `subspec`. If you want the `Image` library (e.g., for `` elements), then you will need the `RCTImage` `subspec`. You can specify which `subspec`s your app will depend on in a `Podfile` file. The easiest way to create a `Podfile` is by running the CocoaPods `init` command in the `/ios` subfolder of your project: @@ -306,7 +306,7 @@ First `import` the `RCTRootView` header. } ``` -> Note that `RCTRootView initWithURL` starts up a new JSC VM. To save resources and simplify the communication between RN views in different parts of your native app, you can have multiple views powered by React Native that are associated with a single JS runtime. To do that, instead of using `[RCTRootView alloc] initWithURL`, use [`RCTBridge initWithBundleURL`](https://github.com/facebook/react-native/blob/master/React/Base/RCTBridge.h#L93) to create a bridge and then use `RCTRootView initWithBridge`. +> Note that `RCTRootView initWithURL` starts up a new JSC VM. To save resources and simplify the communication between RN views in different parts of your native app, you can have multiple views powered by React Native that are associated with a single JS runtime. To do that, instead of using `[RCTRootView alloc] initWithURL`, use [`RCTBridge initWithBundleURL`](https://github.com/facebook/react-native/blob/0.66-stable/React/Base/RCTBridge.h#L93) to create a bridge and then use `RCTRootView initWithBridge`. > When moving your app to production, the `NSURL` can point to a pre-bundled file on disk via something like `[[NSBundle mainBundle] URLForResource:@"main" withExtension:@"jsbundle"];`. You can use the `react-native-xcode.sh` script in `node_modules/react-native/scripts/` to generate that pre-bundled file. diff --git a/website/versioned_docs/version-0.66/_integration-with-existing-apps-swift.md b/website/versioned_docs/version-0.66/_integration-with-existing-apps-swift.md index cb3a21aa1a6..cc7de5e1543 100644 --- a/website/versioned_docs/version-0.66/_integration-with-existing-apps-swift.md +++ b/website/versioned_docs/version-0.66/_integration-with-existing-apps-swift.md @@ -83,7 +83,7 @@ Install the Command Line Tools. Choose "Preferences..." in the Xcode menu. Go to Before you integrate React Native into your application, you will want to decide what parts of the React Native framework you would like to integrate. We will use CocoaPods to specify which of these "subspecs" your app will depend on. -The list of supported `subspec`s is available in [`/node_modules/react-native/React.podspec`](https://github.com/facebook/react-native/blob/master/React.podspec). They are generally named by functionality. For example, you will generally always want the `Core` `subspec`. That will get you the `AppRegistry`, `StyleSheet`, `View` and other core React Native libraries. If you want to add the React Native `Text` library (e.g., for `` elements), then you will need the `RCTText` `subspec`. If you want the `Image` library (e.g., for `` elements), then you will need the `RCTImage` `subspec`. +The list of supported `subspec`s is available in [`/node_modules/react-native/React.podspec`](https://github.com/facebook/react-native/blob/0.66-stable/React.podspec). They are generally named by functionality. For example, you will generally always want the `Core` `subspec`. That will get you the `AppRegistry`, `StyleSheet`, `View` and other core React Native libraries. If you want to add the React Native `Text` library (e.g., for `` elements), then you will need the `RCTText` `subspec`. If you want the `Image` library (e.g., for `` elements), then you will need the `RCTImage` `subspec`. You can specify which `subspec`s your app will depend on in a `Podfile` file. The easiest way to create a `Podfile` is by running the CocoaPods `init` command in the `/ios` subfolder of your project: @@ -267,7 +267,7 @@ import React } ``` -> Note that `RCTRootView bundleURL` starts up a new JSC VM. To save resources and simplify the communication between RN views in different parts of your native app, you can have multiple views powered by React Native that are associated with a single JS runtime. To do that, instead of using `RCTRootView bundleURL`, use [`RCTBridge initWithBundleURL`](https://github.com/facebook/react-native/blob/master/React/Base/RCTBridge.h#L89) to create a bridge and then use `RCTRootView initWithBridge`. +> Note that `RCTRootView bundleURL` starts up a new JSC VM. To save resources and simplify the communication between RN views in different parts of your native app, you can have multiple views powered by React Native that are associated with a single JS runtime. To do that, instead of using `RCTRootView bundleURL`, use [`RCTBridge initWithBundleURL`](https://github.com/facebook/react-native/blob/0.66-stable/React/Base/RCTBridge.h#L89) to create a bridge and then use `RCTRootView initWithBridge`. > When moving your app to production, the `NSURL` can point to a pre-bundled file on disk via something like `let mainBundle = NSBundle(URLForResource: "main" withExtension:"jsbundle")`. You can use the `react-native-xcode.sh` script in `node_modules/react-native/scripts/` to generate that pre-bundled file. diff --git a/website/versioned_docs/version-0.66/animations.md b/website/versioned_docs/version-0.66/animations.md index c20d2c02564..6677cd23bf7 100644 --- a/website/versioned_docs/version-0.66/animations.md +++ b/website/versioned_docs/version-0.66/animations.md @@ -694,7 +694,7 @@ The native driver also works with `Animated.event`. This is especially useful fo ``` -You can see the native driver in action by running the [RNTester app](https://github.com/facebook/react-native/blob/master/packages/rn-tester/), then loading the Native Animated Example. You can also take a look at the [source code](https://github.com/facebook/react-native/blob/master/packages/rn-tester/js/examples/NativeAnimation/NativeAnimationsExample.js) to learn how these examples were produced. +You can see the native driver in action by running the [RNTester app](https://github.com/facebook/react-native/blob/0.66-stable/packages/rn-tester/), then loading the Native Animated Example. You can also take a look at the [source code](https://github.com/facebook/react-native/blob/0.66-stable/packages/rn-tester/js/examples/NativeAnimation/NativeAnimationsExample.js) to learn how these examples were produced. #### Caveats @@ -722,8 +722,8 @@ While using transform styles such as `rotateY`, `rotateX`, and others ensure the The RNTester app has various examples of `Animated` in use: -- [AnimatedGratuitousApp](https://github.com/facebook/react-native/tree/main/packages/rn-tester/js/examples/AnimatedGratuitousApp) -- [NativeAnimationsExample](https://github.com/facebook/react-native/blob/main/packages/rn-tester/js/examples/NativeAnimation/NativeAnimationsExample.js) +- [AnimatedGratuitousApp](https://github.com/facebook/react-native/tree/0.66-stable/packages/rn-tester/js/examples/AnimatedGratuitousApp) +- [NativeAnimationsExample](https://github.com/facebook/react-native/blob/0.66-stable/packages/rn-tester/js/examples/NativeAnimation/NativeAnimationsExample.js) ## `LayoutAnimation` API @@ -804,7 +804,7 @@ const styles = StyleSheet.create({ }); ``` -This example uses a preset value, you can customize the animations as you need, see [LayoutAnimation.js](https://github.com/facebook/react-native/blob/master/Libraries/LayoutAnimation/LayoutAnimation.js) for more information. +This example uses a preset value, you can customize the animations as you need, see [LayoutAnimation.js](https://github.com/facebook/react-native/blob/0.66-stable/Libraries/LayoutAnimation/LayoutAnimation.js) for more information. ## Additional notes diff --git a/website/versioned_docs/version-0.66/button.md b/website/versioned_docs/version-0.66/button.md index 9e218520003..3c8b928258c 100644 --- a/website/versioned_docs/version-0.66/button.md +++ b/website/versioned_docs/version-0.66/button.md @@ -5,7 +5,7 @@ title: Button A basic button component that should render nicely on any platform. Supports a minimal level of customization. -If this button doesn't look right for your app, you can build your own button using [TouchableOpacity](touchableopacity) or [TouchableWithoutFeedback](touchablewithoutfeedback). For inspiration, look at the [source code for this button component](https://github.com/facebook/react-native/blob/master/Libraries/Components/Button.js). Or, take a look at the [wide variety of button components built by the community](https://js.coach/?menu%5Bcollections%5D=React%20Native&page=1&query=button). +If this button doesn't look right for your app, you can build your own button using [TouchableOpacity](touchableopacity) or [TouchableWithoutFeedback](touchablewithoutfeedback). For inspiration, look at the [source code for this button component](https://github.com/facebook/react-native/blob/0.66-stable/Libraries/Components/Button.js). Or, take a look at the [wide variety of button components built by the community](https://js.coach/?menu%5Bcollections%5D=React%20Native&page=1&query=button). ```jsx