diff --git a/docs/_integration-with-existing-apps-ios.md b/docs/_integration-with-existing-apps-ios.md index 187959716e7..55c7d700a83 100644 --- a/docs/_integration-with-existing-apps-ios.md +++ b/docs/_integration-with-existing-apps-ios.md @@ -460,7 +460,7 @@ class ViewController: UIViewController { -Make sure to disable the Sandbox scripting. To achieve this, in Xcode, click on your app, then on build settings. Filter for script and set the `User Script Sandboxing` to `NO`. This step is needed to properly switch between the Debug and Release version of the [Hermes engine](https://github.com/facebook/hermes/blob/main/README.md) that we ship with React Native. +Make sure to disable the Sandbox scripting. To achieve this, in Xcode, click on your app, then on build settings. Filter for script and set the `User Script Sandboxing` to `NO`. This step is needed to properly switch between the Debug and Release version of the [Hermes engine](https://github.com/meta/hermes/blob/main/README.md) that we ship with React Native. ![Disable Sandboxing](/docs/assets/disable-sandboxing.png) diff --git a/docs/images.md b/docs/images.md index ccba26a7d62..0345c7837a9 100644 --- a/docs/images.md +++ b/docs/images.md @@ -82,7 +82,7 @@ After changing this setting, make sure to do a clean build. ## Static Non-Image Resources -The `require` syntax described above can be used to statically include audio, video or document files in your project as well. Most common file types are supported including `.mp3`, `.wav`, `.mp4`, `.mov`, `.html`, `.pdf` and more. See [bundler defaults](https://github.com/facebook/metro/blob/main/packages/metro-config/src/defaults/defaults.js#L16-L51) for the full list. +The `require` syntax described above can be used to statically include audio, video or document files in your project as well. Most common file types are supported including `.mp3`, `.wav`, `.mp4`, `.mov`, `.html`, `.pdf` and more. See [bundler defaults](https://github.com/react/metro/blob/main/packages/metro-config/src/defaults/defaults.js#L16-L51) for the full list. You can add support for other types by adding an [`assetExts` resolver option](https://metrobundler.dev/docs/configuration#resolver-options) in your [Metro configuration](https://metrobundler.dev/docs/configuration). diff --git a/docs/layout-props.md b/docs/layout-props.md index 433720d88f4..f79aefb358a 100644 --- a/docs/layout-props.md +++ b/docs/layout-props.md @@ -592,7 +592,7 @@ This style takes precedence over the `left` and `right` styles. ### `flex` -In React Native `flex` does not work the same way that it does in CSS. `flex` is a number rather than a string, and it works according to the [Yoga](https://github.com/facebook/yoga) layout engine. +In React Native `flex` does not work the same way that it does in CSS. `flex` is a number rather than a string, and it works according to the [Yoga](https://github.com/react/yoga) layout engine. When `flex` is a positive number, it makes the component flexible, and it will be sized proportional to its flex value. So a component with `flex` set to `2` will take twice the space as a component with `flex` set to 1. `flex: ` equates to `flexGrow: , flexShrink: 1, flexBasis: 0`. diff --git a/website/architecture/bundled-hermes.md b/website/architecture/bundled-hermes.md index b9688fbe382..94da0c245d4 100644 --- a/website/architecture/bundled-hermes.md +++ b/website/architecture/bundled-hermes.md @@ -21,7 +21,7 @@ From 0.69 on, you will always have a JS engine that has been built and tested al Historically, React Native and Hermes followed two **distinct release processes** with distinct versioning. Having distinct releases with distinct numbers created confusion in the OSS ecosystem, where it was not clear if a specific version of Hermes was compatible with a specific version of React Native (i.e. you needed to know that Hermes 0.11.0 was compatible only with React Native 0.68.0, etc.) -Both Hermes and React Native, share the JSI code ([Hermes here](https://github.com/facebook/hermes/tree/main/API/jsi/jsi) and [React Native here](https://github.com/react/react-native/tree/main/packages/react-native/ReactCommon/jsi/jsi)). If the two JSI copies of JSI get out of sync, a build of Hermes won't be compatible with a build of React Native. You can read more about this [ABI incompatibility problem here](https://github.com/react-native-community/discussions-and-proposals/issues/257). +Both Hermes and React Native, share the JSI code ([Hermes here](https://github.com/meta/hermes/tree/main/API/jsi/jsi) and [React Native here](https://github.com/react/react-native/tree/main/packages/react-native/ReactCommon/jsi/jsi)). If the two JSI copies of JSI get out of sync, a build of Hermes won't be compatible with a build of React Native. You can read more about this [ABI incompatibility problem here](https://github.com/react-native-community/discussions-and-proposals/issues/257). To overcome this problem, we've extended the React Native release process to download and build Hermes and made sure only one copy of JSI is used when building Hermes. @@ -164,6 +164,6 @@ The prebuilt artifacts for Hermes do not contain debug symbols (dSYMs) by defaul We'd like to stress that this is essentially an organizational change on _where_ Hermes is built and _how_ the code is synchronized between the two repositories. The change should be fully transparent to our users. -Historically, we used to cut a release of Hermes for a specific version of React Native (e.g. [`v0.11.0 for RN0.68.x`](https://github.com/facebook/hermes/releases/tag/v0.11.0)). +Historically, we used to cut a release of Hermes for a specific version of React Native (e.g. [`v0.11.0 for RN0.68.x`](https://github.com/meta/hermes/releases/tag/v0.11.0)). With 'Bundled Hermes', you can instead rely on a tag that will represent the version used when a specific version of React Native was cut. diff --git a/website/architecture/landing-page.md b/website/architecture/landing-page.md index 6b2fc2ad223..1dbd6d34f42 100644 --- a/website/architecture/landing-page.md +++ b/website/architecture/landing-page.md @@ -201,7 +201,7 @@ The team is actively researching and developing new capabilities the New Archite - [Updates to the event loop model](https://github.com/react-native-community/discussions-and-proposals/blob/main/proposals/0744-well-defined-event-loop.md) - [Node and layout APIs](https://github.com/react-native-community/discussions-and-proposals/blob/main/proposals/0607-dom-traversal-and-layout-apis.md) -- [Styling and layout conformance](https://github.com/facebook/yoga/releases/tag/v2.0.0) +- [Styling and layout conformance](https://github.com/react/yoga/releases/tag/v2.0.0) You can follow along and contribute in our dedicated [discussions & proposals](https://github.com/react-native-community/discussions-and-proposals/discussions/651) repository. diff --git a/website/blog/2016-03-24-introducing-hot-reloading.md b/website/blog/2016-03-24-introducing-hot-reloading.md index bac8b252158..cd786ed037f 100644 --- a/website/blog/2016-03-24-introducing-hot-reloading.md +++ b/website/blog/2016-03-24-introducing-hot-reloading.md @@ -173,7 +173,7 @@ React components are a bit harder to get to work with Hot Reloading. The problem Besides creating the proxy component, the transform also defines the `accept` function with a piece of code to force React to re-render the component. This way, we can hot reload rendering code without losing any of the app's state. -The default [transformer](https://github.com/facebook/react-native/blob/master/packager/transformer.js#L92-L95) that comes with React Native uses the `babel-preset-react-native`, which is [configured](https://github.com/facebook/react-native/blob/master/babel-preset/configs/hmr.js#L24-L31) to use `react-transform` the same way you'd use it on a React web project that uses webpack. +The default [transformer](https://github.com/react/react-native/blob/master/packager/transformer.js#L92-L95) that comes with React Native uses the `babel-preset-react-native`, which is [configured](https://github.com/react/react-native/blob/master/babel-preset/configs/hmr.js#L24-L31) to use `react-transform` the same way you'd use it on a React web project that uses webpack. ## Redux Stores @@ -207,6 +207,6 @@ When you change a reducer, the code to accept that reducer will be sent to the c ## Conclusion -If you are interested in helping making hot reloading better, I encourage you to read [Dan Abramov's post around the future of hot reloading](https://medium.com/@dan_abramov/hot-reloading-in-react-1140438583bf#.jmivpvmz4) and to contribute. For example, Johny Days is going to [make it work with multiple connected clients](https://github.com/facebook/react-native/pull/6179). We're relying on you all to maintain and improve this feature. +If you are interested in helping making hot reloading better, I encourage you to read [Dan Abramov's post around the future of hot reloading](https://medium.com/@dan_abramov/hot-reloading-in-react-1140438583bf#.jmivpvmz4) and to contribute. For example, Johny Days is going to [make it work with multiple connected clients](https://github.com/react/react-native/pull/6179). We're relying on you all to maintain and improve this feature. With React Native, we have the opportunity to rethink the way we build apps in order to make it a great developer experience. Hot reloading is only one piece of the puzzle, what other crazy hacks can we do to make it better? diff --git a/website/blog/2016-07-06-toward-better-documentation.md b/website/blog/2016-07-06-toward-better-documentation.md index 13e33d48cca..8808db2a1b1 100644 --- a/website/blog/2016-07-06-toward-better-documentation.md +++ b/website/blog/2016-07-06-toward-better-documentation.md @@ -62,7 +62,7 @@ We also worked on the [guide to integrating React Native into an existing app](/ Your feedback lets us know what we should prioritize. I know some people will read this blog post and think "Better docs? Pffft. The documentation for X is still garbage!". That's great - we need that energy. The best way to give us feedback depends on the sort of feedback. -If you find a mistake in the documentation, like inaccurate descriptions or code that doesn't actually work, [file an issue](https://github.com/facebook/react-native/issues). Tag it with "Documentation", so that it's easier to route it to the right people. +If you find a mistake in the documentation, like inaccurate descriptions or code that doesn't actually work, [file an issue](https://github.com/react/react-native/issues). Tag it with "Documentation", so that it's easier to route it to the right people. If there isn't a specific mistake, but something in the documentation is fundamentally confusing, it's not a great fit for a GitHub issue. Instead, post on [Canny](https://react-native.canny.io/feature-requests) about the area of the docs that could use help. This helps us prioritize when we are doing more general work like guide-writing. diff --git a/website/blog/2016-08-19-right-to-left-support-for-react-native-apps.md b/website/blog/2016-08-19-right-to-left-support-for-react-native-apps.md index 89a295de054..a1e0ee919d9 100644 --- a/website/blog/2016-08-19-right-to-left-support-for-react-native-apps.md +++ b/website/blog/2016-08-19-right-to-left-support-for-react-native-apps.md @@ -9,7 +9,7 @@ tags: [engineering] After launching an app to the app stores, internationalization is the next step to further your audience reach. Over 20 countries and numerous people around the world use Right-to-Left (RTL) languages. Thus, making your app support RTL for them is necessary. -We're glad to announce that React Native has been improved to support RTL layouts. This is now available in the [react-native](https://github.com/facebook/react-native) master branch today, and will be available in the next RC: [`v0.33.0-rc`](https://github.com/facebook/react-native/releases). +We're glad to announce that React Native has been improved to support RTL layouts. This is now available in the [react-native](https://github.com/react/react-native) master branch today, and will be available in the next RC: [`v0.33.0-rc`](https://github.com/react/react-native/releases). This involved changing [css-layout](https://github.com/facebook/css-layout), the core layout engine used by RN, and RN core implementation, as well as specific OSS JS components to support RTL. @@ -34,7 +34,7 @@ These include: - [css-layout RTL support for absolute positioning](https://github.com/facebook/css-layout/commit/46c842c71a1232c3c78c4215275d104a389a9a0f) - mapping `left` and `right` to `start` and `end` in RN core implementation for shadow nodes -- and exposing a [bridged utility module](https://github.com/facebook/react-native/blob/f0fb228ec76ed49e6ed6d786d888e8113b8959a2/Libraries/Utilities/I18nManager.js) to help control the RTL layout +- and exposing a [bridged utility module](https://github.com/react/react-native/blob/f0fb228ec76ed49e6ed6d786d888e8113b8959a2/Libraries/Utilities/I18nManager.js) to help control the RTL layout With this update, when you allow RTL layout for your app: @@ -80,7 +80,7 @@ In general, most components are already RTL-ready, for example: -However, there are several cases to be aware of, for which you will need the [`I18nManager`](https://github.com/facebook/react-native/blob/f0fb228ec76ed49e6ed6d786d888e8113b8959a2/Libraries/Utilities/I18nManager.js). In [`I18nManager`](https://github.com/facebook/react-native/blob/f0fb228ec76ed49e6ed6d786d888e8113b8959a2/Libraries/Utilities/I18nManager.js), there is a constant `isRTL` to tell if layout of app is RTL or not, so that you can make the necessary changes according to the layout. +However, there are several cases to be aware of, for which you will need the [`I18nManager`](https://github.com/react/react-native/blob/f0fb228ec76ed49e6ed6d786d888e8113b8959a2/Libraries/Utilities/I18nManager.js). In [`I18nManager`](https://github.com/react/react-native/blob/f0fb228ec76ed49e6ed6d786d888e8113b8959a2/Libraries/Utilities/I18nManager.js), there is a constant `isRTL` to tell if layout of app is RTL or not, so that you can make the necessary changes according to the layout. #### Icons with Directional Meaning @@ -117,9 +117,9 @@ Here are two ways to flip the icon according to the direction: #### Gestures and Animations -In Android and iOS development, when you change to RTL layout, the gestures and animations are the opposite of LTR layout. Currently, in RN, gestures and animations are not supported on RN core code level, but on components level. The good news is, some of these components already support RTL today, such as [`SwipeableRow`](https://github.com/facebook/react-native/blob/38a6eec0db85a5204e85a9a92b4dee2db9641671/Libraries/Experimental/SwipeableRow/SwipeableRow.js) and [`NavigationExperimental`](https://github.com/facebook/react-native/tree/master/Libraries/NavigationExperimental). However, other components with gestures will need to support RTL manually. +In Android and iOS development, when you change to RTL layout, the gestures and animations are the opposite of LTR layout. Currently, in RN, gestures and animations are not supported on RN core code level, but on components level. The good news is, some of these components already support RTL today, such as [`SwipeableRow`](https://github.com/react/react-native/blob/38a6eec0db85a5204e85a9a92b4dee2db9641671/Libraries/Experimental/SwipeableRow/SwipeableRow.js) and [`NavigationExperimental`](https://github.com/react/react-native/tree/master/Libraries/NavigationExperimental). However, other components with gestures will need to support RTL manually. -A good example to illustrate gesture RTL support is [`SwipeableRow`](https://github.com/facebook/react-native/blob/38a6eec0db85a5204e85a9a92b4dee2db9641671/Libraries/Experimental/SwipeableRow/SwipeableRow.js). +A good example to illustrate gesture RTL support is [`SwipeableRow`](https://github.com/react/react-native/blob/38a6eec0db85a5204e85a9a92b4dee2db9641671/Libraries/Experimental/SwipeableRow/SwipeableRow.js).

@@ -159,7 +159,7 @@ _animateBounceBack(duration: number): void { ## Maintaining Your RTL-ready App -Even after the initial RTL-compatible app release, you will likely need to iterate on new features. To improve development efficiency, [`I18nManager`](https://github.com/facebook/react-native/blob/f0fb228ec76ed49e6ed6d786d888e8113b8959a2/Libraries/Utilities/I18nManager.js) provides the `forceRTL()` function for faster RTL testing without changing the test device language. You might want to provide a simple switch for this in your app. Here's an example from the RTL example in the RNTester: +Even after the initial RTL-compatible app release, you will likely need to iterate on new features. To improve development efficiency, [`I18nManager`](https://github.com/react/react-native/blob/f0fb228ec76ed49e6ed6d786d888e8113b8959a2/Libraries/Utilities/I18nManager.js) provides the `forceRTL()` function for faster RTL testing without changing the test device language. You might want to provide a simple switch for this in your app. Here's an example from the RTL example in the RNTester:

@@ -211,6 +211,6 @@ The RTL support should cover most of the UX in your app; however, there are some ## Try it Out! -Check out the [`RTLExample`](https://github.com/facebook/react-native/blob/master/packages/rn-tester/js/examples/RTL/RTLExample.js) in the `RNTester` to understand more about RTL support, and let us know how it works for you! +Check out the [`RTLExample`](https://github.com/react/react-native/blob/master/packages/rn-tester/js/examples/RTL/RTLExample.js) in the `RNTester` to understand more about RTL support, and let us know how it works for you! Finally, thank you for reading! We hope that the RTL support for React Native helps you grow your apps for international audience! diff --git a/website/blog/2016-10-25-0.36-headless-js-the-keyboard-api-and-more.md b/website/blog/2016-10-25-0.36-headless-js-the-keyboard-api-and-more.md index e69965fe3f1..78bb74134a9 100644 --- a/website/blog/2016-10-25-0.36-headless-js-the-keyboard-api-and-more.md +++ b/website/blog/2016-10-25-0.36-headless-js-the-keyboard-api-and-more.md @@ -4,7 +4,7 @@ authors: [hectorramos] tags: [announcement] --- -Today we are releasing [React Native 0.36](https://github.com/facebook/react-native/releases/tag/v0.36.0). Read on to learn more about what's new. +Today we are releasing [React Native 0.36](https://github.com/react/react-native/releases/tag/v0.36.0). Read on to learn more about what's new. ## Headless JS @@ -74,7 +74,7 @@ A new `barStyle` value has been added to `StatusBar`: `dark-content`. With this ## ...and more -The above is just a sample of what has changed in 0.36. Check out the [release notes on GitHub](https://github.com/facebook/react-native/releases/tag/v0.36.0) to see the full list of new features, bug fixes, and breaking changes. +The above is just a sample of what has changed in 0.36. Check out the [release notes on GitHub](https://github.com/react/react-native/releases/tag/v0.36.0) to see the full list of new features, bug fixes, and breaking changes. You can upgrade to 0.36 by running the following commands in a terminal: diff --git a/website/blog/2016-11-08-introducing-button-yarn-and-a-public-roadmap.md b/website/blog/2016-11-08-introducing-button-yarn-and-a-public-roadmap.md index 674abaa245d..06f5482010a 100644 --- a/website/blog/2016-11-08-introducing-button-yarn-and-a-public-roadmap.md +++ b/website/blog/2016-11-08-introducing-button-yarn-and-a-public-roadmap.md @@ -4,7 +4,7 @@ authors: [hectorramos] tags: [announcement] --- -We have heard from many people that there is so much work happening with React Native, it can be tough to keep track of what's going on. To help communicate what work is in progress, we are now publishing a [roadmap for React Native](https://github.com/facebook/react-native/wiki/Roadmap). At a high level, this work can be broken down into three priorities: +We have heard from many people that there is so much work happening with React Native, it can be tough to keep track of what's going on. To help communicate what work is in progress, we are now publishing a [roadmap for React Native](https://github.com/react/react-native/wiki/Roadmap). At a high level, this work can be broken down into three priorities: - **Core Libraries**. Adding more functionality to the most useful components and APIs. - **Stability**. Improve the underlying infrastructure to reduce bugs and improve code quality. @@ -14,7 +14,7 @@ If you have suggestions for features that you think would be valuable on the roa ## What's new in React Native -[Version 0.37 of React Native](https://github.com/facebook/react-native/releases/tag/v0.37.0), released today, introduces a new core component to make it really easy to add a touchable Button to any app. We're also introducing support for the new [Yarn](https://yarnpkg.com/) package manager, which should speed up the whole process of updating your app's dependencies. +[Version 0.37 of React Native](https://github.com/react/react-native/releases/tag/v0.37.0), released today, introduces a new core component to make it really easy to add a touchable Button to any app. We're also introducing support for the new [Yarn](https://yarnpkg.com/) package manager, which should speed up the whole process of updating your app's dependencies. ## Introducing Button @@ -50,4 +50,4 @@ In simple local testing `react-native init` finished in **about 1 minute on a go ## Thank you! -We'd like to thank everyone who contributed to this release. The full [release notes](https://github.com/facebook/react-native/releases/tag/v0.37.0) are now available on GitHub. With over two dozen bug fixes and new features, React Native just keeps getting better thanks to you. +We'd like to thank everyone who contributed to this release. The full [release notes](https://github.com/react/react-native/releases/tag/v0.37.0) are now available on GitHub. With over two dozen bug fixes and new features, React Native just keeps getting better thanks to you. diff --git a/website/blog/2016-12-05-easier-upgrades.md b/website/blog/2016-12-05-easier-upgrades.md index 020a1adc9d2..d0facb10334 100644 --- a/website/blog/2016-12-05-easier-upgrades.md +++ b/website/blog/2016-12-05-easier-upgrades.md @@ -115,7 +115,7 @@ One more reason is the recent [Yeoman wipeout](https://twitter.com/martinkonicek ## Try it out and provide feedback -As a conclusion, I would say, enjoy the feature and feel free [to suggest improvements, report issues](https://github.com/facebook/react-native/issues) and especially [send pull requests](https://github.com/facebook/react-native/pulls). Each environment is a bit different and each React Native project is different, and we need your feedback to make this work well for everyone. +As a conclusion, I would say, enjoy the feature and feel free [to suggest improvements, report issues](https://github.com/react/react-native/issues) and especially [send pull requests](https://github.com/react/react-native/pulls). Each environment is a bit different and each React Native project is different, and we need your feedback to make this work well for everyone. ### Thank you! diff --git a/website/blog/2017-01-07-monthly-release-cadence.md b/website/blog/2017-01-07-monthly-release-cadence.md index 649f932c8e7..e739cd3c090 100644 --- a/website/blog/2017-01-07-monthly-release-cadence.md +++ b/website/blog/2017-01-07-monthly-release-cadence.md @@ -14,13 +14,13 @@ We frequently hear feedback from the community that the release rate is hard to ### Now releasing monthly -We're happy to announce the new monthly release cadence, and the December 2016 release, `v0.40`, which has been stabilizing for all last month and is ready to adopt. (Just make sure to [update headers in your native modules on iOS](https://github.com/facebook/react-native/releases/tag/v0.40.0)). +We're happy to announce the new monthly release cadence, and the December 2016 release, `v0.40`, which has been stabilizing for all last month and is ready to adopt. (Just make sure to [update headers in your native modules on iOS](https://github.com/react/react-native/releases/tag/v0.40.0)). Although it may vary a few days to avoid weekends or handle unforeseen issues, you can now expect a given release to be available on the first day of the month, and released on the last. ### Use the current month for the best support -The January release candidate is ready to try, and you can [see what's new here](https://github.com/facebook/react-native/releases/tag/v0.41.0-rc.0). +The January release candidate is ready to try, and you can [see what's new here](https://github.com/react/react-native/releases/tag/v0.41.0-rc.0). To see what changes are coming and provide better feedback to React Native contributors, always use the current month's release candidate when possible. By the time each version is released at the end of the month, the changes it contains will have been shipped in production Facebook apps for over two weeks. diff --git a/website/blog/2017-03-13-better-list-views.md b/website/blog/2017-03-13-better-list-views.md index dad04b6b235..696229cb87c 100644 --- a/website/blog/2017-03-13-better-list-views.md +++ b/website/blog/2017-03-13-better-list-views.md @@ -55,7 +55,7 @@ Lists are used in many contexts, so we packed the new components full of feature - Scroll loading (`onEndReached`). - Pull to refresh (`onRefresh` / `refreshing`). -- [Configurable](https://github.com/facebook/react-native/blob/master/Libraries/CustomComponents/Lists/ViewabilityHelper.js) viewability (VPV) callbacks (`onViewableItemsChanged` / `viewabilityConfig`). +- [Configurable](https://github.com/react/react-native/blob/master/Libraries/CustomComponents/Lists/ViewabilityHelper.js) viewability (VPV) callbacks (`onViewableItemsChanged` / `viewabilityConfig`). - Horizontal mode (`horizontal`). - Intelligent item and section separators. - Multi-column support (`numColumns`) diff --git a/website/blog/2017-06-21-react-native-monthly-1.md b/website/blog/2017-06-21-react-native-monthly-1.md index 72145b15b33..506cc85df2b 100644 --- a/website/blog/2017-06-21-react-native-monthly-1.md +++ b/website/blog/2017-06-21-react-native-monthly-1.md @@ -44,7 +44,7 @@ As teams' plans might be of interest to a broader audience, we'll be sharing the - Looking into improving the release process by using [Detox](https://github.com/wix/detox) for E2E testing. Pull request should land soon. - Blob pull request they have been working on has been merged, subsequent pull requests coming up. -- Increasing [Haul](https://github.com/callstack-io/haul) adoption across internal projects to see how it performs compared to [Metro Bundler](https://github.com/facebook/metro-bundler). Working on better multi-threaded performance with the webpack team. +- Increasing [Haul](https://github.com/callstack/haul) adoption across internal projects to see how it performs compared to [Metro Bundler](https://github.com/react/metro). Working on better multi-threaded performance with the webpack team. - Internally, they have implemented a better infrastructure to manage open source projects. Plans to be getting more stuff out in upcoming weeks. - The React Native Europe conference is coming along, nothing interesting yet, but y'all invited! - Stepped back from [react-navigation](https://github.com/react-community/react-navigation) for a while to investigate alternatives (especially native navigations). @@ -58,7 +58,7 @@ As teams' plans might be of interest to a broader audience, we'll be sharing the ### Facebook -- React Native's packager is now [Metro Bundler](https://github.com/facebook/metro), in an independent repo. The Metro Bundler team in London is excited to address the needs of the community, improve modularity for additional use-cases beyond React Native, and increase responsiveness on issues and PRs. +- React Native's packager is now [Metro Bundler](https://github.com/react/metro), in an independent repo. The Metro Bundler team in London is excited to address the needs of the community, improve modularity for additional use-cases beyond React Native, and increase responsiveness on issues and PRs. - In the coming months, the React Native team will work on refining the APIs of primitive components. Expect improvements in layout quirks, accessibility, and flow typing. - The React Native team also plans on improving core modularity this year, by refactoring to fully support 3rd party platforms such as Windows and macOS. @@ -84,7 +84,7 @@ As teams' plans might be of interest to a broader audience, we'll be sharing the ### Wix - Working internally to adopt [Detox](https://github.com/wix/detox) to move significant parts of the Wix app to "zero manual QA". As a result, Detox is being used heavily in a production setting by dozens of developers and maturing rapidly. -- Working to add support to the [Metro Bundler](https://github.com/facebook/metro) for overriding any file extension during the build. Instead of just "ios" and "android", it would support any custom extension like "e2e" or "detox". Plans to use this for E2E mocking. There's already a library out called [react-native-repackager](https://github.com/wix/react-native-repackager), now working on a PR. +- Working to add support to the [Metro Bundler](https://github.com/react/metro) for overriding any file extension during the build. Instead of just "ios" and "android", it would support any custom extension like "e2e" or "detox". Plans to use this for E2E mocking. There's already a library out called [react-native-repackager](https://github.com/wix/react-native-repackager), now working on a PR. - Investigating automation of performance tests. This is a new repo called [DetoxInstruments](https://github.com/wix/DetoxInstruments). You can take a look, it's being developed open source. - Working with a contributor from KPN on Detox for Android and supporting real devices. - Thinking about "Detox as a platform" to allow building other tools that need to automate the simulator/device. An example is [Storybook](https://github.com/storybooks/react-native-storybook) for React Native or Ram's idea for integration testing. diff --git a/website/blog/2017-07-28-react-native-monthly-2.md b/website/blog/2017-07-28-react-native-monthly-2.md index 1e6cbbc1e2a..f22028d1934 100644 --- a/website/blog/2017-07-28-react-native-monthly-2.md +++ b/website/blog/2017-07-28-react-native-monthly-2.md @@ -35,8 +35,8 @@ Here are the notes from each team: ### Callstack - [Mike Grabowski](https://github.com/grabbou) has been managing React Native's monthly releases as always, including a few betas that were pushed out. In particular, working on getting a v0.43.5 build published to npm since it unblocks Windows users! -- Slow but consistent work is happening on [Haul](https://github.com/callstack-io/haul). There is a pull request that adds HMR, and other improvements have shipped. Recently got a few industry leaders to adopt it. Possibly planning to start a full-time paid work in that area. -- [Michał Pierzchała](https://twitter.com/thymikee) from the [Jest](https://github.com/facebook/jest) team has joined us at Callstack this month. He will help maintain [Haul](https://github.com/callstack-io/haul) and possibly work on [Metro Bundler](https://github.com/facebook/metro) and [Jest](https://github.com/facebook/jest). +- Slow but consistent work is happening on [Haul](https://github.com/callstack/haul). There is a pull request that adds HMR, and other improvements have shipped. Recently got a few industry leaders to adopt it. Possibly planning to start a full-time paid work in that area. +- [Michał Pierzchała](https://twitter.com/thymikee) from the [Jest](https://github.com/jestjs/jest) team has joined us at Callstack this month. He will help maintain [Haul](https://github.com/callstack/haul) and possibly work on [Metro Bundler](https://github.com/react/metro) and [Jest](https://github.com/jestjs/jest). - [Satyajit Sahoo](https://twitter.com/satya164) is now with us, yay! - Got a bunch of cool stuff coming up from our OSS department. In particular, working on bringing Material Palette API to React Native. Planning to finally release our native iOS kit which is aimed to provide 1:1 look & feel of native components. @@ -49,16 +49,16 @@ Here are the notes from each team: - [react-native-calendars](https://snack.expo.io/HkoXUdhr-) - [Released Expo SDK19](https://blog.expo.io/expo-sdk-v19-0-0-is-now-available-821a62b58d3d) with a bunch of improvements across the board, and we're now using the [updated Android JSC](https://github.com/SoftwareMansion/jsc-android-buildscripts). - Working on a guide in docs with [Alexander Kotliarskyi](https://github.com/frantic) with a list of tips on how to improve the user experience of your app. Please join in and add to the list or help write some of it! - - Issue: [#14979](https://github.com/facebook/react-native/issues/14979) - - Initial pull request: [#14993](https://github.com/facebook/react-native/pull/14993) + - Issue: [#14979](https://github.com/react/react-native/issues/14979) + - Initial pull request: [#14993](https://github.com/react/react-native/pull/14993) - Continuing to work on: audio/video, camera, gestures (with Software Mansion, `react-native-gesture-handler`), GL camera integration and hoping to land some of these for the first time in SDK20 (August), and significant improvements to others by then as well. We're just getting started on building infrastructure into the Expo client for background work (geolocation, audio, handling notifications, etc.). -- [Adam Miskiewicz](https://twitter.com/skevy) has made some nice progress on imitating the transitions from [UINavigationController](https://developer.apple.com/documentation/uikit/uinavigationcontroller) in [react-navigation](https://github.com/react-community/react-navigation). Check out an earlier version of it in [his tweet](https://twitter.com/skevy/status/884932473070735361) - release coming with it soon. Also check out `MaskedViewIOS` which he [upstreamed](https://github.com/facebook/react-native/commit/8ea6cea39a3db6171dd74838a6eea4631cf42bba). If you have the skills and desire to implement `MaskedView` for Android that would be awesome! +- [Adam Miskiewicz](https://twitter.com/skevy) has made some nice progress on imitating the transitions from [UINavigationController](https://developer.apple.com/documentation/uikit/uinavigationcontroller) in [react-navigation](https://github.com/react-community/react-navigation). Check out an earlier version of it in [his tweet](https://twitter.com/skevy/status/884932473070735361) - release coming with it soon. Also check out `MaskedViewIOS` which he [upstreamed](https://github.com/react/react-native/commit/8ea6cea39a3db6171dd74838a6eea4631cf42bba). If you have the skills and desire to implement `MaskedView` for Android that would be awesome! ### Facebook - Facebook is internally exploring being able to embed native [ComponentKit](https://componentkit.org/) and [Litho](https://fblitho.com/) components inside of React Native. -- Contributions to React Native are very welcome! If you are wondering how you can contribute, the ["How to Contribute" guide](https://github.com/facebook/react-native-website/blob/master/CONTRIBUTING.md) describes our development process and lays out the steps to send your first pull request. There are other ways to contribute that do not require writing code, such as by triaging issues or updating the docs. - - At the time of writing, React Native has **635** [open issues](https://github.com/facebook/react-native/issues) and **249** [open pull requests](https://github.com/facebook/react-native/pulls). This is overwhelming for our maintainers, and when things get fixed internally, it is difficult to ensure the relevant tasks are updated. +- Contributions to React Native are very welcome! If you are wondering how you can contribute, the ["How to Contribute" guide](https://github.com/react/react-native-website/blob/master/CONTRIBUTING.md) describes our development process and lays out the steps to send your first pull request. There are other ways to contribute that do not require writing code, such as by triaging issues or updating the docs. + - At the time of writing, React Native has **635** [open issues](https://github.com/react/react-native/issues) and **249** [open pull requests](https://github.com/react/react-native/pulls). This is overwhelming for our maintainers, and when things get fixed internally, it is difficult to ensure the relevant tasks are updated. - We are unsure what the best approach is to handle this while keeping the community satisfied. Some (but not all!) options include closing stale issues, giving significantly more people permissions to manage issues, and automatically closing issues that do not follow the issue template. We wrote a "What to Expect from Maintainers" guide to set expectations and avoid surprises. If you have ideas on how we can make this experience better for maintainers as well as ensuring people opening issues and pull requests feel heard and valued, please let us know! ### GeekyAnts @@ -90,7 +90,7 @@ Here are the notes from each team: ### Wix -- We started working on a pull request to [Metro Bundler](https://github.com/facebook/metro) with [react-native-repackager](https://github.com/wix/react-native-repackager) capabilities. We updated react-native-repackager to support RN 44 (which we use in production). We are using it for our mocking infrastructure for [detox](https://github.com/wix/detox). +- We started working on a pull request to [Metro Bundler](https://github.com/react/metro) with [react-native-repackager](https://github.com/wix-incubator/react-native-repackager) capabilities. We updated react-native-repackager to support RN 44 (which we use in production). We are using it for our mocking infrastructure for [detox](https://github.com/wix/detox). - We have been covering the Wix app in detox tests for the last three weeks. It's an amazing learning experience of how to reduce manual QA in an app of this scale (over 40 engineers). We have resolved several issues with detox as a result, a new version was just published. I am happy to report that we are living up to the "zero flakiness policy" and the tests are passing consistently so far. - Detox for Android is moving forward nicely. We are getting significant help from the community. We are expecting an initial version in about two weeks. - [DetoxInstruments](https://github.com/wix/detoxinstruments), our performance testing tool, is getting a little bigger than we originally intended. We are now planning to turn it into a standalone tool that will not be tightly coupled to detox. It will allow investigating the performance of iOS apps in general. It will also be integrated with detox so we can run automated tests on performance metrics. diff --git a/website/blog/2017-08-07-react-native-performance-in-marketplace.md b/website/blog/2017-08-07-react-native-performance-in-marketplace.md index d773dbf35e3..59f5b8b0625 100644 --- a/website/blog/2017-08-07-react-native-performance-in-marketplace.md +++ b/website/blog/2017-08-07-react-native-performance-in-marketplace.md @@ -48,7 +48,7 @@ The best part is that many of these improvements are broadly applicable to all s People assume that React Native startup performance problems are caused by JavaScript being slow or exceedingly high network times. While speeding up things like JavaScript would bring down TTI by a non-trivial sum, each of these contribute a much smaller percentage of TTI than was previously believed. -The lesson so far has been to _measure, measure, measure!_ Some wins come from moving run-time costs to build time, such as Relay Modern and [Lazy NativeModules](https://github.com/facebook/react-native/commit/797ca6c219b2a44f88f10c61d91e8cc21e2f306e). Other wins come from avoiding work by being smarter about parallelizing code or removing dead code. And some wins come from large architectural changes to React Native, such as cleaning up thread blockages. There is no grand solution to performance, and longer-term performance wins will come from incremental instrumentation and improvements. Do not let cognitive bias influence your decisions. Instead, carefully gather and interpret production data to guide future work. +The lesson so far has been to _measure, measure, measure!_ Some wins come from moving run-time costs to build time, such as Relay Modern and [Lazy NativeModules](https://github.com/react/react-native/commit/797ca6c219b2a44f88f10c61d91e8cc21e2f306e). Other wins come from avoiding work by being smarter about parallelizing code or removing dead code. And some wins come from large architectural changes to React Native, such as cleaning up thread blockages. There is no grand solution to performance, and longer-term performance wins will come from incremental instrumentation and improvements. Do not let cognitive bias influence your decisions. Instead, carefully gather and interpret production data to guide future work. ## Future plans diff --git a/website/blog/2017-08-30-react-native-monthly-3.md b/website/blog/2017-08-30-react-native-monthly-3.md index 2b3ef9685d1..cf6b372941a 100644 --- a/website/blog/2017-08-30-react-native-monthly-3.md +++ b/website/blog/2017-08-30-react-native-monthly-3.md @@ -37,12 +37,12 @@ Here are the notes from each team: - Last month we discussed management of the GitHub issue tracker and that we would try to make improvements to address the maintainability of the project. - Currently, the number of open issues is holding steady at around 600, and it seems like it may stay that way for a while. In the past month, we have closed 690 issues due to lack of activity (defined as no comments in the last 60 days). Out of those 690 issues, 58 were re-opened for a variety of reasons (a maintainer committed to providing a fix, or a contributor made a great case for keeping the issue open). -- We plan to continue with the automated closing of stale issues for the foreseeable future. We’d like to be in a state where every impactful issue opened in the tracker is acted upon, but we’re not there yet. We need all the help we can from maintainers to triage issues and make sure we don't miss issues that introduce regressions or introduce breaking changes, especially those that affect newly created projects. People interested in helping out can use the Facebook GitHub Bot to triage issues and pull requests. The new Maintainers Guide contains more information on triage and use of the GitHub Bot. Please add yourself to the [issue task force](https://github.com/facebook/react-native/blob/master/bots/IssueCommands.txt) and encourage other active community members to do the same! +- We plan to continue with the automated closing of stale issues for the foreseeable future. We’d like to be in a state where every impactful issue opened in the tracker is acted upon, but we’re not there yet. We need all the help we can from maintainers to triage issues and make sure we don't miss issues that introduce regressions or introduce breaking changes, especially those that affect newly created projects. People interested in helping out can use the Facebook GitHub Bot to triage issues and pull requests. The new Maintainers Guide contains more information on triage and use of the GitHub Bot. Please add yourself to the [issue task force](https://github.com/react/react-native/blob/master/bots/IssueCommands.txt) and encourage other active community members to do the same! ### Microsoft - The new Skype app is built on top of React Native in order to facilitate sharing as much code between platforms as possible. The React Native-based Skype app is currently available in the Android and iOS app stores. -- While building the Skype app on React Native, we send pull requests to React Native in order to address bugs and missing features that we come across. So far, we've gotten about [70 pull requests merged](https://github.com/facebook/react-native/pulls?utf8=%E2%9C%93&q=is%3Apr%20author%3Arigdern%20). +- While building the Skype app on React Native, we send pull requests to React Native in order to address bugs and missing features that we come across. So far, we've gotten about [70 pull requests merged](https://github.com/react/react-native/pulls?utf8=%E2%9C%93&q=is%3Apr%20author%3Arigdern%20). - React Native enabled us to power both the Android and iOS Skype apps from the same codebase. We also want to use that codebase to power the Skype web app. To help us achieve that goal, we built and open sourced a thin layer on top of React/React Native called [ReactXP](https://microsoft.github.io/reactxp/blog/2017/04/06/introducing-reactxp.html). ReactXP provides a set of cross platform components that get mapped to React Native when targeting iOS/Android and to react-dom when targeting the web. ReactXP's goals are similar to another open source library called React Native for Web. There's a brief description of how the approaches of these libraries differ in the [ReactXP FAQ](https://microsoft.github.io/reactxp/docs/faq.html). ### Shoutem diff --git a/website/blog/2017-11-06-react-native-monthly-5.md b/website/blog/2017-11-06-react-native-monthly-5.md index fed14a44938..779034b5b21 100644 --- a/website/blog/2017-11-06-react-native-monthly-5.md +++ b/website/blog/2017-11-06-react-native-monthly-5.md @@ -42,7 +42,7 @@ The React Native monthly meeting continues! Let's see what our teams are up to. - border(Left|Right)Width → border(Start|End)Width - border(Left|Right)Color → border(Start|End)Color - The meaning of “left” and “right” were swapped in RTL for position, margin, padding, and border styles. Within a few months, we’re going to remove this behaviour and make “left” always mean “left,” and “right” always mean “right”. The breaking changes are hidden under a flag. Use `I18nManager.swapLeftAndRightInRTL(false)` in your React Native components to opt into them. -- Working on [Flow](https://github.com/facebook/flow) typing our internal native modules and using those to generate interfaces in Java and protocols in ObjC that the native implementations must implement. We hope this codegen becomes open source next year, at the earliest. +- Working on [Flow](https://github.com/meta/flow) typing our internal native modules and using those to generate interfaces in Java and protocols in ObjC that the native implementations must implement. We hope this codegen becomes open source next year, at the earliest. ### Infinite Red diff --git a/website/blog/2018-01-09-react-native-monthly-6.md b/website/blog/2018-01-09-react-native-monthly-6.md index aa35aadc933..19d2c1488ca 100644 --- a/website/blog/2018-01-09-react-native-monthly-6.md +++ b/website/blog/2018-01-09-react-native-monthly-6.md @@ -14,7 +14,7 @@ The React Native monthly meeting is still going strong! Make sure to check a not - Congratulations to [Devin Abbott](https://github.com/dabbott) and [Houssein Djirdeh](https://twitter.com/hdjirdeh) on their pre-release of the "Full Stack React Native" book! It walks you through learning React Native by building several small apps. - Released a first (experimental) version of [reason-react-native-scripts](https://github.com/react-community/reason-react-native-scripts) to help people to easily try out [ReasonML](https://reasonml.github.io/). -- Expo SDK 24 is [released](https://blog.expo.io/expo-sdk-v24-0-0-is-now-available-bfcac3b50d51)! It uses [React Native 0.51](https://github.com/facebook/react-native/releases/tag/v0.51.0) and includes a bunch of new features and improvements: bundling images in standalone apps (no need to cache on first load!), image manipulation API (crop, resize, rotate, flip), face detection API, new release channel features (set the active release for a given channel and rollback), web dashboard to track standalone app builds, and a fix longstanding bug with OpenGL Android implementation and the Android multi-tasker, just to name a few things. +- Expo SDK 24 is [released](https://blog.expo.io/expo-sdk-v24-0-0-is-now-available-bfcac3b50d51)! It uses [React Native 0.51](https://github.com/react/react-native/releases/tag/v0.51.0) and includes a bunch of new features and improvements: bundling images in standalone apps (no need to cache on first load!), image manipulation API (crop, resize, rotate, flip), face detection API, new release channel features (set the active release for a given channel and rollback), web dashboard to track standalone app builds, and a fix longstanding bug with OpenGL Android implementation and the Android multi-tasker, just to name a few things. - We are allocating more resources to React Navigation starting this January. We strongly believe that it is both possible and desirable to build React Native navigation with just React components and primitives like Animated and `react-native-gesture-handler` and we’re really excited about some of the improvements we have planned. If you're looking to contribute to the community, check out [react-native-maps](https://github.com/react-community/react-native-maps) and [react-native-svg](https://github.com/react-native-community/react-native-svg), which could both use some help! ### Infinite Red @@ -34,7 +34,7 @@ The React Native monthly meeting is still going strong! Make sure to check a not - [Detox](https://github.com/wix/detox) - In order for us to scale with E2E tests, we want to minimize time spent on CI, we are working on parallelization support for Detox. - - Submitted a [pull request](https://github.com/facebook/react-native/pull/16948) to enable support for custom flavor builds, to better support mocking on E2E. + - Submitted a [pull request](https://github.com/react/react-native/pull/16948) to enable support for custom flavor builds, to better support mocking on E2E. - [DetoxInstruments](https://github.com/wix/DetoxInstruments) - Working on the killer feature of DetoxInstruments proves to be a very challenging task, taking JavaScript backtrace at any given time requires a custom JSCore implementation to support JS thread suspension. Testing the profiler internally on Wix’s app revealed interesting insights about the JS thread. - The project is still not stable enough for general use but is actively worked on, and we hope to announce it soon. diff --git a/website/blog/2018-03-22-building-input-accessory-view-for-react-native.md b/website/blog/2018-03-22-building-input-accessory-view-for-react-native.md index febb6567a71..077d26cbc0a 100644 --- a/website/blog/2018-03-22-building-input-accessory-view-for-react-native.md +++ b/website/blog/2018-03-22-building-input-accessory-view-for-react-native.md @@ -55,7 +55,7 @@ We can achieve #1 using a concept similar to [React portals](https://reactjs.org `- (void)insertReactSubview:(UIView *)subview atIndex:(NSInteger)atIndex` -and pipe all the subviews to a new UIView hierarchy. For #2, we set up a new [RCTTouchHandler](https://github.com/facebook/react-native/blob/master/React/Base/RCTTouchHandler.h) for the ``. State updates are achieved by using regular event callbacks. For #3 and #4, we use the [nativeID](https://github.com/facebook/react-native/blob/master/React/Views/UIView%2BReact.h#L28) field to locate the accessory view UIView hierarchy in native code during the creation of a `` component. This function uses the `.inputAccessoryView` property of the underlying native text input. Doing this effectively links `` to `` in their ObjC implementations. +and pipe all the subviews to a new UIView hierarchy. For #2, we set up a new [RCTTouchHandler](https://github.com/react/react-native/blob/master/React/Base/RCTTouchHandler.h) for the ``. State updates are achieved by using regular event callbacks. For #3 and #4, we use the [nativeID](https://github.com/react/react-native/blob/master/React/Views/UIView%2BReact.h#L28) field to locate the accessory view UIView hierarchy in native code during the creation of a `` component. This function uses the `.inputAccessoryView` property of the underlying native text input. Doing this effectively links `` to `` in their ObjC implementations. Supporting sticky text inputs (scenario 2) adds a few more constraints. For this design, the input accessory view has a text input as a child, so linking via nativeID is not an option. Instead, we set the `.inputAccessoryView` of a generic off-screen `UIView` to our native `` hierarchy. By manually telling this generic `UIView` to become first responder, the hierarchy is mounted by responder infrastructure. This concept is explained thoroughly in the aforementioned blog post. @@ -117,10 +117,10 @@ class TextInputAccessoryViewExample extends React.Component< } ``` -Another example for [Sticky Text Inputs can be found in the repository](https://github.com/facebook/react-native/blob/84ef7bc372ad870127b3e1fb8c13399fe09ecd4d/RNTester/js/InputAccessoryViewExample.js). +Another example for [Sticky Text Inputs can be found in the repository](https://github.com/react/react-native/blob/84ef7bc372ad870127b3e1fb8c13399fe09ecd4d/RNTester/js/InputAccessoryViewExample.js). ## When will I be able to use this? -The full commit for this feature implementation is [here](https://github.com/facebook/react-native/commit/38197c8230657d567170cdaf8ff4bbb4aee732b8). [``](/docs/next/inputaccessoryview) will be available in the upcoming v0.55.0 release. +The full commit for this feature implementation is [here](https://github.com/react/react-native/commit/38197c8230657d567170cdaf8ff4bbb4aee732b8). [``](/docs/next/inputaccessoryview) will be available in the upcoming v0.55.0 release. Happy keyboarding :) diff --git a/website/blog/2018-05-07-using-typescript-with-react-native.md b/website/blog/2018-05-07-using-typescript-with-react-native.md index bdbb535049e..9f6f461df25 100644 --- a/website/blog/2018-05-07-using-typescript-with-react-native.md +++ b/website/blog/2018-05-07-using-typescript-with-react-native.md @@ -97,7 +97,7 @@ At this point, you should be able to run the React Native app. ## Adding TypeScript Testing Infrastructure -React Native ships with [Jest](https://github.com/facebook/jest), so for testing a React Native app with TypeScript, we'll want to add [ts-jest](https://www.npmjs.com/package/ts-jest) to our `devDependencies`. +React Native ships with [Jest](https://github.com/jestjs/jest), so for testing a React Native app with TypeScript, we'll want to add [ts-jest](https://www.npmjs.com/package/ts-jest) to our `devDependencies`. ```sh yarn add --dev ts-jest diff --git a/website/blog/2018-07-04-releasing-react-native-056.md b/website/blog/2018-07-04-releasing-react-native-056.md index d2362e4e7c5..24aa3196952 100644 --- a/website/blog/2018-07-04-releasing-react-native-056.md +++ b/website/blog/2018-07-04-releasing-react-native-056.md @@ -12,15 +12,15 @@ The long-awaited 0.56 version of React Native is now available 🎉. This blog p ### The breaking changes dilemma, or, "when to release?" -The [Contributor's Guide](https://github.com/facebook/react-native/blob/master/CONTRIBUTING.md) explains the integration process that all changes to React Native go through. The project has is composed by [many different tools](https://github.com/facebook/react-native-website/issues/370), requiring coordination and constant support to keep everything working properly. Add to this the vibrant open source community that contributes back to the project, and you will get a sense of the mind-bending scale of it all. +The [Contributor's Guide](https://github.com/react/react-native/blob/master/CONTRIBUTING.md) explains the integration process that all changes to React Native go through. The project has is composed by [many different tools](https://github.com/react/react-native-website/issues/370), requiring coordination and constant support to keep everything working properly. Add to this the vibrant open source community that contributes back to the project, and you will get a sense of the mind-bending scale of it all. With React Native's impressive adoption, breaking changes must be made with great care, and the process is not as smooth as we'd like. A decision was made to skip the April and May releases to allow the core team to integrate and test a new set of breaking changes. [Dedicated community communication](https://github.com/react-native-community/react-native-releases/issues/14) channels were used along the way to ensure that the June 2018 (`0.56.0`) release is as hassle-free as possible to adopt by those who patiently waited for the stable release. -Is `0.56.0` perfect? No, as every piece of software out there: but we reached a point where the tradeoff between "waiting for more stability" versus "testing led to successful results so we can push forward" that we feel ready to release it. Moreover, we are aware [of](https://github.com/facebook/react-native/issues/19955) [a](https://github.com/facebook/react-native/issues/19827) [few](https://github.com/facebook/react-native/issues/19763) [issues](https://github.com/facebook/react-native/issues/19859) that are not solved in the final `0.56.0` release. Most developers should have no issues upgrading to `0.56.0`. For those that are blocked by the aforementioned issues, we hope to see you around in our discussions and we are looking forward to working with you on a solution to these issues. +Is `0.56.0` perfect? No, as every piece of software out there: but we reached a point where the tradeoff between "waiting for more stability" versus "testing led to successful results so we can push forward" that we feel ready to release it. Moreover, we are aware [of](https://github.com/react/react-native/issues/19955) [a](https://github.com/react/react-native/issues/19827) [few](https://github.com/react/react-native/issues/19763) [issues](https://github.com/react/react-native/issues/19859) that are not solved in the final `0.56.0` release. Most developers should have no issues upgrading to `0.56.0`. For those that are blocked by the aforementioned issues, we hope to see you around in our discussions and we are looking forward to working with you on a solution to these issues. You might consider `0.56.0` as a fundamental building block towards a more stable framework: it will take probably a week or two of widespread adoption before all the edge cases will be sanded off, but this will lead to an even better July 2018 (`0.57.0`) release. -We'd like to conclude this section by thanking [all the 67 contributors who worked on a total of 818 commits](https://github.com/facebook/react-native/compare/v0.55.4...v0.56.0-rc.4) (!) that will help make your apps even better 👏. +We'd like to conclude this section by thanking [all the 67 contributors who worked on a total of 818 commits](https://github.com/react/react-native/compare/v0.55.4...v0.56.0-rc.4) (!) that will help make your apps even better 👏. And now, without further ado... @@ -28,31 +28,31 @@ And now, without further ado... ### Babel 7 -As you may know, the transpiler tool that allows us all to use the latest and greatest features of JavaScript, Babel, is moving to [v7 soon](https://babeljs.io/blog/2017/12/27/nearing-the-7.0-release). Since this new version brings along some important changes, we felt that now it would be a good time to upgrade, allowing [Metro](https://github.com/facebook/metro) to [leverage on its improvements](https://github.com/facebook/metro/issues/92). +As you may know, the transpiler tool that allows us all to use the latest and greatest features of JavaScript, Babel, is moving to [v7 soon](https://babeljs.io/blog/2017/12/27/nearing-the-7.0-release). Since this new version brings along some important changes, we felt that now it would be a good time to upgrade, allowing [Metro](https://github.com/react/metro) to [leverage on its improvements](https://github.com/react/metro/issues/92). If you find yourself in trouble with upgrading, please refer to the [documentation section related to it](https://new.babeljs.io/docs/en/next/v7-migration.html). ### Modernizing Android support -On Android, much of the surrounding tooling has changed. We've updated to [Gradle 3.5](https://github.com/facebook/react-native/commit/699e5eebe807d1ced660d2d2f39b5679d26925da), [Android SDK 26](https://github.com/facebook/react-native/commit/065c5b6590de18281a8c592a04240751c655c03c), [Fresco to 1.9.0, and OkHttp to 3.10.0](https://github.com/facebook/react-native/commit/6b07602915157f54c39adbf0f9746ac056ad2d13) and even the [NDK API target to API 16](https://github.com/facebook/react-native/commit/5ae97990418db613cd67b1fb9070ece976d17dc7). These changes should go without issue and result in faster builds. More importantly, it will help developers comply with the [new Play Store requirements](https://android-developers.googleblog.com/2017/12/improving-app-security-and-performance.html) coming into effect next month. +On Android, much of the surrounding tooling has changed. We've updated to [Gradle 3.5](https://github.com/react/react-native/commit/699e5eebe807d1ced660d2d2f39b5679d26925da), [Android SDK 26](https://github.com/react/react-native/commit/065c5b6590de18281a8c592a04240751c655c03c), [Fresco to 1.9.0, and OkHttp to 3.10.0](https://github.com/react/react-native/commit/6b07602915157f54c39adbf0f9746ac056ad2d13) and even the [NDK API target to API 16](https://github.com/react/react-native/commit/5ae97990418db613cd67b1fb9070ece976d17dc7). These changes should go without issue and result in faster builds. More importantly, it will help developers comply with the [new Play Store requirements](https://android-developers.googleblog.com/2017/12/improving-app-security-and-performance.html) coming into effect next month. Related to this, we'd like to particularly thank [Dulmandakh](https://github.com/dulmandakh) for the many PRs submitted in order to make it possible 👏. -There are some more steps that need to be taken in this direction, and you can follow along with the future planning and discussion of updating the Android support in the [dedicated issue](https://github.com/facebook/react-native/issues/19297) (and a side one for the [JSC](https://github.com/facebook/react-native/issues/19737)). +There are some more steps that need to be taken in this direction, and you can follow along with the future planning and discussion of updating the Android support in the [dedicated issue](https://github.com/react/react-native/issues/19297) (and a side one for the [JSC](https://github.com/react/react-native/issues/19737)). ### New Node, Xcode, React, and Flow – oh my! Node 8 is now the standard for React Native. It was actually already being tested already, but we've put both feet forward as Node 6 entered maintenance mode. React was also updated to 16.4, which brings a ton of fixes with it. -We're dropping support for iOS 8, [making iOS 9 the oldest iOS version that can be targeted](https://github.com/facebook/react-native/commit/f50df4f5eca4b4324ff18a49dcf8be3694482b51). We do not foresee this being a problem, as any device that can run iOS 8, can be upgraded to iOS 9. This change allowed us to remove rarely-used code that implemented workarounds for older devices running iOS 8. +We're dropping support for iOS 8, [making iOS 9 the oldest iOS version that can be targeted](https://github.com/react/react-native/commit/f50df4f5eca4b4324ff18a49dcf8be3694482b51). We do not foresee this being a problem, as any device that can run iOS 8, can be upgraded to iOS 9. This change allowed us to remove rarely-used code that implemented workarounds for older devices running iOS 8. -The continuous integration toolchain has been updated [to use Xcode 9.4](https://github.com/facebook/react-native/commit/c55bcd6ea729cdf57fc14a5478b7c2e3f6b2a94d), ensuring that all iOS tests are run on the latest developer tools provided by Apple. +The continuous integration toolchain has been updated [to use Xcode 9.4](https://github.com/react/react-native/commit/c55bcd6ea729cdf57fc14a5478b7c2e3f6b2a94d), ensuring that all iOS tests are run on the latest developer tools provided by Apple. -We have upgraded to [Flow 0.75](https://github.com/facebook/react-native/commit/6264b6932a08e1cefd83c4536ff7839d91938730) to use the new error format [that many devs appreciate](https://web.archive.org/web/20220516045926/https://twitter.com/dan_abramov/status/998610821096857602). We've also created types for many more components. If you're not yet enforcing static typing in your project, please consider using Flow to identify problems as you code instead of at runtime. +We have upgraded to [Flow 0.75](https://github.com/react/react-native/commit/6264b6932a08e1cefd83c4536ff7839d91938730) to use the new error format [that many devs appreciate](https://web.archive.org/web/20220516045926/https://twitter.com/dan_abramov/status/998610821096857602). We've also created types for many more components. If you're not yet enforcing static typing in your project, please consider using Flow to identify problems as you code instead of at runtime. ### And a lot of other things... -For instance, YellowBox was [replaced](https://github.com/facebook/react-native/commit/d0219a0301e59e8b0ef75dbd786318d4b4619f4c) with a new implementation that makes debugging a lot better. +For instance, YellowBox was [replaced](https://github.com/react/react-native/commit/d0219a0301e59e8b0ef75dbd786318d4b4619f4c) with a new implementation that makes debugging a lot better. For the complete release notes, please reference the full [changelog here](https://github.com/react-native-community/react-native-releases/blob/master/CHANGELOG.md). And remember to keep an eye on the [upgrading guide](/docs/upgrading) to avoid issues moving to this new version. diff --git a/website/blog/2018-08-27-wkwebview.md b/website/blog/2018-08-27-wkwebview.md index 3b1da6ca68b..1e25d26afb6 100644 --- a/website/blog/2018-08-27-wkwebview.md +++ b/website/blog/2018-08-27-wkwebview.md @@ -8,7 +8,7 @@ tags: [engineering] For a long time now, Apple has discouraged using UIWebViews in favor of WKWebView. In iOS 12, which will be released in the upcoming months, [UIWebViews will be formally deprecated](https://developer.apple.com/videos/play/wwdc2018/234/?time=104). React Native's iOS WebView implementation relies heavily on the UIWebView class. Therefore, in light of these developments, we've built a new native iOS backend to the WebView React Native component that uses WKWebView. -The tail end of these changes were landed in [this commit](https://github.com/facebook/react-native/commit/33b353c97c31190439a22febbd3d2a9ead49d3c9), and will become available in the 0.57 release. +The tail end of these changes were landed in [this commit](https://github.com/react/react-native/commit/33b353c97c31190439a22febbd3d2a9ead49d3c9), and will become available in the 0.57 release. To opt into this new implementation, please use the [`useWebKit`](https://reactnative.dev/docs/0.63/webview#usewebkit) prop: @@ -31,16 +31,16 @@ If your components use the following props, then you may experience problems whe **Inconsistent behavior:** -`automaticallyAdjustContentInsets` and `contentInsets` ([commit](https://github.com/facebook/react-native/commit/bacfd9297657569006bab2b1f024ad1f289b1b27)) +`automaticallyAdjustContentInsets` and `contentInsets` ([commit](https://github.com/react/react-native/commit/bacfd9297657569006bab2b1f024ad1f289b1b27)) When you add contentInsets to a `WKWebView`, it doesn't change the `WKWebView`'s viewport. The viewport remains the same size as the frame. With `UIWebView`, the viewport size actually changes (gets smaller, if the content insets are positive). -`backgroundColor` ([commit](https://github.com/facebook/react-native/commit/215fa14efc2a817c7e038075163491c8d21526fd)) +`backgroundColor` ([commit](https://github.com/react/react-native/commit/215fa14efc2a817c7e038075163491c8d21526fd)) With the new iOS implementation of WebView, there's a chance that your background color will flicker into view if you use this property. Furthermore, `WKWebView` renders transparent backgrounds differently from `UIWebview`. Please look at the commit description for more details. **Not supported:** -`scalesPageToFit` ([commit](https://github.com/facebook/react-native/commit/b18fddadfeae5512690a0a059a4fa80c864f43a3)) +`scalesPageToFit` ([commit](https://github.com/react/react-native/commit/b18fddadfeae5512690a0a059a4fa80c864f43a3)) WKWebView didn't support the scalesPageToFit prop, so we couldn't implement this on the WebView React Native component. diff --git a/website/blog/2018-11-01-oss-roadmap.md b/website/blog/2018-11-01-oss-roadmap.md index 9da25e35292..d144b1175c1 100644 --- a/website/blog/2018-11-01-oss-roadmap.md +++ b/website/blog/2018-11-01-oss-roadmap.md @@ -61,4 +61,4 @@ React Native is one of the [top open source projects on GitHub](https://octovers ## Timeline -We're planning to land these projects throughout the next year or so. Some of these efforts are already ongoing, such as [JSI which has already landed in open source](https://github.com/facebook/react-native/compare/e337bcafb0b017311c37f2dbc24e5a757af0a205...8427f64e06456f171f9df0316c6ca40613de7a20). Others will take a bit longer to complete, such as reducing the surface area. We'll do our best to keep the community up to date with our progress. Please join us in the [Discussions and Proposals](https://github.com/react-native-community/discussions-and-proposals) repository, an initiative from the React Native community that has led to the creation of several of the initiatives discussed in this roadmap. +We're planning to land these projects throughout the next year or so. Some of these efforts are already ongoing, such as [JSI which has already landed in open source](https://github.com/react/react-native/compare/e337bcafb0b017311c37f2dbc24e5a757af0a205...8427f64e06456f171f9df0316c6ca40613de7a20). Others will take a bit longer to complete, such as reducing the surface area. We'll do our best to keep the community up to date with our progress. Please join us in the [Discussions and Proposals](https://github.com/react-native-community/discussions-and-proposals) repository, an initiative from the React Native community that has led to the creation of several of the initiatives discussed in this roadmap. diff --git a/website/blog/2019-01-07-state-of-react-native-community.md b/website/blog/2019-01-07-state-of-react-native-community.md index 90b58102f68..7c459803499 100644 --- a/website/blog/2019-01-07-state-of-react-native-community.md +++ b/website/blog/2019-01-07-state-of-react-native-community.md @@ -26,7 +26,7 @@ Half of the credit for reaching these decisions goes to the other repository cre ## [`discussions-and-proposals`](https://github.com/react-native-community/discussions-and-proposals) 🗣 -This repository, created in July, expanded on the idea of a more open environment for conversations on React Native. Previously, this need was handled by issues labelled [`For Discussion`](https://github.com/facebook/react-native/labels/For%20Discussion) in the main repository, but we wanted to expand this strategy to an RFC approach that other libraries have (e.g. React). +This repository, created in July, expanded on the idea of a more open environment for conversations on React Native. Previously, this need was handled by issues labelled [`For Discussion`](https://github.com/react/react-native/labels/For%20Discussion) in the main repository, but we wanted to expand this strategy to an RFC approach that other libraries have (e.g. React). This experiment immediately found its role in the React Native lifecycle. The Facebook team is now using the community RFC process to discuss what could [be improved in React Native](https://github.com/react-native-community/discussions-and-proposals/issues/64), and coordinate the efforts around the [Lean Core project](https://github.com/react-native-community/discussions-and-proposals/issues/6) - among other interesting discussions. diff --git a/website/blog/2019-03-01-react-native-open-source-update.md b/website/blog/2019-03-01-react-native-open-source-update.md index dc46fb64394..b9c7b42c436 100644 --- a/website/blog/2019-03-01-react-native-open-source-update.md +++ b/website/blog/2019-03-01-react-native-open-source-update.md @@ -12,19 +12,19 @@ In the past two months, we made more progress than we expected. Read on for more ### Pull Requests -In order to build a healthy community, we must respond quickly to code contributions. In past years, we de-prioritized reviewing community contributions and accumulated 280 pull requests (December 2018). In the first milestone, we reduced the number of open pull requests to ~65. Simultaneously, the average number of pull requests opened per day increased from 3.5 to 7 which means we have handled about [600 pull requests](https://github.com/facebook/react-native/pulls?page=24&q=is%3Apr+closed%3A%3E2018-12-01&utf8=%E2%9C%93) in the last three months. +In order to build a healthy community, we must respond quickly to code contributions. In past years, we de-prioritized reviewing community contributions and accumulated 280 pull requests (December 2018). In the first milestone, we reduced the number of open pull requests to ~65. Simultaneously, the average number of pull requests opened per day increased from 3.5 to 7 which means we have handled about [600 pull requests](https://github.com/react/react-native/pulls?page=24&q=is%3Apr+closed%3A%3E2018-12-01&utf8=%E2%9C%93) in the last three months. -We merged [almost two-thirds](https://github.com/facebook/react-native/pulls?utf8=%E2%9C%93&q=is%3Apr+closed%3A%3E2018-12-01+label%3A%22Merged%22+) and closed one-third of the pull requests. They were closed without being merged if they are obsolete or low quality, or if they unnecessarily increase the project's surface area. Most of the merged pull requests fixed bugs, improved cross-platform parity, or introduced new features. Notable contributions include improving type safety and the ongoing work to support AndroidX. +We merged [almost two-thirds](https://github.com/react/react-native/pulls?utf8=%E2%9C%93&q=is%3Apr+closed%3A%3E2018-12-01+label%3A%22Merged%22+) and closed one-third of the pull requests. They were closed without being merged if they are obsolete or low quality, or if they unnecessarily increase the project's surface area. Most of the merged pull requests fixed bugs, improved cross-platform parity, or introduced new features. Notable contributions include improving type safety and the ongoing work to support AndroidX. At Facebook, we run React Native from master, so we test all changes first before they make it into a React Native Release. Out of all the merged pull requests, only six caused issues: four only affected internal development and two were caught in the release candidate state. -One of the more visible community contributions was [the updated “RedBox” screen](https://github.com/facebook/react-native/pull/22242). It's a good example of how the community is making the developer experience friendlier. +One of the more visible community contributions was [the updated “RedBox” screen](https://github.com/react/react-native/pull/22242). It's a good example of how the community is making the developer experience friendlier. ### Lean Core React Native currently has a very wide surface area with many unmaintained abstractions that we do not use a lot at Facebook. We are working on reducing the surface area in order to make React Native smaller and allow the community to take better care of abstractions that are mostly unused at Facebook. -In the first milestone, [we asked the community for help on the Lean Core project](https://twitter.com/reactnative/status/1093171521114247171). The response was overwhelming and we could barely keep up with all the progress. [Check out all the work completed in less than a month](https://github.com/facebook/react-native/issues/23313)! +In the first milestone, [we asked the community for help on the Lean Core project](https://twitter.com/reactnative/status/1093171521114247171). The response was overwhelming and we could barely keep up with all the progress. [Check out all the work completed in less than a month](https://github.com/react/react-native/issues/23313)! What we are most excited about is that maintainers have jumped in fixing long standing issues, adding tests, and supporting long requested features. These modules are getting more support than they ever did within React Native, showing that this is a great step for the community. Examples of such projects are [WebView](https://github.com/react-native-community/react-native-webview) that has [received many pull requests](https://twitter.com/titozzz/status/1101283928026034176) since their extraction and the CLI that is now [maintained by members of the community](https://www.callstack.com/blog/the-react-native-cli-has-a-new-home) and received much needed improvements and fixes. @@ -35,7 +35,7 @@ In December, we asked the community what they [disliked about React Native](http One of the highest voted problems was the developer experience of upgrading to newer versions of React Native. Unfortunately, this is not something that we experience ourselves because we run React Native from master. Thankfully, members from the community already stepped up to address this problem: - [Michał Pierzchała](https://github.com/thymikee) from Callstack [improved react-native upgrade](https://github.com/react-native-community/react-native-cli/pull/176/files) by using [rn-diff-purge](https://github.com/react-native-community/rn-diff-purge) under the hood. We also updated the website to remove outdated upgrade instructions. -- [We plan on recommending CocoaPods by default for iOS projects](https://github.com/facebook/react-native/pull/23563) which will reduce churn in project files when upgrading React Native. This will make it easier for people to install and link third-party modules which is even more important in the context of Lean Core as we expect projects to link more modules by default. +- [We plan on recommending CocoaPods by default for iOS projects](https://github.com/react/react-native/pull/23563) which will reduce churn in project files when upgrading React Native. This will make it easier for people to install and link third-party modules which is even more important in the context of Lean Core as we expect projects to link more modules by default. ### 0.59 Release @@ -45,7 +45,7 @@ Without the help of the React Native community, especially [Mike Grabowski](http - We will show breaking changes directly in the CLI when people upgrade to new versions. - We will reduce the time it takes to make a release. We are exploring ways to increase automated testing and also creating an improved manual test plan. -Many of these plans will be incorporated in the upcoming [React Native 0.59 release](https://github.com/facebook/react-native/releases/tag/v0.59.0-rc.3). 0.59 will ship with React Hooks, a new 64-bit version of JavaScriptCore for Android, and many performance and functionality improvements. It is currently published as a release candidate and is expected to be stable within the next two weeks. +Many of these plans will be incorporated in the upcoming [React Native 0.59 release](https://github.com/react/react-native/releases/tag/v0.59.0-rc.3). 0.59 will ship with React Hooks, a new 64-bit version of JavaScriptCore for Android, and many performance and functionality improvements. It is currently published as a release candidate and is expected to be stable within the next two weeks. ### Next Steps diff --git a/website/blog/2019-03-12-releasing-react-native-059.md b/website/blog/2019-03-12-releasing-react-native-059.md index 76a9501e91a..6761f5aa867 100644 --- a/website/blog/2019-03-12-releasing-react-native-059.md +++ b/website/blog/2019-03-12-releasing-react-native-059.md @@ -51,7 +51,7 @@ You may notice that additional components are now officially deprecated. This is | **Slider** | 0.59 | [@react-native-community/react-native-slider](https://github.com/react-native-community/react-native-slider) | | **ViewPagerAndroid** | 0.59 | [@react-native-community/react-native-viewpager](https://github.com/react-native-community/react-native-viewpager) | -Over the coming months, there will be many more components following this path to a leaner core. We're looking for help with this — head over to the [lean core umbrella](https://github.com/facebook/react-native/issues/23313) to pitch in. +Over the coming months, there will be many more components following this path to a leaner core. We're looking for help with this — head over to the [lean core umbrella](https://github.com/react/react-native/issues/23313) to pitch in. ## 👩🏽‍💻 CLI improvements @@ -73,7 +73,7 @@ The `react-native-git-upgrade` command has been removed in 0.59, in favor of the ## 🤗 Thanks -Lots of new contributors helped with [enabling generation of native code from flow types](https://github.com/facebook/react-native/issues/22990) and [resolving Xcode warnings](https://github.com/facebook/react-native/issues/22609) - these are a great way to learn how React Native works and contributing to the greater good. Thank you! Look out for similar issues in the future. +Lots of new contributors helped with [enabling generation of native code from flow types](https://github.com/react/react-native/issues/22990) and [resolving Xcode warnings](https://github.com/react/react-native/issues/22609) - these are a great way to learn how React Native works and contributing to the greater good. Thank you! Look out for similar issues in the future. While these are the highlights that we noted, there are many others to be excited about. To see all of the updates, take a look at the [changelog](https://github.com/react-native-community/react-native-releases/blob/master/CHANGELOG.md). 0.59 is a huge release – we can't wait for you to try it out. diff --git a/website/blog/2019-05-01-react-native-at-f8-and-podcast.md b/website/blog/2019-05-01-react-native-at-f8-and-podcast.md index 12696478a02..1d9c134d864 100644 --- a/website/blog/2019-05-01-react-native-at-f8-and-podcast.md +++ b/website/blog/2019-05-01-react-native-at-f8-and-podcast.md @@ -29,7 +29,7 @@ Eli's talk concludes by talking about our recent open source work. We gave [an u #### Highlights from the podcast: - We talked about how the React Native team at Facebook thinks about open source and how we are building a sustainable community that scales for a project of React Native's [size](https://octoverse.github.com/projects#repositories). -- We are on track to remove multiple modules as part of the [Lean Core](https://github.com/facebook/react-native/issues/23313) effort. Many modules like WebView and the React Native CLI have received more than 100 Pull Requests since they were extracted. +- We are on track to remove multiple modules as part of the [Lean Core](https://github.com/react/react-native/issues/23313) effort. Many modules like WebView and the React Native CLI have received more than 100 Pull Requests since they were extracted. - Next, we'll be focusing on overhauling the React Native website and documentation. Stay tuned! You'll find the episode in your favorite podcasting app soon or you can listen to the recording right here: diff --git a/website/blog/2019-06-12-react-native-open-source-update.md b/website/blog/2019-06-12-react-native-open-source-update.md index 287095328d1..f5b490468ab 100644 --- a/website/blog/2019-06-12-react-native-open-source-update.md +++ b/website/blog/2019-06-12-react-native-open-source-update.md @@ -6,7 +6,7 @@ tags: [announcement] ## Code & Community Health -In the past six months, a total of 2800 commits were made to React Native by more than 550 contributors. 400 contributors from the community created more than [1,150 Pull Requests](https://github.com/facebook/react-native/pulls?page=24&q=is%3Apr+closed%3A%3E2018-12-01&utf8=%E2%9C%93), of which [820 Pull Requests](https://github.com/facebook/react-native/pulls?utf8=%E2%9C%93&q=is%3Apr+closed%3A%3E2018-12-01+label%3A%22Merged%22+) were merged. +In the past six months, a total of 2800 commits were made to React Native by more than 550 contributors. 400 contributors from the community created more than [1,150 Pull Requests](https://github.com/react/react-native/pulls?page=24&q=is%3Apr+closed%3A%3E2018-12-01&utf8=%E2%9C%93), of which [820 Pull Requests](https://github.com/react/react-native/pulls?utf8=%E2%9C%93&q=is%3Apr+closed%3A%3E2018-12-01+label%3A%22Merged%22+) were merged. The average number of Pull Requests per day throughout the past six months has increased from three to about six, even though we split the website, CLI and many modules out of React Native via the Lean Core effort. The average amount of open pull requests is now below 25 and we usually reply with suggestions and reviews within hours or days. @@ -14,22 +14,22 @@ The average number of Pull Requests per day throughout the past six months has i We’d like to highlight a number of recent contributions which we thought were awesome: -- **Accessibility:** React Native 0.60 will ship with many improvements to accessibility APIs both on Android and iOS. All of the new features are directly using APIs provided by the underlying platform so they’ll integrate with native assistance technologies both on Android and iOS. We’d like to thank [Marc Mulcahy](https://github.com/marcmulcahy), [Alan Kenyon](https://github.com/facebook/react-native/pull/24746), [Estevão Lucas](https://github.com/elucaswork), [Sam Mathias Weggersen](https://github.com/sweggersen) and [Janic Duplessis](https://twitter.com/janicduplessis) for their contributions: - - [Additional Accessibility Roles + States](https://github.com/facebook/react-native/pull/24095) and a [new Accessibility States API](https://github.com/facebook/react-native/pull/24608). Added a number of missing accessibility roles for various components and a new API for better web support in the future. - - [AccessibilityInfo.announceForAccessibility](https://github.com/facebook/react-native/pull/24746). Added support for Android, previously iOS-only. - - [Extended Accessibility Actions Support](https://github.com/facebook/react-native/pull/24695). Added callbacks to deal with accessibility around user-defined actions. - - [Support for iOS Accessibility flags](https://github.com/facebook/react-native/pull/23913) and [support for "reduce motion"](https://github.com/facebook/react-native/pull/23839). - - [Android keyboard accessibility improvements](https://github.com/facebook/react-native/pull/24359). Added a `clickable` prop and an `onClick` callback for invoking actions via keyboard navigation _(note: this will soon be renamed to `focusable`)._ - - [Use CALayers to draw text](https://github.com/facebook/react-native/pull/24387). Fixed an issue that made scaled-up text disappear on iOS. +- **Accessibility:** React Native 0.60 will ship with many improvements to accessibility APIs both on Android and iOS. All of the new features are directly using APIs provided by the underlying platform so they’ll integrate with native assistance technologies both on Android and iOS. We’d like to thank [Marc Mulcahy](https://github.com/marcmulcahy), [Alan Kenyon](https://github.com/react/react-native/pull/24746), [Estevão Lucas](https://github.com/elucaswork), [Sam Mathias Weggersen](https://github.com/sweggersen) and [Janic Duplessis](https://twitter.com/janicduplessis) for their contributions: + - [Additional Accessibility Roles + States](https://github.com/react/react-native/pull/24095) and a [new Accessibility States API](https://github.com/react/react-native/pull/24608). Added a number of missing accessibility roles for various components and a new API for better web support in the future. + - [AccessibilityInfo.announceForAccessibility](https://github.com/react/react-native/pull/24746). Added support for Android, previously iOS-only. + - [Extended Accessibility Actions Support](https://github.com/react/react-native/pull/24695). Added callbacks to deal with accessibility around user-defined actions. + - [Support for iOS Accessibility flags](https://github.com/react/react-native/pull/23913) and [support for "reduce motion"](https://github.com/react/react-native/pull/23839). + - [Android keyboard accessibility improvements](https://github.com/react/react-native/pull/24359). Added a `clickable` prop and an `onClick` callback for invoking actions via keyboard navigation _(note: this will soon be renamed to `focusable`)._ + - [Use CALayers to draw text](https://github.com/react/react-native/pull/24387). Fixed an issue that made scaled-up text disappear on iOS. - **New App Screen:** The community came up with a [design for the new app screen](https://github.com/react-native-community/discussions-and-proposals/issues/122) that is implemented in 0.60. This screen is what most people see when they are first using React Native. It now links first time users to the documentation and the look fits with our upcoming website redesign 🌟. Huge thanks to [Orta](https://twitter.com/orta), [Adam Shurson](https://www.linkedin.com/in/ashurson/), [Glauber Castro](https://github.com/glauberfc), [Karan Singh](https://github.com/karanpratapsingh), [Eli Perkins](https://github.com/eliperkins), [Lucas Bento](https://x.com/bitbento) and [Eric Lewis](https://twitter.com/ericlewis) for all their work and collaboration! - Check out the new app screen on the “_[React Native Show](https://www.youtube.com/watch?v=ImlAqMZxveg)_“ video series. -- **TurboModule Types:** The new [TurboModules system](https://github.com/react-native-community/discussions-and-proposals/issues/40) requires [types for all native modules](https://github.com/facebook/react-native/issues/24875) to guarantee type safe operations in native. In just over two weeks, the community sent ~40 Pull Requests to complete this work for flow typed native modules. Aside from the people already mentioned above, we’d like to thank [Michał Chudziak](https://twitter.com/michalchudziak), [Michał Pierzchała](https://twitter.com/thymikee), [Wojtek Szafraniec](https://github.com/wojteg1337), and [Jean Regisser](https://github.com/jeanregisser) and everyone else who sent one or more Pull Requests. -- **Haste:** Since 2015 React Native used the [“haste” module system](https://github.com/reactjs/reactjs.org/commit/0629e3e2289ed54fac854472aec9a5f6c8318c98#diff-c42b758729cb89976b3a8fd51d1227fa) that allows importing modules just via a global id instead of a relative path which is convenient but not well supported by many tools. [James Ide](https://twitter.com/JI) proposed removing haste, similar to how React removed haste many years ago. He planned all the work through an [umbrella task](https://github.com/facebook/react-native/issues/24316) and he sent 18 Pull Requests to make it happen! Check out [his Twitter thread](https://twitter.com/JI/status/1136369775083319296) to learn more. -- **Android Fragments:** [John Shelley](https://github.com/jpshelley)‘s proposal to make React Native work via [Android Fragments](https://github.com/facebook/react-native/pull/12199) was merged and will be available in 0.61. [Read more about Android Fragments here](https://developer.android.com/guide/components/fragments). +- **TurboModule Types:** The new [TurboModules system](https://github.com/react-native-community/discussions-and-proposals/issues/40) requires [types for all native modules](https://github.com/react/react-native/issues/24875) to guarantee type safe operations in native. In just over two weeks, the community sent ~40 Pull Requests to complete this work for flow typed native modules. Aside from the people already mentioned above, we’d like to thank [Michał Chudziak](https://twitter.com/michalchudziak), [Michał Pierzchała](https://twitter.com/thymikee), [Wojtek Szafraniec](https://github.com/wojteg1337), and [Jean Regisser](https://github.com/jeanregisser) and everyone else who sent one or more Pull Requests. +- **Haste:** Since 2015 React Native used the [“haste” module system](https://github.com/reactjs/reactjs.org/commit/0629e3e2289ed54fac854472aec9a5f6c8318c98#diff-c42b758729cb89976b3a8fd51d1227fa) that allows importing modules just via a global id instead of a relative path which is convenient but not well supported by many tools. [James Ide](https://twitter.com/JI) proposed removing haste, similar to how React removed haste many years ago. He planned all the work through an [umbrella task](https://github.com/react/react-native/issues/24316) and he sent 18 Pull Requests to make it happen! Check out [his Twitter thread](https://twitter.com/JI/status/1136369775083319296) to learn more. +- **Android Fragments:** [John Shelley](https://github.com/jpshelley)‘s proposal to make React Native work via [Android Fragments](https://github.com/react/react-native/pull/12199) was merged and will be available in 0.61. [Read more about Android Fragments here](https://developer.android.com/guide/components/fragments). ### Lean Core -The primary motivation of [Lean Core](https://github.com/react-native-community/discussions-and-proposals/issues/6) has been to split modules out of React Native into separate repositories so they can receive better maintenance. In just a six months repositories like [WebView](https://github.com/react-native-community/react-native-webview), [NetInfo](https://github.com/react-native-community/react-native-netinfo), [AsyncStorage](https://github.com/react-native-community/react-native-async-storage), the [website](https://github.com/facebook/react-native-website) and the [CLI](https://github.com/react-native-community/cli) received more than 800 Pull Requests combined. Besides better maintenance, these projects can also be independently released more often than React Native itself. +The primary motivation of [Lean Core](https://github.com/react-native-community/discussions-and-proposals/issues/6) has been to split modules out of React Native into separate repositories so they can receive better maintenance. In just a six months repositories like [WebView](https://github.com/react-native-community/react-native-webview), [NetInfo](https://github.com/react-native-community/react-native-netinfo), [AsyncStorage](https://github.com/react-native-community/react-native-async-storage), the [website](https://github.com/react/react-native-website) and the [CLI](https://github.com/react-native-community/cli) received more than 800 Pull Requests combined. Besides better maintenance, these projects can also be independently released more often than React Native itself. We have also taken the opportunity to remove obsolete polyfills and legacy components from React Native itself. Polyfills were necessary in the past to support language features like [`Map`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map) and [`Set`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set) in older versions of JavaScriptCore (JSC). Now that React Native ships with a new version, these polyfills were removed. @@ -44,14 +44,14 @@ Six months ago we asked the community “[What do you dislike about React Native - **Upgrading:** The React Native community rallied around with multiple improvements to the upgrading experience: [autolinking](https://github.com/react-native-community/cli/blob/master/docs/autolinking.md), a better upgrading command via [rn-diff-purge](https://github.com/react-native-community/rn-diff-purge), an upgrade helper website (coming soon). We’ll also make sure to communicate breaking changes and exciting new features by publishing blog posts for each major release. Many of these improvements will make future upgrades beyond the 0.60 release significantly easier. - **Support / Uncertainty:** Many people were frustrated with the lack of activity on Pull Requests and general uncertainty about Facebook's investment in React Native. As we've shown above, we can confidently say that we are ready for many more Pull Requests and we are eagerly looking forward to your proposals and contributions! - **Performance:** React Native 0.59 shipped with a new and much faster version of JavaScriptCore (JSC). Separately, we have been working on making it easier to enable [inline-requires](/docs/performance#ram-bundles-inline-requires) by default and we have more exciting updates for you in the next couple of months. -- **Documentation:** We recently started an effort to [overhaul and rewrite all of React Native's documentation](https://github.com/facebook/react-native-website/issues/929). If you are looking to contribute, we’d love to get your help! -- **Warnings in Xcode:** We [got rid of all the existing warnings](https://github.com/facebook/react-native/issues/22609) and are making an effort not to introduce new warnings. +- **Documentation:** We recently started an effort to [overhaul and rewrite all of React Native's documentation](https://github.com/react/react-native-website/issues/929). If you are looking to contribute, we’d love to get your help! +- **Warnings in Xcode:** We [got rid of all the existing warnings](https://github.com/react/react-native/issues/22609) and are making an effort not to introduce new warnings. - **Hot Reloading:** The React team is building a [new hot reloading system](https://web.archive.org/web/20230523030851/https://twitter.com/dan_abramov/status/1126948870137753605) that will soon be integrated into React Native. Unfortunately we weren’t able to improve everything just yet: - **Debugging:** We fixed many inconvenient bugs and issues people that we have been running into every day, but unfortunately we haven't made as much progress on this as we would like. We recognize that debugging with React Native isn't great and we'll prioritize improving this in the future. -- **Metro symlinks:** Unfortunately we haven't been able to implement a simple and straightforward solution for this yet. However, React Native users [shared various workarounds](https://github.com/facebook/metro/issues/1) that may work for you. +- **Metro symlinks:** Unfortunately we haven't been able to implement a simple and straightforward solution for this yet. However, React Native users [shared various workarounds](https://github.com/react/metro/issues/1) that may work for you. Given the large amount of changes in the past six months, we'd like to ask you the same question again. If you are using the latest version of React Native and you have things you'd like to give feedback on, please comment on our new edition of [“What do you dislike about React Native?”](https://github.com/react-native-community/discussions-and-proposals/issues/134) diff --git a/website/blog/2019-07-03-version-60.md b/website/blog/2019-07-03-version-60.md index 60fecb6e87d..503c2828b34 100644 --- a/website/blog/2019-07-03-version-60.md +++ b/website/blog/2019-07-03-version-60.md @@ -12,7 +12,7 @@ After months of hard work from hundreds of contributors, the React Native Core t ## Focus on Accessibility -There have been many improvements to the accessibility APIs, like [announceForAccessibility](https://github.com/facebook/react-native/commit/cfe0032), plus improvements to [roles](https://github.com/facebook/react-native/commit/1aeac1c), [action support](https://github.com/facebook/react-native/commit/14b4668), [flags](https://github.com/facebook/react-native/commit/0090ab3), and more. Accessibility is a complex science, but we hope these improvements make it a bit easier to be an A11Y. Be sure to check [React Native Open Source Update June 2019](/blog/2019/06/12/react-native-open-source-update#meaningful-community-contributions) for more details of these changes. +There have been many improvements to the accessibility APIs, like [announceForAccessibility](https://github.com/react/react-native/commit/cfe0032), plus improvements to [roles](https://github.com/react/react-native/commit/1aeac1c), [action support](https://github.com/react/react-native/commit/14b4668), [flags](https://github.com/react/react-native/commit/0090ab3), and more. Accessibility is a complex science, but we hope these improvements make it a bit easier to be an A11Y. Be sure to check [React Native Open Source Update June 2019](/blog/2019/06/12/react-native-open-source-update#meaningful-community-contributions) for more details of these changes. ## A Fresh Start @@ -32,7 +32,7 @@ While your own native code will need to be migrated by you, [@mikehardy](https:/ ## CocoaPods by Default -[CocoaPods are now part of React Native's iOS project](https://github.com/react-native-community/discussions-and-proposals/blob/master/proposals/0004-cocoapods-support-improvements.md). If you weren't already, be sure to open iOS platform code using the `xcworkspace` file from now on (protip: try `xed ios` from the root project directory). Also, the `podspec`s for the internal packages have changed to make them compatible with the Xcode projects, which will help with troubleshooting and debugging. Expect to make [some straightforward changes](https://github.com/facebook/react-native/commit/2321b3f) to your `Podfile` as part of the upgrade to 0.60 to bring this exciting support. Note that we are aware of a compatibility issue with `use_frameworks!`, and we're tracking an [issue](https://github.com/facebook/react-native/issues/25349) with workarounds and a future patch. +[CocoaPods are now part of React Native's iOS project](https://github.com/react-native-community/discussions-and-proposals/blob/master/proposals/0004-cocoapods-support-improvements.md). If you weren't already, be sure to open iOS platform code using the `xcworkspace` file from now on (protip: try `xed ios` from the root project directory). Also, the `podspec`s for the internal packages have changed to make them compatible with the Xcode projects, which will help with troubleshooting and debugging. Expect to make [some straightforward changes](https://github.com/react/react-native/commit/2321b3f) to your `Podfile` as part of the upgrade to 0.60 to bring this exciting support. Note that we are aware of a compatibility issue with `use_frameworks!`, and we're tracking an [issue](https://github.com/react/react-native/issues/25349) with workarounds and a future patch. ## Lean Core Removals diff --git a/website/blog/2019-09-18-version-0.61.md b/website/blog/2019-09-18-version-0.61.md index 83f5fa4f936..f3da7556398 100644 --- a/website/blog/2019-09-18-version-0.61.md +++ b/website/blog/2019-09-18-version-0.61.md @@ -42,7 +42,7 @@ Please report any issues with Fast Refresh on GitHub, and we’ll look into them ## Other Improvements -- **Fixed use_frameworks! CocoaPods support.** In 0.60 we made some updates to integrate CocoaPods by default. Unfortunately, this broke builds using [use_frameworks!](https://guides.cocoapods.org/syntax/podfile.html#use_frameworks_bang). This is [fixed in 0.61](https://github.com/facebook/react-native/pull/25619), making it easier to integrate React Native into your iOS projects that require building with dynamic frameworks. +- **Fixed use_frameworks! CocoaPods support.** In 0.60 we made some updates to integrate CocoaPods by default. Unfortunately, this broke builds using [use_frameworks!](https://guides.cocoapods.org/syntax/podfile.html#use_frameworks_bang). This is [fixed in 0.61](https://github.com/react/react-native/pull/25619), making it easier to integrate React Native into your iOS projects that require building with dynamic frameworks. - **Add useWindowDimensions Hook.** This new Hook automatically provides and subscribes to dimension updates, and can be used instead of the Dimensions API in most cases. - **React was upgraded to 16.9.** This version deprecates old names for the UNSAFE\_ lifecycle methods, contains improvements to `act`, and more. See the [React 16.9 blog post](https://reactjs.org/blog/2019/08/08/react-v16.9.0.html) for an automated migration script and more information. @@ -54,4 +54,4 @@ Please report any issues with Fast Refresh on GitHub, and we’ll look into them Thanks to all of the contributors that helped make 0.61 possible! -To see all the updates, take a look at the [0.61 changelog](https://github.com/facebook/react-native/blob/main/CHANGELOG.md#v0610). +To see all the updates, take a look at the [0.61 changelog](https://github.com/react/react-native/blob/main/CHANGELOG.md#v0610). diff --git a/website/blog/2020-03-26-version-0.62.mdx b/website/blog/2020-03-26-version-0.62.mdx index d60a021dd24..772f5b34147 100644 --- a/website/blog/2020-03-26-version-0.62.mdx +++ b/website/blog/2020-03-26-version-0.62.mdx @@ -78,22 +78,22 @@ We're always working to improve the upgrade experience, and we hope that these t - **LogBox**: We’re adding the new LogBox error and warning experience as an opt-in; to enable it, add `require('react-native').unstable_enableLogBox()` to your `index.js` file. - **React DevTools v4**: This change includes an upgrade to the [latest React DevTools](https://reactjs.org/blog/2019/08/15/new-react-devtools.html) which offers significant performance gains, an improved navigation experience, and full support for React Hooks. -- **Accessibility improvements**: We’ve made improvements to accessibility including adding [accessibilityValue](https://reactnative.dev/docs/accessibility#accessibilityvalue-ios-android), missing props on [Touchables](https://github.com/facebook/react-native/commit/8c0c860e38f57e18296f689e47dfb4a54088c260), `onSlidingComplete` [accessibility events](https://github.com/facebook/react-native/commit/c7aa6dc8270c0eabc913fe6c617c8131e3f4b3c5), and changing the default role of Switch component from `"button"` to `"switch"`. +- **Accessibility improvements**: We’ve made improvements to accessibility including adding [accessibilityValue](https://reactnative.dev/docs/accessibility#accessibilityvalue-ios-android), missing props on [Touchables](https://github.com/react/react-native/commit/8c0c860e38f57e18296f689e47dfb4a54088c260), `onSlidingComplete` [accessibility events](https://github.com/react/react-native/commit/c7aa6dc8270c0eabc913fe6c617c8131e3f4b3c5), and changing the default role of Switch component from `"button"` to `"switch"`. ## Breaking changes - **Remove PropTypes**: We're removing `propTypes` from core components in order to reduce the app size impact of React Native core and to favor static type systems which check at compile time instead of runtime. -- **Remove accessibilityStates**: We’ve [removed](https://github.com/facebook/react-native/commit/7b35f427fd66cb0f36921b992095fe5b3c14d8b9) the deprecated `accessibilityStates` property in favor of the new `accessibilityState` prop which is a more semantically rich way for components to describe information about their state to accessibility services. -- **TextInput changes**: We removed `onTextInput` [from TextInput](https://github.com/facebook/react-native/commit/3f7e0a2c9601fc186f25bfd794cd0008ac3983ab) as it’s uncommon, not W3C compliant, and difficult to implement in [Fabric](https://github.com/react-native-community/discussions-and-proposals/issues/4). We also removed the undocumented `inputView` prop, and `selectionState`. +- **Remove accessibilityStates**: We’ve [removed](https://github.com/react/react-native/commit/7b35f427fd66cb0f36921b992095fe5b3c14d8b9) the deprecated `accessibilityStates` property in favor of the new `accessibilityState` prop which is a more semantically rich way for components to describe information about their state to accessibility services. +- **TextInput changes**: We removed `onTextInput` [from TextInput](https://github.com/react/react-native/commit/3f7e0a2c9601fc186f25bfd794cd0008ac3983ab) as it’s uncommon, not W3C compliant, and difficult to implement in [Fabric](https://github.com/react-native-community/discussions-and-proposals/issues/4). We also removed the undocumented `inputView` prop, and `selectionState`. ## Deprecations -- `AccessibilityInfo.fetch` was already deprecated, but in this release we [added a warning](https://github.com/facebook/react-native/commit/523ab8333800afbfb169c6fd70ab6611fe07cc2a). -- Setting `useNativeDriver` is [now required](https://github.com/facebook/react-native/commit/5876052615f4858ed5fc32fa3da9b64695974238) to support switching the default in the future. -- The `ref` of an `Animated` component is now the internal component and [deprecated](https://github.com/facebook/react-native/commit/66e72bb4e00aafbcb9f450ed5db261d98f99f82a) `getNode`. +- `AccessibilityInfo.fetch` was already deprecated, but in this release we [added a warning](https://github.com/react/react-native/commit/523ab8333800afbfb169c6fd70ab6611fe07cc2a). +- Setting `useNativeDriver` is [now required](https://github.com/react/react-native/commit/5876052615f4858ed5fc32fa3da9b64695974238) to support switching the default in the future. +- The `ref` of an `Animated` component is now the internal component and [deprecated](https://github.com/react/react-native/commit/66e72bb4e00aafbcb9f450ed5db261d98f99f82a) `getNode`. ## Thanks Thank you to the hundreds of contributors that helped make 0.62 possible! -To see all the updates, take a look at the [0.62 changelog](https://github.com/facebook/react-native/blob/main/CHANGELOG.md#v0620). +To see all the updates, take a look at the [0.62 changelog](https://github.com/react/react-native/blob/main/CHANGELOG.md#v0620). diff --git a/website/blog/2020-07-06-version-0.63.md b/website/blog/2020-07-06-version-0.63.md index 44828442556..f7bce6dc70b 100644 --- a/website/blog/2020-07-06-version-0.63.md +++ b/website/blog/2020-07-06-version-0.63.md @@ -100,7 +100,7 @@ import {View, Text, PlatformColor} from 'react-native';

Sets the background color of the View component to colorButtonNormal as defined by Android.

-You can learn more about `PlatformColor` from [the documentation](https://reactnative.dev/docs/platformcolor). You can also check the actual [code examples present in the RNTester](https://github.com/facebook/react-native/blob/master/packages/rn-tester/js/examples/PlatformColor/PlatformColorExample.js). +You can learn more about `PlatformColor` from [the documentation](https://reactnative.dev/docs/platformcolor). You can also check the actual [code examples present in the RNTester](https://github.com/react/react-native/blob/master/packages/rn-tester/js/examples/PlatformColor/PlatformColorExample.js). `DynamicColorIOS` is an iOS only API that lets you define which color to use in light and dark mode. Similar to `PlatformColor`, this can be used anywhere you can use colors. `DynamicColorIOS` uses iOS’s `colorWithDynamicProvider` under the hood. @@ -140,4 +140,4 @@ Thank you to the hundreds of contributors that helped make 0.63 possible! Special thanks to [Rick Hanlon](https://x.com/rickyfm) for authoring the section on `LogBox` and [Eli White](https://twitter.com/Eli_White) for authoring the `Pressable` part of this article. ::: -To see all the updates, take a look at the [0.63 changelog](https://github.com/facebook/react-native/blob/main/CHANGELOG.md#v0630). +To see all the updates, take a look at the [0.63 changelog](https://github.com/react/react-native/blob/main/CHANGELOG.md#v0630). diff --git a/website/blog/2020-07-17-react-native-principles.md b/website/blog/2020-07-17-react-native-principles.md index 0e556de5800..f110baf2874 100644 --- a/website/blog/2020-07-17-react-native-principles.md +++ b/website/blog/2020-07-17-react-native-principles.md @@ -22,7 +22,7 @@ Deploying React Native in our apps lets us identify problems that we wouldn’t We have proven that React Native can scale to massive organizations too. When hundreds of developers are working on the same app, gradual adoption is a must. This is why we made sure that React Native can be adopted one screen at a time. Soon, we will be taking this one step further and enable migrating individual native views of an existing native screen to React Native. -A focus on massive scale means there are many things our team isn’t currently working on. For example, our team doesn’t drive the adoption of React Native in the industry. We also do not actively build solutions for problems that we don’t see at scale. We are proud that we have [many partners and core contributors](https://github.com/facebook/react-native/blob/master/ECOSYSTEM.md) that are able to focus on those important areas for the community. +A focus on massive scale means there are many things our team isn’t currently working on. For example, our team doesn’t drive the adoption of React Native in the industry. We also do not actively build solutions for problems that we don’t see at scale. We are proud that we have [many partners and core contributors](https://github.com/react/react-native/blob/master/ECOSYSTEM.md) that are able to focus on those important areas for the community. ## Developer Velocity diff --git a/website/blog/2020-07-23-docs-update.mdx b/website/blog/2020-07-23-docs-update.mdx index 26095fc33a2..bff485db343 100644 --- a/website/blog/2020-07-23-docs-update.mdx +++ b/website/blog/2020-07-23-docs-update.mdx @@ -16,7 +16,7 @@ Last year we conducted user interviews and sent out [a survey](https://www.surve - **More illustrations** We've added fancy new illustrations, including the new [`Pressable`](https://reactnative.dev/docs/pressable) and [introduction to React Native components](https://reactnative.dev/docs/intro-react-native-components) docs - **https://reactnative.dev** After 5 years we finally moved to our own domain! **reactnative.dev** is easier to autocomplete from your browser bar and is easier to type out than our previous **github.io** address! - **Site design and architecture improvements** We've updated the design and site architecture to surface and categorize more of our guides and make content in the API reference more readable. Kudos especially to [Bartosz Kaszubowski](https://github.com/Simek) whose attention to detail and collaboration has made many of these changes possible quickly! -- **Updated Core Component and API docs** We held a [documentation drive](https://github.com/facebook/react-native-website/issues/1579) to update reference docs! Thanks to these and other participants we were able to fully update the docs and add Snack examples to all of them in time for 0.62: [Marta Dabrowka](https://twitter.com/martadabrowka), [Abraham Nnaji](https://twitter.com/nnajiabraham), [Ahmed Talaat El-Hager](https://twitter.com/ahmdtalat), [Mohamed Abdel Nasser Abdou](https://x.com/mmabdelnasser), [Danilo Britto](https://x.com/dbritto_dev), [Mitul Savani](https://twitter.com/mitulsavani), [Kaio Duarte](https://twitter.com/kaiodduarte), [Pablo Espinosa](https://x.com/pabloCamelCase), [Jesse Katsumata](https://twitter.com/natural_clar), [I Gede Agastya Darma Laksana](https://twitter.com/gedeagas), [Sebastião Bruno Kiafuka Fernando](https://twitter.com/bruno_kiafuka), [Miguel Bolivar](https://twitter.com/Darking360), [Dani Akash](https://twitter.com/dani_akash_), [Luiz Celso de Faria Alves](https://twitter.com/_eucelso), and [Bartosz Kaszubowski](https://twitter.com/simek). With their contributions, these are the best and most up to date React Native docs yet! +- **Updated Core Component and API docs** We held a [documentation drive](https://github.com/react/react-native-website/issues/1579) to update reference docs! Thanks to these and other participants we were able to fully update the docs and add Snack examples to all of them in time for 0.62: [Marta Dabrowka](https://twitter.com/martadabrowka), [Abraham Nnaji](https://twitter.com/nnajiabraham), [Ahmed Talaat El-Hager](https://twitter.com/ahmdtalat), [Mohamed Abdel Nasser Abdou](https://x.com/mmabdelnasser), [Danilo Britto](https://x.com/dbritto_dev), [Mitul Savani](https://twitter.com/mitulsavani), [Kaio Duarte](https://twitter.com/kaiodduarte), [Pablo Espinosa](https://x.com/pabloCamelCase), [Jesse Katsumata](https://twitter.com/natural_clar), [I Gede Agastya Darma Laksana](https://twitter.com/gedeagas), [Sebastião Bruno Kiafuka Fernando](https://twitter.com/bruno_kiafuka), [Miguel Bolivar](https://twitter.com/Darking360), [Dani Akash](https://twitter.com/dani_akash_), [Luiz Celso de Faria Alves](https://twitter.com/_eucelso), and [Bartosz Kaszubowski](https://twitter.com/simek). With their contributions, these are the best and most up to date React Native docs yet! - **Keep those PRs coming!** We are able to consistently keep our open PRs under 10 per week! Thank you for sending them! Thank you so much to everyone who participated in the interviews, the survey, and our documentation efforts! Your collaboration makes this possible. diff --git a/website/blog/2021-03-08-GAAD-React-Native-Accessibility.md b/website/blog/2021-03-08-GAAD-React-Native-Accessibility.md index 76925f2b486..03103639383 100644 --- a/website/blog/2021-03-08-GAAD-React-Native-Accessibility.md +++ b/website/blog/2021-03-08-GAAD-React-Native-Accessibility.md @@ -6,7 +6,7 @@ tags: [announcement] ## Hello React Native Community, -In May 2020 Facebook was the first company to take the [GAAD pledge](https://diamond.la/GAADPledge/), by doing so they committed to making accessibility a core part of the React Native open source project. Since May, Facebook has spent that time thoughtfully reviewing and documenting accessibility gaps within React Native. So far the gap analysis has surfaced 90 issues, all of which have been translated to [GitHub issues](https://github.com/facebook/react-native/projects/15). +In May 2020 Facebook was the first company to take the [GAAD pledge](https://diamond.la/GAADPledge/), by doing so they committed to making accessibility a core part of the React Native open source project. Since May, Facebook has spent that time thoughtfully reviewing and documenting accessibility gaps within React Native. So far the gap analysis has surfaced 90 issues, all of which have been translated to [GitHub issues](https://github.com/react/react-native/projects/15). Overall, we found that React Native APIs provide strong support for accessibility. However, we also found many core components do not yet fully utilize platform accessibility APIs and support is missing for some platform specific features. @@ -18,11 +18,11 @@ Please join us in making React Native more accessible for everyone. ### How you can help: -- New contributors should read the [contribution guide](https://github.com/facebook/react-native/blob/master/CONTRIBUTING.md) and browse the list of 46 [good first issues](https://github.com/facebook/react-native/issues?q=is%3Aopen+is%3Aissue+label%3A%22Good+first+issue%22+label%3AAccessibility) in the React Native GitHub. +- New contributors should read the [contribution guide](https://github.com/react/react-native/blob/master/CONTRIBUTING.md) and browse the list of 46 [good first issues](https://github.com/react/react-native/issues?q=is%3Aopen+is%3Aissue+label%3A%22Good+first+issue%22+label%3AAccessibility) in the React Native GitHub. -- Contributors interested in issues requiring a bit more effort should visit [the project page for Improved React Native Accessibility](https://github.com/facebook/react-native/projects/15) to see the GitHub issues that need their knowledge of React Native. +- Contributors interested in issues requiring a bit more effort should visit [the project page for Improved React Native Accessibility](https://github.com/react/react-native/projects/15) to see the GitHub issues that need their knowledge of React Native. -- Technical writers interested in updating React Native's documentation to reflect the accessibility gaps being closed should visit the [React Native Docs](https://github.com/facebook/react-native-website#-overview). +- Technical writers interested in updating React Native's documentation to reflect the accessibility gaps being closed should visit the [React Native Docs](https://github.com/react/react-native-website#-overview). - Share this initiative with anyone who may be able to help! diff --git a/website/blog/2021-03-12-version-0.64.mdx b/website/blog/2021-03-12-version-0.64.mdx index 0c4194c1bc2..a8981d767bf 100644 --- a/website/blog/2021-03-12-version-0.64.mdx +++ b/website/blog/2021-03-12-version-0.64.mdx @@ -66,7 +66,7 @@ For more information, check out the [new documentation page](https://reactnative We have added Proxy support to Hermes, enabling compatibility with popular community projects like react-native-firebase and mobx. If you have been using these packages you can now migrate to Hermes for your project. -We plan to make Hermes the default JavaScript engine for Android in a coming release so we are working to resolve the remaining issues people have when using Hermes. Please open an issue on the [Hermes GitHub repo](https://github.com/facebook/hermes) if there are remaining issues holding back your app from adopting Hermes. +We plan to make Hermes the default JavaScript engine for Android in a coming release so we are working to resolve the remaining issues people have when using Hermes. Please open an issue on the [Hermes GitHub repo](https://github.com/meta/hermes) if there are remaining issues holding back your app from adopting Hermes. ## React 17 @@ -83,4 +83,4 @@ More information about React 17 is available [on the React blog](https://reactjs ## Thanks -Thank you to the hundreds of contributors that helped make 0.64 possible! The [0.64 changelog](https://github.com/facebook/react-native/blob/main/CHANGELOG.md#v0640) includes all of the changes included in this release. +Thank you to the hundreds of contributors that helped make 0.64 possible! The [0.64 changelog](https://github.com/react/react-native/blob/main/CHANGELOG.md#v0640) includes all of the changes included in this release. diff --git a/website/blog/2021-04-08-GAAD-March-Accessibility-Issue-Update.mdx b/website/blog/2021-04-08-GAAD-March-Accessibility-Issue-Update.mdx index 6b686a6ce2c..be39b63cf0d 100644 --- a/website/blog/2021-04-08-GAAD-March-Accessibility-Issue-Update.mdx +++ b/website/blog/2021-04-08-GAAD-March-Accessibility-Issue-Update.mdx @@ -14,33 +14,33 @@ Thank you to all the community members who have participated. You are truly movi ## Closed Pull Requests 🎉 -- [Added talkback support for button accessibility: disabled prop #31001](https://github.com/facebook/react-native/pull/31001) - closed by [@huzaifaaak ](https://twitter.com/huzaifaaak) +- [Added talkback support for button accessibility: disabled prop #31001](https://github.com/react/react-native/pull/31001) - closed by [@huzaifaaak ](https://twitter.com/huzaifaaak) -- [feat: set disabled accessibilityState when TouchableHighlight is disabled #31135](https://github.com/facebook/react-native/pull/31135) closed by [@natural_clar](https://twitter.com/natural_clar) +- [feat: set disabled accessibilityState when TouchableHighlight is disabled #31135](https://github.com/react/react-native/pull/31135) closed by [@natural_clar](https://twitter.com/natural_clar) -- [[Android] Selected State does not announce when TextInput Component selected #31144](https://github.com/facebook/react-native/pull/31144) closed by [fabriziobertoglio1987](https://fabriziobertoglio.xyz/) +- [[Android] Selected State does not announce when TextInput Component selected #31144](https://github.com/react/react-native/pull/31144) closed by [fabriziobertoglio1987](https://fabriziobertoglio.xyz/) -- [Added talkback support for TouchableNativeFeedback accessibility: disabled prop #31224](https://github.com/facebook/react-native/pull/31224) closed by [@kyamashiro](https://github.com/kyamashiro) +- [Added talkback support for TouchableNativeFeedback accessibility: disabled prop #31224](https://github.com/react/react-native/pull/31224) closed by [@kyamashiro](https://github.com/kyamashiro) -- [Accessibility/button test #31189](https://github.com/facebook/react-native/pull/31189) closed by [@huzaifaaak ](https://twitter.com/huzaifaaak) +- [Accessibility/button test #31189](https://github.com/react/react-native/pull/31189) closed by [@huzaifaaak ](https://twitter.com/huzaifaaak) - Adds a test for accessibilityState for button ## Fixes -- `Button` component (fixed by [#31001](https://github.com/facebook/react-native/pull/31001)): +- `Button` component (fixed by [#31001](https://github.com/react/react-native/pull/31001)): - Now announces when it is disabled - Disables click functionality for screen readers when the button is disabled - Announces the selected state of the button -- `TextInput` component (fixed by [#31144](https://github.com/facebook/react-native/pull/31144)): +- `TextInput` component (fixed by [#31144](https://github.com/react/react-native/pull/31144)): - Announces "selected" when the "selected" accessibilityState is set to true and the element is focused -- `TouchableHighlight` component (fixed by [#31135](https://github.com/facebook/react-native/pull/31135)): +- `TouchableHighlight` component (fixed by [#31135](https://github.com/react/react-native/pull/31135)): - Disables click functionality for screen readers when the component is disabled -- `TouchableNativeFeedback` component (fixed by [#31224](https://github.com/facebook/react-native/pull/31224)): +- `TouchableNativeFeedback` component (fixed by [#31224](https://github.com/react/react-native/pull/31224)): - Disables click functionality for screen readers when the component is disabled ## Other Progress @@ -55,11 +55,11 @@ Thank you to all the community members who have participated. You are truly movi ## Get involved! -- New contributors should read the [contribution guide](https://github.com/facebook/react-native/blob/master/CONTRIBUTING.md) and browse the list of 37 [good first issues](https://github.com/facebook/react-native/issues?q=is%3Aopen+is%3Aissue+label%3A%22Good+first+issue%22+label%3AAccessibility) in the React Native GitHub. +- New contributors should read the [contribution guide](https://github.com/react/react-native/blob/master/CONTRIBUTING.md) and browse the list of 37 [good first issues](https://github.com/react/react-native/issues?q=is%3Aopen+is%3Aissue+label%3A%22Good+first+issue%22+label%3AAccessibility) in the React Native GitHub. -- Contributors interested in issues requiring a bit more effort should visit [the project page for Improved React Native Accessibility](https://github.com/facebook/react-native/projects/15) to see the GitHub issues that need their knowledge of React Native. +- Contributors interested in issues requiring a bit more effort should visit [the project page for Improved React Native Accessibility](https://github.com/react/react-native/projects/15) to see the GitHub issues that need their knowledge of React Native. -- Technical writers interested in updating React Native's documentation to reflect the accessibility gaps being closed should visit the [React Native Docs](https://github.com/facebook/react-native-website#-overview). +- Technical writers interested in updating React Native's documentation to reflect the accessibility gaps being closed should visit the [React Native Docs](https://github.com/react/react-native-website#-overview). - Share this initiative with anyone who may be able to help! diff --git a/website/blog/2021-05-20-GAAD-One-Year-Later.mdx b/website/blog/2021-05-20-GAAD-One-Year-Later.mdx index 63b28690f59..4ffb47e2e7c 100644 --- a/website/blog/2021-05-20-GAAD-One-Year-Later.mdx +++ b/website/blog/2021-05-20-GAAD-One-Year-Later.mdx @@ -36,27 +36,27 @@ One of the most prevalent issues found during the gap analysis was that some com Announces when Disabled -- `Button` - [#31001](https://github.com/facebook/react-native/pull/31001) +- `Button` - [#31001](https://github.com/react/react-native/pull/31001) -- `Images` - [#31252](https://github.com/facebook/react-native/pull/31252) +- `Images` - [#31252](https://github.com/react/react-native/pull/31252) -- `ImageBackground` - [#31252](https://github.com/facebook/react-native/pull/31252) +- `ImageBackground` - [#31252](https://github.com/react/react-native/pull/31252) Disables click functionality when the component has a disabled prop -- `Button` - [#31001](https://github.com/facebook/react-native/pull/31001) +- `Button` - [#31001](https://github.com/react/react-native/pull/31001) -- `Text` - [React Native Team commit](https://github.com/facebook/react-native/commit/33ff4445dcf858cd5e6ba899163fd2a76774b641) +- `Text` - [React Native Team commit](https://github.com/react/react-native/commit/33ff4445dcf858cd5e6ba899163fd2a76774b641) -- `Pressable` - [React Native Team commit](https://github.com/facebook/react-native/commit/1c7d9c8046099eab8db4a460bedc0b2c07ed06df) +- `Pressable` - [React Native Team commit](https://github.com/react/react-native/commit/1c7d9c8046099eab8db4a460bedc0b2c07ed06df) -- `TouchableHighlight` - [#31135](https://github.com/facebook/react-native/pull/31135) +- `TouchableHighlight` - [#31135](https://github.com/react/react-native/pull/31135) -- `TouchableOpacity` - [#31108](https://github.com/facebook/react-native/pull/31108) +- `TouchableOpacity` - [#31108](https://github.com/react/react-native/pull/31108) -- `TouchableNativeFeedback` - [#31224](https://github.com/facebook/react-native/pull/31224) +- `TouchableNativeFeedback` - [#31224](https://github.com/react/react-native/pull/31224) -- `TouchableWithoutFeedback` - [#31297](https://github.com/facebook/react-native/pull/31297) +- `TouchableWithoutFeedback` - [#31297](https://github.com/react/react-native/pull/31297) ### Selected State Announcement @@ -64,9 +64,9 @@ There were some components that did not announce their selection when in focus. Announces when Selected -- `Button` - [#31001](https://github.com/facebook/react-native/pull/31001) +- `Button` - [#31001](https://github.com/react/react-native/pull/31001) -- `TextInput` - [#31144](https://github.com/facebook/react-native/pull/31144) +- `TextInput` - [#31144](https://github.com/react/react-native/pull/31144) ### Accessibility Timeout Setting @@ -83,22 +83,22 @@ We want to thank all the contributors mentioned below who have submitted and mer ### Merged Pull Requests - [@huzaifaaak](https://twitter.com/huzaifaaak) closed 3 issues with: - - [Added talkback support for button accessibility: disabled prop #31001](https://github.com/facebook/react-native/pull/31001) - - [Accessibility/button test #31189](https://github.com/facebook/react-native/pull/31189) + - [Added talkback support for button accessibility: disabled prop #31001](https://github.com/react/react-native/pull/31001) + - [Accessibility/button test #31189](https://github.com/react/react-native/pull/31189) - [@natural_clar](https://twitter.com/natural_clar) closed 1 issue with: - - [feat: set disabled accessibilityState when `TouchableHighlight` is disabled #31135](https://github.com/facebook/react-native/pull/31135) + - [feat: set disabled accessibilityState when `TouchableHighlight` is disabled #31135](https://github.com/react/react-native/pull/31135) - [fabriziobertoglio1987](https://github.com/fabriziobertoglio1987) closed 2 issues with: - - [[Android] Selected State does not announce when `TextInput` Component selected #31144](https://github.com/facebook/react-native/pull/31144) - - [Accessibility Fix Image does not announce "disabled" #31252](https://github.com/facebook/react-native/pull/31252) + - [[Android] Selected State does not announce when `TextInput` Component selected #31144](https://github.com/react/react-native/pull/31144) + - [Accessibility Fix Image does not announce "disabled" #31252](https://github.com/react/react-native/pull/31252) - [@kyamashiro](https://github.com/kyamashiro) closed 1 issue with: - - [Added talkback support for `TouchableNativeFeedback` accessibility: disabled prop #31224](https://github.com/facebook/react-native/pull/31224) + - [Added talkback support for `TouchableNativeFeedback` accessibility: disabled prop #31224](https://github.com/react/react-native/pull/31224) - [@grgr-dkrk](https://twitter.com/dkrk0901) closed 1 issue and added to the React Native documentation with: - - [add `getRecommendedTimeoutMillis` to AccessibilityInfo #31063](https://github.com/facebook/react-native/pull/31063) - - [feat: add `getRecommendedTimeoutMillis` section on accessibilityInfo #2581](https://github.com/facebook/react-native-website/pull/2581) + - [add `getRecommendedTimeoutMillis` to AccessibilityInfo #31063](https://github.com/react/react-native/pull/31063) + - [feat: add `getRecommendedTimeoutMillis` section on accessibilityInfo #2581](https://github.com/react/react-native-website/pull/2581) - [@crloscuesta](https://twitter.com/crloscuesta) closed 1 issue with: - - [Disable accessibilityState when `TouchableWithoutFeedback` is disabled #31297](https://github.com/facebook/react-native/pull/31297) + - [Disable accessibilityState when `TouchableWithoutFeedback` is disabled #31297](https://github.com/react/react-native/pull/31297) - [@chakrihacker](https://twitter.com/chakrihacker) closed 1 issue with: - - [Disable `TouchableOpacity` when accessibility disabled is set #31108](https://github.com/facebook/react-native/pull/31108) + - [Disable `TouchableOpacity` when accessibility disabled is set #31108](https://github.com/react/react-native/pull/31108) Thank you to the community members who gave their time in other ways! @@ -108,7 +108,7 @@ Thank you to the community members who gave their time in other ways! We've come a long way but we're not done yet. We need your support to reach the finish line. Facebook's React Native team has committed to supporting contributors working on gap analysis issues. They will continue to respond to comments on Accessibility issues and triage pull requests. The React Native team is also tackling some of the toughest gap analysis issues. This work includes the correct translation of accessibilityRoles to other languages and specifying error text for specific components. -Join us in tackling the rest. There are still open accessibility issues on the [Improved React Native Accessibility project board](https://github.com/facebook/react-native/projects/15). Issues with [Checked/Unchecked State](https://github.com/facebook/react-native/issues/30843), [Entrance/exit from Collection](https://github.com/facebook/react-native/issues/30861), and [Position in Collection](https://github.com/facebook/react-native/issues/30977) are great opportunities for current and new contributors to contribute to a more accessible React Native. +Join us in tackling the rest. There are still open accessibility issues on the [Improved React Native Accessibility project board](https://github.com/react/react-native/projects/15). Issues with [Checked/Unchecked State](https://github.com/react/react-native/issues/30843), [Entrance/exit from Collection](https://github.com/react/react-native/issues/30861), and [Position in Collection](https://github.com/react/react-native/issues/30977) are great opportunities for current and new contributors to contribute to a more accessible React Native. ### Learn More diff --git a/website/blog/2021-08-17-version-065.md b/website/blog/2021-08-17-version-065.md index cc9723518c2..da1373ba55d 100644 --- a/website/blog/2021-08-17-version-065.md +++ b/website/blog/2021-08-17-version-065.md @@ -12,11 +12,11 @@ Today we’re releasing React Native version 0.65 with a new version of Hermes, - A new concurrent garbage collector titled “Hades” which delivers up to 30 times shorter pause times on 64 bit devices. At Facebook, we saw this improve some CPU-intensive workloads by 20%-50%. You can [learn more about Hades here](https://hermesengine.dev/docs/hades/). - [ECMAScript Internationalization API (ECMA-402, or `Intl`)](https://hermesengine.dev/docs/intl) is now built into Hermes on Android and enabled by default, with only 57-62K per API size overhead (compared to [JSC's 6MiB](https://github.com/react-native-community/jsc-android-buildscripts)). With this change, Hermes users no longer require locale polyfills. A big thank you to [@mganandraj](https://github.com/mganandraj) and other partners at Microsoft for driving the implementation to make this happen! -- [Hermes on iOS](/blog/2021/03/12/version-0.64) now [supports Apple M1 Macs and Mac Catalyst](https://github.com/facebook/hermes/pull/546)! +- [Hermes on iOS](/blog/2021/03/12/version-0.64) now [supports Apple M1 Macs and Mac Catalyst](https://github.com/meta/hermes/pull/546)! - Memory improvements including SMI (Small Integers) and pointer compression that [shrank JS heap by 30%](https://twitter.com/tmikov/status/1385629737121243140). -- Changes to `Function.prototype.toString` that [fixed a performance drop due to improper feature detection](https://github.com/facebook/hermes/issues/471#issuecomment-820123463) and [supports the source code injecting use case](https://github.com/facebook/hermes/issues/114). +- Changes to `Function.prototype.toString` that [fixed a performance drop due to improper feature detection](https://github.com/meta/hermes/issues/471#issuecomment-820123463) and [supports the source code injecting use case](https://github.com/meta/hermes/issues/114). -You can find the full [Hermes changelog here](https://github.com/facebook/hermes/releases). +You can find the full [Hermes changelog here](https://github.com/meta/hermes/releases). [Follow steps here](/docs/hermes#enabling-hermes) to opt-in your app to Hermes if you haven’t already to leverage these new features and gains! @@ -28,7 +28,7 @@ Last year [Facebook took the GAAD pledge](https://reactnative.dev/blog/2021/05/2 - Added [`getRecommendedTimeoutMillis`](/docs/accessibilityinfo#getrecommendedtimeoutmillis-android) API on Android. This exposes a user’s preferred default timeout value as set in Android’s accessibility options and is for users who may need extra time to review or reach controls, etc. - General fixes to ensure TalkBack/VoiceOver properly announce UI states such as `disabled` and `unselected` on components. -You can follow along or contribute to our [outstanding accessibility issues](https://github.com/facebook/react-native/projects/15) here! +You can follow along or contribute to our [outstanding accessibility issues](https://github.com/react/react-native/projects/15) here! ## Notable Dependency Version Updates and Gotchas @@ -41,4 +41,4 @@ You can follow along or contribute to our [outstanding accessibility issues](htt ## Thank You! -This release includes over **1100 commits** from **61 contributors**. Thank you to everyone who has contributed and supported this release! You can find the [full changelog here](https://github.com/facebook/react-native/blob/main/CHANGELOG.md#v0650). +This release includes over **1100 commits** from **61 contributors**. Thank you to everyone who has contributed and supported this release! You can find the [full changelog here](https://github.com/react/react-native/blob/main/CHANGELOG.md#v0650). diff --git a/website/blog/2021-08-19-h2-2021.mdx b/website/blog/2021-08-19-h2-2021.mdx index e4cbe8fed00..a142c7a5c37 100644 --- a/website/blog/2021-08-19-h2-2021.mdx +++ b/website/blog/2021-08-19-h2-2021.mdx @@ -30,7 +30,7 @@ We are also focused on improving React Native’s release process. We will need ### Repository Health -When developers evaluate a technology, an essential signal is the health of its repository. This impression is informed by signals such as pull request throughput, stars, age of last commit, and others. The React Native repository has historically lacked a process to ensure that issues and pull requests are reviewed in a timely manner. Our work this half is two-fold: we need to resolve a large backlog of contributions, and we need to build sustainable practices for handling incoming contributions. We hope this work will also set us up for success for more engagement from the community via issues and PRs as the community starts using the new architecture. You can follow our progress on the backlog using this [project board.](https://github.com/facebook/react-native/projects/17) +When developers evaluate a technology, an essential signal is the health of its repository. This impression is informed by signals such as pull request throughput, stars, age of last commit, and others. The React Native repository has historically lacked a process to ensure that issues and pull requests are reviewed in a timely manner. Our work this half is two-fold: we need to resolve a large backlog of contributions, and we need to build sustainable practices for handling incoming contributions. We hope this work will also set us up for success for more engagement from the community via issues and PRs as the community starts using the new architecture. You can follow our progress on the backlog using this [project board.](https://github.com/react/react-native/projects/17) ## Pushing the Technology Forward diff --git a/website/blog/2021-10-01-version-066.mdx b/website/blog/2021-10-01-version-066.mdx index dad812b2df0..8698f095287 100644 --- a/website/blog/2021-10-01-version-066.mdx +++ b/website/blog/2021-10-01-version-066.mdx @@ -20,7 +20,7 @@ Today we’re releasing React Native v0.66 for Android 12 and iOS 15 support alo Thanks to [@hsource](https://github.com/hsource) for adding interaction support for children rendered outside of parent view boundaries via `overflow: visible`. This is a common use-case and aligns React Native on Android more closely with web standards. -Find more details on the [pull request](https://github.com/facebook/react-native/pull/29039). +Find more details on the [pull request](https://github.com/react/react-native/pull/29039). ### New Bluetooth Permissions on Android @@ -33,7 +33,7 @@ This release provides a number of solutions to make Xcode builds for iOS on Appl Notably, the new app template now includes a CocoaPods workaround (thanks to [@mikehardy](https://github.com/MikeHardy)!). To apply, make sure your app’s Podfile has `__apply_Xcode_12_5_M1_post_install_workaround(installer)` added in the `post_install` step. -In addition `RCT-Folly.podspec` has been [updated to prevent arm64 linker failure](https://github.com/facebook/react-native/commit/8b6d7fddd65a9b5caf599e8ff7b090a176a6f11f). +In addition `RCT-Folly.podspec` has been [updated to prevent arm64 linker failure](https://github.com/react/react-native/commit/8b6d7fddd65a9b5caf599e8ff7b090a176a6f11f). Check out this [post](/blog/2021/09/01/preparing-your-app-for-iOS-15-and-android-12) we shared on preparing your app for iOS 15 and Android 12. @@ -43,7 +43,7 @@ Hermes 0.9.0 is primarily about closing the gap between Hermes release cut point Among ~400 commits, there have been general bug fixes alongside memory and size wins. -See [Hermes 0.9.0 release issue](https://github.com/facebook/hermes/issues/586) for more details +See [Hermes 0.9.0 release issue](https://github.com/meta/hermes/issues/586) for more details ### Nightly and “Commitly” Releases @@ -86,7 +86,7 @@ $ npm add ### Acknowledgements -This release includes **621 commits** with **92 contributors**! Thank you to all our contributors new and old! You can find the [full changelog here](https://github.com/facebook/react-native/blob/main/CHANGELOG.md#v0660). +This release includes **621 commits** with **92 contributors**! Thank you to all our contributors new and old! You can find the [full changelog here](https://github.com/react/react-native/blob/main/CHANGELOG.md#v0660). As well, thank you to the following contributors for their support in preparing, testing and unblocking this release! diff --git a/website/blog/2021-10-26-toward-hermes-being-the-default.mdx b/website/blog/2021-10-26-toward-hermes-being-the-default.mdx index 72c3ab9ed6d..eae0e2d144f 100644 --- a/website/blog/2021-10-26-toward-hermes-being-the-default.mdx +++ b/website/blog/2021-10-26-toward-hermes-being-the-default.mdx @@ -24,7 +24,7 @@ In order to mitigate this, we implemented a brand new _mostly concurrent_ GC nam ### Striking on Performance Pain Points -Startup time of applications is critical to the success of many apps, and we are continuously pushing the boundary for React Native. For any new JavaScript feature we implement in Hermes, we carefully monitor their impact on production performance and ensure that they don’t regress metrics. At Facebook, we are currently experimenting with a [dedicated Babel transform profile for Hermes in Metro](https://github.com/facebook/react-native/blob/main/packages/react-native-babel-preset/src/configs/main.js#L41) to replace a dozen Babel transforms with Hermes’s native ESNext implementations. We were able to observe **18-25% TTI improvements** on many surfaces and **overall bytecode size decreases** and we expect to see similar results for OSS. +Startup time of applications is critical to the success of many apps, and we are continuously pushing the boundary for React Native. For any new JavaScript feature we implement in Hermes, we carefully monitor their impact on production performance and ensure that they don’t regress metrics. At Facebook, we are currently experimenting with a [dedicated Babel transform profile for Hermes in Metro](https://github.com/react/react-native/blob/main/packages/react-native-babel-preset/src/configs/main.js#L41) to replace a dozen Babel transforms with Hermes’s native ESNext implementations. We were able to observe **18-25% TTI improvements** on many surfaces and **overall bytecode size decreases** and we expect to see similar results for OSS. In addition to startup performance, we identified memory footprint as an opportunity for improvement in React Native apps especially for [virtual reality.](https://reactnative.dev/blog/2021/08/26/many-platform-vision#expanding-to-new-platforms) Thanks to the low-level control we have as a JavaScript engine, we were able to deliver rounds of memory optimizations by squeezing bits and bytes out: @@ -38,9 +38,9 @@ One of our key decisions with Hermes was to not implement a [just-in-time (JIT) At Facebook, we prefer to colocate projects within a large [monorepo](https://en.wikipedia.org/wiki/Monorepo). By having the engine (Hermes) and the host (React Native) closely iterating together, we opened a lot of room for vertical integrations. To name a few: - Hermes supports [on-device JavaScript debugging with the Chrome debugger](https://reactnative.dev/docs/hermes#debugging-js-on-hermes-using-google-chromes-devtools) by speaking the [Chrome DevTools Protocol](https://chromedevtools.github.io/devtools-protocol/). It’s better than the legacy “[Remote JS Debugging](https://reactnative.dev/docs/debugging#chrome-developer-tools)” (which uses an in-app proxy to run JS in desktop Chrome) because it supports debugging synchronous native calls and guaranteed a consistent runtime environment. Together with React DevTools, Metro, Inspector, and so on, Hermes debugger is now part of [Flipper](https://reactnative.dev/blog/2020/03/26/version-0.62) to provide a one-stop developer experience. -- Objects allocated during the initialization path of React Native apps are often long-lived and don’t follow the _generational_ _hypothesis_ leveraged by generational GCs. Therefore, we [configured Hermes in React Native](https://github.com/facebook/react-native/blob/main/ReactAndroid/src/main/java/com/facebook/hermes/reactexecutor/OnLoad.cpp#L37-L42) to allocate the first 32MiB directly into old generations (known as _pre-tenuring_) to avoid triggering GC pauses and delaying TTI. +- Objects allocated during the initialization path of React Native apps are often long-lived and don’t follow the _generational_ _hypothesis_ leveraged by generational GCs. Therefore, we [configured Hermes in React Native](https://github.com/react/react-native/blob/main/ReactAndroid/src/main/java/com/facebook/hermes/reactexecutor/OnLoad.cpp#L37-L42) to allocate the first 32MiB directly into old generations (known as _pre-tenuring_) to avoid triggering GC pauses and delaying TTI. - The new React Native architecture is heavily based on [JSI (or JavaScript Interface)](https://github.com/react-native-community/discussions-and-proposals/issues/91), a lightweight, general-purposed API for embedding a JavaScript engine into a C++ program. By having the team maintaining the JS engine also maintains the JSI API implementation, we are confident in providing the best possible integration that is reliable, performant and battle-tested at the Facebook’s scale. -- Getting JavaScript concurrency primitives (e.g. [promises](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Using_promises)) and platform concurrency primitives (e.g. [microtasks](https://developer.mozilla.org/en-US/docs/Web/API/HTML_DOM_API/Microtask_guide)) both semantically correct and performant are critical to React concurrent rendering and the future of React Native apps. Historically, promises in React Native were [polyfilled](https://github.com/facebook/react-native/blob/main/Libraries/Core/polyfillPromise.js#L37) using non-standardized [`setImmediate`](https://developer.mozilla.org/en-US/docs/Web/API/Window/setImmediate) APIs. We are working on making native promises and microtasks from JS engines available via JSI, and introducing [`queueMicrotask`](https://developer.mozilla.org/en-US/docs/Web/API/queueMicrotask), a recent addition to the web standard, to the platform, to better support modern asynchronous JavaScript code. +- Getting JavaScript concurrency primitives (e.g. [promises](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Using_promises)) and platform concurrency primitives (e.g. [microtasks](https://developer.mozilla.org/en-US/docs/Web/API/HTML_DOM_API/Microtask_guide)) both semantically correct and performant are critical to React concurrent rendering and the future of React Native apps. Historically, promises in React Native were [polyfilled](https://github.com/react/react-native/blob/main/Libraries/Core/polyfillPromise.js#L37) using non-standardized [`setImmediate`](https://developer.mozilla.org/en-US/docs/Web/API/Window/setImmediate) APIs. We are working on making native promises and microtasks from JS engines available via JSI, and introducing [`queueMicrotask`](https://developer.mozilla.org/en-US/docs/Web/API/queueMicrotask), a recent addition to the web standard, to the platform, to better support modern asynchronous JavaScript code. ## Bringing Along the Whole Community @@ -62,20 +62,20 @@ We acknowledge there are still blockers that prevent parts of the community from {/* alex ignore just fellowship */} -- [`Proxy` and `Reflect`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Meta_programming) were originally excluded from Hermes because Facebook does not use them. We were also concerned that adding Proxy would hurt property lookup performance even when Proxy is not used. But Proxy quickly become [the most requested feature](https://github.com/facebook/hermes/issues/33) of Hermes due to popular libraries such as [MobX](https://mobx.js.org/README.html) and [Immer](https://immerjs.github.io/immer/). We carefully evaluated and decided to build it just for the community, and we managed to implement it with very low cost. Since this is a feature we don’t use, we relied on our community to prove its stability. We started by testing Proxy behind a flag and created opt-in npm packages for [release v0.4](https://github.com/facebook/hermes/issues/33#issuecomment-668374607) and [v0.5](https://github.com/facebook/hermes/issues/33#issuecomment-668374607), and it’s [enabled by default starting from v0.7](https://github.com/facebook/hermes/releases/tag/v0.7.0). -- [ECMAScript Internationalization API Specification (ECMA-402, or `Intl`)](https://hermesengine.dev/docs/intl) was [the second most requested feature](https://github.com/facebook/hermes/issues/23). `Intl` is a huge set of APIs and often requires the implementation to include **6MB worth** of [Unicode CLDR](https://cldr.unicode.org/index) data. This is why polyfills like [FormatJS (a.k.a. `react-intl`)](https://github.com/formatjs/formatjs) and JS engines like the [international variant build of community JSC](https://github.com/react-native-community/jsc-android-buildscripts#international-variant) are so huge. To avoid substantially increasing the binary size of Hermes, we decided to implement it with another strategy by consuming and mapping the ICU facilities provided by the libraries included in the operating systems, at the cost of some (often minor) variance in behaviors across platforms. - - Microsoft collaborated to build support on Android. It covers almost everything from ECMA-402 up to ES2020, **with only a size impact as small as 3% (57-62K per ABI)**. We ran [a poll on Twitter](https://twitter.com/tmikov/status/1336442786694893568) and the results were strongly in favor of including `Intl` by default, so that’s what we did and it’s available starting from [release v0.8](https://github.com/facebook/hermes/releases/tag/v0.8.0). +- [`Proxy` and `Reflect`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Meta_programming) were originally excluded from Hermes because Facebook does not use them. We were also concerned that adding Proxy would hurt property lookup performance even when Proxy is not used. But Proxy quickly become [the most requested feature](https://github.com/meta/hermes/issues/33) of Hermes due to popular libraries such as [MobX](https://mobx.js.org/README.html) and [Immer](https://immerjs.github.io/immer/). We carefully evaluated and decided to build it just for the community, and we managed to implement it with very low cost. Since this is a feature we don’t use, we relied on our community to prove its stability. We started by testing Proxy behind a flag and created opt-in npm packages for [release v0.4](https://github.com/meta/hermes/issues/33#issuecomment-668374607) and [v0.5](https://github.com/meta/hermes/issues/33#issuecomment-668374607), and it’s [enabled by default starting from v0.7](https://github.com/meta/hermes/releases/tag/v0.7.0). +- [ECMAScript Internationalization API Specification (ECMA-402, or `Intl`)](https://hermesengine.dev/docs/intl) was [the second most requested feature](https://github.com/meta/hermes/issues/23). `Intl` is a huge set of APIs and often requires the implementation to include **6MB worth** of [Unicode CLDR](https://cldr.unicode.org/index) data. This is why polyfills like [FormatJS (a.k.a. `react-intl`)](https://github.com/formatjs/formatjs) and JS engines like the [international variant build of community JSC](https://github.com/react-native-community/jsc-android-buildscripts#international-variant) are so huge. To avoid substantially increasing the binary size of Hermes, we decided to implement it with another strategy by consuming and mapping the ICU facilities provided by the libraries included in the operating systems, at the cost of some (often minor) variance in behaviors across platforms. + - Microsoft collaborated to build support on Android. It covers almost everything from ECMA-402 up to ES2020, **with only a size impact as small as 3% (57-62K per ABI)**. We ran [a poll on Twitter](https://twitter.com/tmikov/status/1336442786694893568) and the results were strongly in favor of including `Intl` by default, so that’s what we did and it’s available starting from [release v0.8](https://github.com/meta/hermes/releases/tag/v0.8.0). - Facebook has sponsored [Major League Hacking](https://mlh.io/) to launch a [remote open source fellowship program](https://news.mlh.io/welcoming-facebook-back-as-a-sponsor-of-the-2020-2021-mlh-fellowship-08-12-2020). Last year, we launched the [Hermes sampling profiler](https://reactnative-archive-august-2023.netlify.app/docs/0.66/profile-hermes). This year, our fellows will be working with members from Hermes, React Native, and Callstack, to add support for Hermes `Intl` on iOS. Stayed tuned! - We appreciate that people have been working with us to discover issues affecting the community. - - People have helped us identify critical spec divergence such as [stability of `Array.prototype.sort`](https://github.com/facebook/hermes/issues/212) amended in [ES2019](https://github.com/tc39/ecma262/pull/1340). This has been fixed and will be available in the next release. - - People found out that our default heap size limit was too small and caused [unnecessary GC pressure](https://github.com/facebook/hermes/issues/295) and [OOM crashes](https://github.com/facebook/hermes/issues/511) for many users who are not familiar with customizing Hermes’s GC configs. So we increased it from 512MiB to 3GiB to be more than sufficient for most users by default. - - People also reported that our specialized `Function.prototype.toString` implementation [caused performance to drop in libraries doing improper feature detection](https://github.com/facebook/hermes/issues/471#issuecomment-820123463) and [blocked users from doing source code injecting](https://github.com/facebook/hermes/issues/114#issuecomment-887106990). This helped us strengthen our stance that Hermes, whenever possible, should not get in the way of developers and to respect de-facto practices. + - People have helped us identify critical spec divergence such as [stability of `Array.prototype.sort`](https://github.com/meta/hermes/issues/212) amended in [ES2019](https://github.com/tc39/ecma262/pull/1340). This has been fixed and will be available in the next release. + - People found out that our default heap size limit was too small and caused [unnecessary GC pressure](https://github.com/meta/hermes/issues/295) and [OOM crashes](https://github.com/meta/hermes/issues/511) for many users who are not familiar with customizing Hermes’s GC configs. So we increased it from 512MiB to 3GiB to be more than sufficient for most users by default. + - People also reported that our specialized `Function.prototype.toString` implementation [caused performance to drop in libraries doing improper feature detection](https://github.com/meta/hermes/issues/471#issuecomment-820123463) and [blocked users from doing source code injecting](https://github.com/meta/hermes/issues/114#issuecomment-887106990). This helped us strengthen our stance that Hermes, whenever possible, should not get in the way of developers and to respect de-facto practices. ## Summary In summary, our vision is to make Hermes ready to be the default JavaScript engine across all React Native platforms. We’ve already started working towards it, and we want to hear from all of you about this direction. -It’s extremely important for us to prepare the ecosystem for a smooth adoption. We encourage you to try out Hermes, and file issues on our [GitHub repository](https://github.com/facebook/hermes) for any feedbacks, questions, feature requests and incompatibilities. +It’s extremely important for us to prepare the ecosystem for a smooth adoption. We encourage you to try out Hermes, and file issues on our [GitHub repository](https://github.com/meta/hermes) for any feedbacks, questions, feature requests and incompatibilities. ## Thanks diff --git a/website/blog/2022-01-19-version-067.mdx b/website/blog/2022-01-19-version-067.mdx index 2aabf359dc1..ccf96d23364 100644 --- a/website/blog/2022-01-19-version-067.mdx +++ b/website/blog/2022-01-19-version-067.mdx @@ -20,21 +20,21 @@ As mentioned in Meta's [H2 2021 plans](https://reactnative.dev/blog/2021/08/19/h Here are some notable changes coming in 0.67.0: -- Lean-core removals: [DatePickerAndroid](https://github.com/facebook/react-native/commit/7a770526c626e6659a12939f8c61057a688aa623#diff-e727e4bdf3657fd1d798edcd6b099d6e092f8573cba266154583a746bba0f346) -- Bump Gradle version to 7.2, Bump Kotlin version to 1.5.31 [Bump Kotlin and Gradle versions (#32319)](https://github.com/facebook/react-native/commit/9ae3367431428748f5486c782199beb4f9c6b477) +- Lean-core removals: [DatePickerAndroid](https://github.com/react/react-native/commit/7a770526c626e6659a12939f8c61057a688aa623#diff-e727e4bdf3657fd1d798edcd6b099d6e092f8573cba266154583a746bba0f346) +- Bump Gradle version to 7.2, Bump Kotlin version to 1.5.31 [Bump Kotlin and Gradle versions (#32319)](https://github.com/react/react-native/commit/9ae3367431428748f5486c782199beb4f9c6b477) - A notable callout: 0.67 continues to depend on Hermes 0.9.0, unchanged from 0.66 -You can find the [full changelog here](https://github.com/facebook/react-native/blob/main/CHANGELOG.md#v0670). +You can find the [full changelog here](https://github.com/react/react-native/blob/main/CHANGELOG.md#v0670). You can participate in the conversation on the status of this release at [this discussion](https://github.com/reactwg/react-native-releases/discussions/10) - and, as always, to help you upgrade to this version, you can use the [upgrade helper](https://react-native-community.github.io/upgrade-helper/) ⚛️ ### Acknowledgements -This release includes [379 commits with 74 contributors](https://github.com/facebook/react-native/compare/0.66-stable...0.67-stable)! Thank you, to all our contributors (old and new)! You can find the [full changelog here](https://github.com/facebook/react-native/blob/main/CHANGELOG.md#v0670). +This release includes [379 commits with 74 contributors](https://github.com/react/react-native/compare/0.66-stable...0.67-stable)! Thank you, to all our contributors (old and new)! You can find the [full changelog here](https://github.com/react/react-native/blob/main/CHANGELOG.md#v0670). We wanted to also thank the release testers who helped us make sure that 0.67.0 could reach your codebases without any massive regression. Specifically, we wanted to thank: -- Marc Rousavy ([@mrousavy](https://github.com/mrousavy)) from [Margelo](https://margelo.com/), that surfaced a [regression for Hermes 0.10](https://github.com/facebook/hermes/issues/649) (that would have never been caught on CI testing) which will be fixed in Hermes 0.11 in the 0.68 release of React Native. +- Marc Rousavy ([@mrousavy](https://github.com/mrousavy)) from [Margelo](https://margelo.com/), that surfaced a [regression for Hermes 0.10](https://github.com/meta/hermes/issues/649) (that would have never been caught on CI testing) which will be fixed in Hermes 0.11 in the 0.68 release of React Native. - The Reanimated team for quickly preparing a [0.67 compatible version](https://github.com/software-mansion/react-native-reanimated/releases/tag/2.2.4) of their lib early in the 0.67 RC phase. - Elias Nahum ([@enahum](https://github.com/enahum)) from [Mattermost](https://mattermost.com/) - Mike Hardy ([@mikeHardy](https://github.com/mikeHardy)) working with [Invertase](https://invertase.io/) @@ -49,7 +49,7 @@ Over the last few months we tackled some issues that delay releases. ### Coordination and Knowledge Sharing -We invested in our documentation of releases to cover how to run a release, FAQs, coordination of release issues, etc – all of which can be found in this section of the [react-native wiki](https://github.com/facebook/react-native/wiki/Releases). +We invested in our documentation of releases to cover how to run a release, FAQs, coordination of release issues, etc – all of which can be found in this section of the [react-native wiki](https://github.com/react/react-native/wiki/Releases). By documentation, releases are no longer blocked on any individual or tribal knowledge. In addition to documentation, we have also revamped the coordination of releases and have moved discussion of pre-release status and patches to a dedicated discussion group: [react-wg/react-native-releases](https://github.com/reactwg/react-native-releases/discussions). @@ -58,20 +58,20 @@ In addition to documentation, we have also revamped the coordination of releases Following more documentation, release work can scale such that no one person is critical to running a release. -A React Native release is susceptible to a broad spectrum of potential points of failure and has a lot of dependencies and follow-up. Considering that usage of React Native varies across the community, it’s essential to have stakeholders involved in releases. We have defined a set of [roles and responsibilities in supporting a release](https://github.com/facebook/react-native/wiki/Release-Roles-and-Responsibilities). +A React Native release is susceptible to a broad spectrum of potential points of failure and has a lot of dependencies and follow-up. Considering that usage of React Native varies across the community, it’s essential to have stakeholders involved in releases. We have defined a set of [roles and responsibilities in supporting a release](https://github.com/react/react-native/wiki/Release-Roles-and-Responsibilities). ### Release candidate signal Another issue with releases is getting a good signal that a release will not suffer from build regressions. This can be addressed with growing investment in testing build variants, etc. but signal from adoption will continue to be useful for some time. -In the 0.67 release we piloted a “Release Tester” program where React Native developers working on Open Source apps [commit to testing release candidates](https://github.com/facebook/react-native/wiki/Release-Roles-and-Responsibilities#release-tester-responsibilities) on their apps. Prior, there was no formal expectation that the community will test out release candidates to raise any potential issues. This program helps us get faster signal to ensure a level of stability of the release. +In the 0.67 release we piloted a “Release Tester” program where React Native developers working on Open Source apps [commit to testing release candidates](https://github.com/react/react-native/wiki/Release-Roles-and-Responsibilities#release-tester-responsibilities) on their apps. Prior, there was no formal expectation that the community will test out release candidates to raise any potential issues. This program helps us get faster signal to ensure a level of stability of the release. Open source React Native apps are particularly useful due to availability of source code to help debug any regressions. With this program in place, a release tester surfaced a regression in 0.67 and we were able to resolve it without thrashing the larger community with a faulty release. ## Interested in helping React Native stabilise new releases? -A great way to help us catch regressions is to integrate the React Native pre-release version [`react-native@next`](https://www.npmjs.com/package/react-native) or [`react-native@nightly`](https://www.npmjs.com/package/react-native) to your CI. For any regressions, you can [file a release issue](https://github.com/facebook/react-native/issues/new?assignees=&labels=Needs%3A+Triage+%3Amag%3A%2CType%3A+Upgrade+Issue&template=upgrade-regression-form.yml) and notify the appropriate discussion. +A great way to help us catch regressions is to integrate the React Native pre-release version [`react-native@next`](https://www.npmjs.com/package/react-native) or [`react-native@nightly`](https://www.npmjs.com/package/react-native) to your CI. For any regressions, you can [file a release issue](https://github.com/react/react-native/issues/new?assignees=&labels=Needs%3A+Triage+%3Amag%3A%2CType%3A+Upgrade+Issue&template=upgrade-regression-form.yml) and notify the appropriate discussion. -If your app or company is interested in joining the “Release Tester” program, head to the dedicated section at the bottom of the [Release Roles and Responsibilities wiki](https://github.com/facebook/react-native/wiki/Release-Roles-and-Responsibilities#release-tester-responsibilities) to learn more. +If your app or company is interested in joining the “Release Tester” program, head to the dedicated section at the bottom of the [Release Roles and Responsibilities wiki](https://github.com/react/react-native/wiki/Release-Roles-and-Responsibilities#release-tester-responsibilities) to learn more. Lastly any help on trying our release candidates or helping unblock release issues is much appreciated! diff --git a/website/blog/2022-01-21-react-native-h2-2021-recap.mdx b/website/blog/2022-01-21-react-native-h2-2021-recap.mdx index 807f2448cfe..1793cd105d8 100644 --- a/website/blog/2022-01-21-react-native-h2-2021-recap.mdx +++ b/website/blog/2022-01-21-react-native-h2-2021-recap.mdx @@ -17,28 +17,28 @@ In H2 2021, we invested in tackling some of the _OSS debt_ that our repository b Although this is not a complete list, we would like to highlight some **impactful** PRs we received from our contributors: - **Accessibility** - - [#31630](https://github.com/facebook/react-native/pull/31630) `Added Support for Entrance/exit from collection by Flatlist` by [@anaskhraza](https://github.com/anaskhraza) + - [#31630](https://github.com/react/react-native/pull/31630) `Added Support for Entrance/exit from collection by Flatlist` by [@anaskhraza](https://github.com/anaskhraza) - **Crash** - - [#29452](https://github.com/facebook/react-native/pull/29452) `Fix - TextInput Drawable to avoid Null Pointer Exception RuntimeError` by [@fabriziobertoglio1987](https://github.com/fabriziobertoglio1987) + - [#29452](https://github.com/react/react-native/pull/29452) `Fix - TextInput Drawable to avoid Null Pointer Exception RuntimeError` by [@fabriziobertoglio1987](https://github.com/fabriziobertoglio1987) - **Display** - - [#31777](https://github.com/facebook/react-native/pull/31777) `fix: TouchableNativeFeedback ripple starts on previous touch location` by [@intergalacticspacehighway](https://github.com/intergalacticspacehighway) - - [#31789](https://github.com/facebook/react-native/pull/31789) `Fix support for blobs larger than 64 KB on Android` by [@tomekzaw](https://github.com/tomekzaw) - - [#31007](https://github.com/facebook/react-native/pull/31007) `Fix selectionColor doesn't style Android TextInput selection handles` by [@fabriziobertoglio1987](https://github.com/fabriziobertoglio1987) - - [#32398](https://github.com/facebook/react-native/pull/32398) `Fix Android border positioning regression` by [@oblador](https://github.com/oblador) - - [#29099](https://github.com/facebook/react-native/pull/29099) `[Android] Allows to set individual (left,top,right,bottom) dotted/dashed` by [@fabriziobertoglio1987](https://github.com/fabriziobertoglio1987) - - [#29117](https://github.com/facebook/react-native/pull/29117) `[Android] Fix font weight numeric values` by [@fabriziobertoglio1987](https://github.com/fabriziobertoglio1987) + - [#31777](https://github.com/react/react-native/pull/31777) `fix: TouchableNativeFeedback ripple starts on previous touch location` by [@intergalacticspacehighway](https://github.com/intergalacticspacehighway) + - [#31789](https://github.com/react/react-native/pull/31789) `Fix support for blobs larger than 64 KB on Android` by [@tomekzaw](https://github.com/tomekzaw) + - [#31007](https://github.com/react/react-native/pull/31007) `Fix selectionColor doesn't style Android TextInput selection handles` by [@fabriziobertoglio1987](https://github.com/fabriziobertoglio1987) + - [#32398](https://github.com/react/react-native/pull/32398) `Fix Android border positioning regression` by [@oblador](https://github.com/oblador) + - [#29099](https://github.com/react/react-native/pull/29099) `[Android] Allows to set individual (left,top,right,bottom) dotted/dashed` by [@fabriziobertoglio1987](https://github.com/fabriziobertoglio1987) + - [#29117](https://github.com/react/react-native/pull/29117) `[Android] Fix font weight numeric values` by [@fabriziobertoglio1987](https://github.com/fabriziobertoglio1987) - **Interaction** - - [#28995](https://github.com/facebook/react-native/pull/28995) `[Android] Fix TextInput Cursor jumping to the right when placeholder null` by [@fabriziobertoglio1987](https://github.com/fabriziobertoglio1987) - - [#28952](https://github.com/facebook/react-native/pull/28952) `[Android] Fix non selectable Text in FlatList` by [@fabriziobertoglio1987](https://github.com/fabriziobertoglio1987) - - [#29046](https://github.com/facebook/react-native/pull/29046) `[Android] onKeyPress event not fired with numeric keys` by [@fabriziobertoglio1987](https://github.com/fabriziobertoglio1987) - - [#31500](https://github.com/facebook/react-native/pull/31500) `fix#29319 - ios dismiss modal` by [@intergalacticspacehighway](https://github.com/intergalacticspacehighway) - - [#32179](https://github.com/facebook/react-native/pull/32179) `Fix: multiline textinput start "jerking" when trying to move cursor.` by [@xiankuncheng](https://github.com/xiankuncheng) - - [#29039](https://github.com/facebook/react-native/pull/29039) `Fix to make taps on views outside parent bounds work on Android` by [@hsource](https://github.com/hsource) + - [#28995](https://github.com/react/react-native/pull/28995) `[Android] Fix TextInput Cursor jumping to the right when placeholder null` by [@fabriziobertoglio1987](https://github.com/fabriziobertoglio1987) + - [#28952](https://github.com/react/react-native/pull/28952) `[Android] Fix non selectable Text in FlatList` by [@fabriziobertoglio1987](https://github.com/fabriziobertoglio1987) + - [#29046](https://github.com/react/react-native/pull/29046) `[Android] onKeyPress event not fired with numeric keys` by [@fabriziobertoglio1987](https://github.com/fabriziobertoglio1987) + - [#31500](https://github.com/react/react-native/pull/31500) `fix#29319 - ios dismiss modal` by [@intergalacticspacehighway](https://github.com/intergalacticspacehighway) + - [#32179](https://github.com/react/react-native/pull/32179) `Fix: multiline textinput start "jerking" when trying to move cursor.` by [@xiankuncheng](https://github.com/xiankuncheng) + - [#29039](https://github.com/react/react-native/pull/29039) `Fix to make taps on views outside parent bounds work on Android` by [@hsource](https://github.com/hsource) - **Performance** - - [#31764](https://github.com/facebook/react-native/pull/31764) `Optimize font handling on iOS` by [@Adlai-Holler](https://github.com/Adlai-Holler) - - [#32536](https://github.com/facebook/react-native/pull/32536) `Don't reconstruct app component on split-screen` by [@Somena1](https://github.com/Somena1) + - [#31764](https://github.com/react/react-native/pull/31764) `Optimize font handling on iOS` by [@Adlai-Holler](https://github.com/Adlai-Holler) + - [#32536](https://github.com/react/react-native/pull/32536) `Don't reconstruct app component on split-screen` by [@Somena1](https://github.com/Somena1) - **Testing** - - [#31401](https://github.com/facebook/react-native/pull/31401) `Add unit tests for VirtualizedList render quirks` by [@NickGerleman](https://github.com/NickGerleman) + - [#31401](https://github.com/react/react-native/pull/31401) `Add unit tests for VirtualizedList render quirks` by [@NickGerleman](https://github.com/NickGerleman) Some of those PRs addressed issues that were impacting both Meta and the overall OSS community, given the number of reactions on the corresponding issue they closed. @@ -66,13 +66,13 @@ There is a wealth of knowledge that our community brings into React Native, and We’ve been working hard to deliver the infrastructure needed to rollout the New Architecture to apps and libraries. We involved some of our partners and core contributors/library maintainers to refine our support for the new architecture to get early stage feedback. -We are now preparing to release a new guide on our website: [Getting Started with the New Architecture](https://github.com/facebook/react-native-website/pull/2879). That will be the entry point to a collection of material that we’re going to release in 2022 and will help you migrate/start your project with the new architecture. +We are now preparing to release a new guide on our website: [Getting Started with the New Architecture](https://github.com/react/react-native-website/pull/2879). That will be the entry point to a collection of material that we’re going to release in 2022 and will help you migrate/start your project with the new architecture. -Moreover, we would like to stress the [importance of **giving feedback**](https://github.com/facebook/react-native-website/pull/2879) on the New Architecture material. We’re still in the process of finalizing the last details and your input will help everyone adopt the new architecture more seamlessly. +Moreover, we would like to stress the [importance of **giving feedback**](https://github.com/react/react-native-website/pull/2879) on the New Architecture material. We’re still in the process of finalizing the last details and your input will help everyone adopt the new architecture more seamlessly. -**Releases** play a critical role in the New Architecture rollout. Our goal last half was to ensure any release blocking issues did not stagnate. We approached the problem by [clarifying and improving process and responsibilities](https://github.com/facebook/react-native/wiki/Releases) for better accountability. Our release coordination now occurs in a [dedicated discussions repository](https://github.com/reactwg/react-native-releases/discussions) with [clearer release issue reporting](https://github.com/facebook/react-native/issues/new?assignees=&labels=Needs%3A+Triage+%3Amag%3A%2CType%3A+Upgrade+Issue&template=upgrade-regression-form.yml). +**Releases** play a critical role in the New Architecture rollout. Our goal last half was to ensure any release blocking issues did not stagnate. We approached the problem by [clarifying and improving process and responsibilities](https://github.com/react/react-native/wiki/Releases) for better accountability. Our release coordination now occurs in a [dedicated discussions repository](https://github.com/reactwg/react-native-releases/discussions) with [clearer release issue reporting](https://github.com/react/react-native/issues/new?assignees=&labels=Needs%3A+Triage+%3Amag%3A%2CType%3A+Upgrade+Issue&template=upgrade-regression-form.yml). -In H1 2022, we will continue to iterate on release responsibilities to support new architecture rollout. If you’d like to help out testing release candidates or [working on improvements](https://github.com/facebook/react-native/projects/18), feel free to [join the discussion](https://github.com/reactwg/react-native-releases/discussions/categories/improvements)! +In H1 2022, we will continue to iterate on release responsibilities to support new architecture rollout. If you’d like to help out testing release candidates or [working on improvements](https://github.com/react/react-native/projects/18), feel free to [join the discussion](https://github.com/reactwg/react-native-releases/discussions/categories/improvements)! ## To Mobile and beyond diff --git a/website/blog/2022-03-30-version-068.mdx b/website/blog/2022-03-30-version-068.mdx index a26bf47c37d..10c53b0d3ee 100644 --- a/website/blog/2022-03-30-version-068.mdx +++ b/website/blog/2022-03-30-version-068.mdx @@ -39,18 +39,18 @@ Tooling has also been updated - here are the main bumps: - Gradle to 7.3 - Android compile and target SDK to 31 -Also, thanks to [this commit](https://github.com/facebook/react-native/commit/bd7caa64f5d6ee5ea9484e92c3629c9ce711f73c) by [Nicola Corti](https://github.com/cortinico) the Android Gradle Plugin will download the default version of NDK by itself, so you don’t have to specify and install it separately anymore. +Also, thanks to [this commit](https://github.com/react/react-native/commit/bd7caa64f5d6ee5ea9484e92c3629c9ce711f73c) by [Nicola Corti](https://github.com/cortinico) the Android Gradle Plugin will download the default version of NDK by itself, so you don’t have to specify and install it separately anymore. ### Other improvements There are a lot of other changes and fixes landed in this release, but here’s a small selection that you might be interested in: -- [Gijs Weterings](https://github.com/GijsWeterings) [fixed Forwarding testID to RCTModalHostView](https://github.com/facebook/react-native/commit/5050e7eaa17cb417baf7c20eb5c4406cce6790a5) for easier E2E targeting of Modals. -- [Liam Jones](https://github.com/liamjones) [fixed an issue](https://github.com/facebook/react-native/commit/9d2df5b8ae9) where calling `console.error` caused the RedBox to appear alongside the LogBox. -- [Sam Kline](https://github.com/samkline) [fixed the empty blank screen](https://github.com/facebook/react-native/commit/c8d823b9bd9619dfa1f5851af003cc24ba2e8830) after a BundleDownloader failure in dev mode on Android. -- [Jeffrey Hyer](https://github.com/JeffreyHyer) [fixed an issue](https://github.com/facebook/react-native/commit/9c5e177a79c) where the KeyboardAvoidingView didn't work as expected with the `onLayout` prop. +- [Gijs Weterings](https://github.com/GijsWeterings) [fixed Forwarding testID to RCTModalHostView](https://github.com/react/react-native/commit/5050e7eaa17cb417baf7c20eb5c4406cce6790a5) for easier E2E targeting of Modals. +- [Liam Jones](https://github.com/liamjones) [fixed an issue](https://github.com/react/react-native/commit/9d2df5b8ae9) where calling `console.error` caused the RedBox to appear alongside the LogBox. +- [Sam Kline](https://github.com/samkline) [fixed the empty blank screen](https://github.com/react/react-native/commit/c8d823b9bd9619dfa1f5851af003cc24ba2e8830) after a BundleDownloader failure in dev mode on Android. +- [Jeffrey Hyer](https://github.com/JeffreyHyer) [fixed an issue](https://github.com/react/react-native/commit/9c5e177a79c) where the KeyboardAvoidingView didn't work as expected with the `onLayout` prop. -If you are interested in the full list of changes, you can read it in the changelog [at the link here](https://github.com/facebook/react-native/blob/main/CHANGELOG.md#0680). +If you are interested in the full list of changes, you can read it in the changelog [at the link here](https://github.com/react/react-native/blob/main/CHANGELOG.md#0680). ### Acknowledgements diff --git a/website/blog/2022-05-19-GAAD-2022-update.mdx b/website/blog/2022-05-19-GAAD-2022-update.mdx index 169e56ff530..a187f7d7e41 100644 --- a/website/blog/2022-05-19-GAAD-2022-update.mdx +++ b/website/blog/2022-05-19-GAAD-2022-update.mdx @@ -17,21 +17,21 @@ May 19th, 2022 marks the 11th annual celebration of Global Accessibility Awarene The process initially began with a thorough review and gap analysis of the framework focused on React Native utilized the iOS and Android APIs to support accessibility features. Dozens of issues have since been fixed or closed out, making good on the pledge to make React Native accessible and advancing the accessibility of the framework ever forward. -We didn’t stop there, and in early 2022, we reviewed and prioritized the remaining issues from this gap analysis on the [Improved React Native Accessibility Board](https://github.com/facebook/react-native/projects/15) based on their impact on developers and end users. +We didn’t stop there, and in early 2022, we reviewed and prioritized the remaining issues from this gap analysis on the [Improved React Native Accessibility Board](https://github.com/react/react-native/projects/15) based on their impact on developers and end users. {/* truncate */} ## Fixes that have already landed in 2022 -- [Android: Disabled state not announced/disabled functionality not applied for some components](https://github.com/facebook/react-native/issues/30840) -- [Android: Position in collection not supported by some components](https://github.com/facebook/react-native/issues/30977) -- [Android: Make links independently focusable by Talkback](https://github.com/facebook/react-native/pull/31757) +- [Android: Disabled state not announced/disabled functionality not applied for some components](https://github.com/react/react-native/issues/30840) +- [Android: Position in collection not supported by some components](https://github.com/react/react-native/issues/30977) +- [Android: Make links independently focusable by Talkback](https://github.com/react/react-native/pull/31757) ## Fixes currently in progress -- [iOS/Android: Text input error announcement](https://github.com/facebook/react-native/issues/30848) -- [Android: Form field error state announcement](https://github.com/facebook/react-native/issues/30859) -- [Android: Role description is announced before the components text, rather than after](https://github.com/facebook/react-native/issues/31042) +- [iOS/Android: Text input error announcement](https://github.com/react/react-native/issues/30848) +- [Android: Form field error state announcement](https://github.com/react/react-native/issues/30859) +- [Android: Role description is announced before the components text, rather than after](https://github.com/react/react-native/issues/31042) ## Contributor highlight @@ -47,4 +47,4 @@ His pull requests have been very high quality, well documented, and include thor ## What’s next in 2022 -Our goal is to fix as many of the remaining accessibility issues as possible in 2022. We will also be reviewing the backlog of [React Native community reported issues](https://github.com/facebook/react-native/issues) to look for any new accessibility-related requests. +Our goal is to fix as many of the remaining accessibility issues as possible in 2022. We will also be reviewing the backlog of [React Native community reported issues](https://github.com/react/react-native/issues) to look for any new accessibility-related requests. diff --git a/website/blog/2022-06-16-resources-migrating-your-react-native-library-to-the-new-architecture.mdx b/website/blog/2022-06-16-resources-migrating-your-react-native-library-to-the-new-architecture.mdx index 05364af59a8..f935228ccb7 100644 --- a/website/blog/2022-06-16-resources-migrating-your-react-native-library-to-the-new-architecture.mdx +++ b/website/blog/2022-06-16-resources-migrating-your-react-native-library-to-the-new-architecture.mdx @@ -5,7 +5,7 @@ tags: [announcement] date: 2022-06-16 --- -**tl; dr**: We are working on improving the resources supporting the React Native New Architecture. We have already released a repository to help migrate your app ([RNNewArchitectureApp](https://github.com/react-native-community/RNNewArchitectureApp)) and one for your libraries ([RNNewArchitectureLibraries](https://github.com/react-native-community/RNNewArchitectureLibraries)). We are also revamping the [New Architecture guide](https://github.com/facebook/react-native-website/pull/3037) on the Website and we created a [GitHub Working Group](https://github.com/reactwg/react-native-new-architecture/discussions) to answer questions related to the New Architecture. +**tl; dr**: We are working on improving the resources supporting the React Native New Architecture. We have already released a repository to help migrate your app ([RNNewArchitectureApp](https://github.com/react-native-community/RNNewArchitectureApp)) and one for your libraries ([RNNewArchitectureLibraries](https://github.com/react-native-community/RNNewArchitectureLibraries)). We are also revamping the [New Architecture guide](https://github.com/react/react-native-website/pull/3037) on the Website and we created a [GitHub Working Group](https://github.com/reactwg/react-native-new-architecture/discussions) to answer questions related to the New Architecture. {/* truncate */} @@ -17,7 +17,7 @@ React Native users leverage vast number of open source libraries for building ap Here is what we’re working on to support library developers in migrating to the New Architecture: -- **Documentation:** We are expanding the [New Architecture guide](https://github.com/facebook/react-native-website/pull/3037) on the website to cover more concepts of the New Architecture and how to develop your components. +- **Documentation:** We are expanding the [New Architecture guide](https://github.com/react/react-native-website/pull/3037) on the website to cover more concepts of the New Architecture and how to develop your components. - **Example Migrations:** We’ve set up two repositories to demonstrate how to migrate a React Native app to the New Architecture ([RNNewArchitectureApp](https://github.com/react-native-community/RNNewArchitectureApp)) and how to create a **Fabric Component** and a **TurboModule** that work with both architectures ([RNNewArchitectureLibraries](https://github.com/react-native-community/RNNewArchitectureLibraries)). - **Support:** Earlier this year, we created a [GitHub Working Group](https://github.com/reactwg/react-native-new-architecture/discussions) dedicated to discussion and questions around the New Architecture. @@ -29,7 +29,7 @@ In the past 6 months, we’ve added a [guide on adopting the New Architecture](h Currently, the **New Architecture** guide covers how to [migrate your app](https://github.com/reactwg/react-native-new-architecture/blob/main/docs/enable-apps.md) and [your libraries](https://github.com/reactwg/react-native-new-architecture/blob/main/docs/enable-libraries-prerequisites.md) to support the New Architecture properly. -If you are interested in the evolution of this guide, or have feedback, you can follow along on [this](https://github.com/facebook/react-native-website/pull/3037) pull request. +If you are interested in the evolution of this guide, or have feedback, you can follow along on [this](https://github.com/react/react-native-website/pull/3037) pull request. ### Example Migrations diff --git a/website/blog/2022-06-21-version-069.mdx b/website/blog/2022-06-21-version-069.mdx index 74cb307336b..edf29024bca 100644 --- a/website/blog/2022-06-21-version-069.mdx +++ b/website/blog/2022-06-21-version-069.mdx @@ -42,12 +42,12 @@ We are continuing the roll-out of the New Architecture for both Android and iOS. As mentioned above, the most important improvements in this release are centered around React 18 support and bundled Hermes. However, there have been other notable changes, including: -- [Deprecating support](https://github.com/facebook/react-native/commit/982ca30de079d7e80bd0b50365d58b9048fb628f) for iOS/tvOS SDK 11.0, version 12.4+ is now required -- [Better support](https://github.com/facebook/react-native/commit/c5babd993a2bed2994ecc4710fa9e424b3e6cfc2) for M1 users developing for Android -- [Addition](https://github.com/facebook/react-native/commit/0480f56c5b5478b6ebe5ad88e347cad2810bfb17) of the new `.xcode.env` configuration file for more deterministically sourcing the node executable -- [React Native now uses](https://github.com/facebook/react-native/commit/50c8e973f067d4ef1fc3c2eddd360a0709828968) the latest status bar API from Android 11 -- [Support for C++17](https://github.com/facebook/react-native/commit/c2e4ae39b8a5c6534a3fa4dae4130166eda15169) -- [New](https://github.com/facebook/react-native/commit/1a1a304ed2023d60547aef65b1a7bf56467edf08) `hotkeysEnabled` option in the iOS debug menu +- [Deprecating support](https://github.com/react/react-native/commit/982ca30de079d7e80bd0b50365d58b9048fb628f) for iOS/tvOS SDK 11.0, version 12.4+ is now required +- [Better support](https://github.com/react/react-native/commit/c5babd993a2bed2994ecc4710fa9e424b3e6cfc2) for M1 users developing for Android +- [Addition](https://github.com/react/react-native/commit/0480f56c5b5478b6ebe5ad88e347cad2810bfb17) of the new `.xcode.env` configuration file for more deterministically sourcing the node executable +- [React Native now uses](https://github.com/react/react-native/commit/50c8e973f067d4ef1fc3c2eddd360a0709828968) the latest status bar API from Android 11 +- [Support for C++17](https://github.com/react/react-native/commit/c2e4ae39b8a5c6534a3fa4dae4130166eda15169) +- [New](https://github.com/react/react-native/commit/1a1a304ed2023d60547aef65b1a7bf56467edf08) `hotkeysEnabled` option in the iOS debug menu ### Breaking changes @@ -62,21 +62,21 @@ There have also been a few breaking changes: - `podspecPath` was removed from the iOS dependency config - Removed `--project-path` option from a `run-ios` - Changed iOS source directory detection from looking for an Xcode project to looking for a Podfile -- Support for `console.disableYellowBox` [has been dropped](https://github.com/facebook/react-native/commit/b633cc130533f0731b2577123282c4530e4f0abe) -- Already deprecated prop types have been removed ([cdfddb4dad](https://github.com/facebook/react-native/commit/cdfddb4dad7c69904850d7e5f089a32a1d3445d1), [3e229f27bc](https://github.com/facebook/react-native/commit/3e229f27bc9c7556876ff776abf70147289d544b), [10199b1581](https://github.com/facebook/react-native/commit/10199b158138b8645550b5579df87e654213fe42)) -- `removeListener`, deprecated since RN 0.65, [was removed](https://github.com/facebook/react-native/commit/8dfbed786b40082a7a222e00dc0a621c0695697d) from Appearance -- If you were using `SegmentedComponentIOS`, you will now need to replace it with the third-party library, for example [segmented-control](https://github.com/react-native-segmented-control/segmented-control) ([235f168574](https://github.com/facebook/react-native/commit/235f1685748442553e53f8ec6d904bc0314a8ae6)) +- Support for `console.disableYellowBox` [has been dropped](https://github.com/react/react-native/commit/b633cc130533f0731b2577123282c4530e4f0abe) +- Already deprecated prop types have been removed ([cdfddb4dad](https://github.com/react/react-native/commit/cdfddb4dad7c69904850d7e5f089a32a1d3445d1), [3e229f27bc](https://github.com/react/react-native/commit/3e229f27bc9c7556876ff776abf70147289d544b), [10199b1581](https://github.com/react/react-native/commit/10199b158138b8645550b5579df87e654213fe42)) +- `removeListener`, deprecated since RN 0.65, [was removed](https://github.com/react/react-native/commit/8dfbed786b40082a7a222e00dc0a621c0695697d) from Appearance +- If you were using `SegmentedComponentIOS`, you will now need to replace it with the third-party library, for example [segmented-control](https://github.com/react-native-segmented-control/segmented-control) ([235f168574](https://github.com/react/react-native/commit/235f1685748442553e53f8ec6d904bc0314a8ae6)) ### Upgrades And we upgraded some of our dependencies: -- Bump [of AGP to 7.1.1](https://github.com/facebook/react-native/commit/200488e87cf4bc355e03c78cd814b97b23452117) - we recommend sticking to this version in your apps -- `boost` for Android was updated to 1.76 [to align with iOS](https://github.com/facebook/react-native/commit/5cd6367f0b86543274a15bb6d0e53a8545fed845) -- Ruby [was bumped to 2.7.5](https://github.com/facebook/react-native/commit/2c87b7466e098c5cd230e02b279fc7bc7a357615) -- Direct metro dependencies [have been upgraded](https://github.com/facebook/react-native/commit/b74e964e705c40834acad7020562e870cdad9db1) to 0.70.1 +- Bump [of AGP to 7.1.1](https://github.com/react/react-native/commit/200488e87cf4bc355e03c78cd814b97b23452117) - we recommend sticking to this version in your apps +- `boost` for Android was updated to 1.76 [to align with iOS](https://github.com/react/react-native/commit/5cd6367f0b86543274a15bb6d0e53a8545fed845) +- Ruby [was bumped to 2.7.5](https://github.com/react/react-native/commit/2c87b7466e098c5cd230e02b279fc7bc7a357615) +- Direct metro dependencies [have been upgraded](https://github.com/react/react-native/commit/b74e964e705c40834acad7020562e870cdad9db1) to 0.70.1 -You can check out the full list of changes [in the changelog](https://github.com/facebook/react-native/blob/main/CHANGELOG.md#0690). +You can check out the full list of changes [in the changelog](https://github.com/react/react-native/blob/main/CHANGELOG.md#0690). ### Acknowledgements diff --git a/website/blog/2022-07-08-hermes-as-the-default.mdx b/website/blog/2022-07-08-hermes-as-the-default.mdx index ac799f95622..6dc6075bb48 100644 --- a/website/blog/2022-07-08-hermes-as-the-default.mdx +++ b/website/blog/2022-07-08-hermes-as-the-default.mdx @@ -75,11 +75,11 @@ All the iOS tests were performed on an iPhone 12 Pro. ## React Native/Hermes Integration -We addressed a long-standing problem that has caused compatibility issues and is a recurrent problem when releasing new React Native versions: React Native depended on Hermes via prebuilt binaries distributed through CocoaPods and npm, which makes it possible to have API or [ABI incompatibilities](https://github.com/react-native-community/discussions-and-proposals/issues/257). To solve this problem, starting on React Native 0.69, Hermes is built alongside every version of React Native. This ensures full compatibility with each version React Native. This also creates a much tighter integration. It unlocks a more rapid iteration time to develop features or deploy bug fixes, and will give us greater confidence in making sure big changes to Hermes are done correctly. There is more in-depth information on the new integration change [here](https://github.com/facebook/react-native-website/pull/3159/files). +We addressed a long-standing problem that has caused compatibility issues and is a recurrent problem when releasing new React Native versions: React Native depended on Hermes via prebuilt binaries distributed through CocoaPods and npm, which makes it possible to have API or [ABI incompatibilities](https://github.com/react-native-community/discussions-and-proposals/issues/257). To solve this problem, starting on React Native 0.69, Hermes is built alongside every version of React Native. This ensures full compatibility with each version React Native. This also creates a much tighter integration. It unlocks a more rapid iteration time to develop features or deploy bug fixes, and will give us greater confidence in making sure big changes to Hermes are done correctly. There is more in-depth information on the new integration change [here](https://github.com/react/react-native-website/pull/3159/files). ## iOS Intl -We finished the iOS counterpart implementation for [`Intl`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl), the ECMAScript Internationalization API that provides a broad range of language sensitive functionality. This was a long-standing [gap](https://github.com/facebook/hermes/issues/23) that prevented some developers from using Hermes. The Android implementation, done in partnership with Microsoft, was shipped in React Native 0.65. With React Native 0.70, developers will have native support on both platforms. +We finished the iOS counterpart implementation for [`Intl`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl), the ECMAScript Internationalization API that provides a broad range of language sensitive functionality. This was a long-standing [gap](https://github.com/meta/hermes/issues/23) that prevented some developers from using Hermes. The Android implementation, done in partnership with Microsoft, was shipped in React Native 0.65. With React Native 0.70, developers will have native support on both platforms. Typical implementations for `Intl` require importing large lookup tables or data like [Unicode CLDR](https://cldr.unicode.org/index). However, that can come with an expensive size increase of up to 6MB, so in order to avoid bloating the binary size of Hermes, we implemented `Intl` by calling into APIs exposed by iOS itself. This means we can take advantage of all the locale and internationalization data that comes with iOS already. @@ -89,8 +89,8 @@ As we continue evolving Hermes, we want to give the community a sense of our imm - Enabling developers to run the sampling profiler directly from the Chrome devtools UI. - Adding support for [`BigInt`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/BigInt), a long-standing request from the community that may block some developers from using Hermes as it can’t be polyfilled. -- Adding support for [`WeakRef`](https://github.com/facebook/hermes/issues/658), which will expose new memory management controls to developers. +- Adding support for [`WeakRef`](https://github.com/meta/hermes/issues/658), which will expose new memory management controls to developers. ## Wrap Up -Hermes becoming the default marks the beginning of a long-term journey. We are working on new features that will enable the community to write efficient apps for many years to come. We also encourage the community to reach out on our [GitHub Repo](https://github.com/facebook/react-native) to post any bugs, questions, feedback or ideas! We have created a `hermes` label that can be used for any Hermes-specific posts. +Hermes becoming the default marks the beginning of a long-term journey. We are working on new features that will enable the community to write efficient apps for many years to come. We also encourage the community to reach out on our [GitHub Repo](https://github.com/react/react-native) to post any bugs, questions, feedback or ideas! We have created a `hermes` label that can be used for any Hermes-specific posts. diff --git a/website/blog/2022-09-05-version-070.mdx b/website/blog/2022-09-05-version-070.mdx index 26721c3abe0..461fac58079 100644 --- a/website/blog/2022-09-05-version-070.mdx +++ b/website/blog/2022-09-05-version-070.mdx @@ -25,7 +25,7 @@ Over the last few months, we have been working to add more content to the [New A Along with it, you can find new documents diving into [Why a New Architecture](https://reactnative.dev/docs/next/the-new-architecture/why) and [the various parts of it](https://reactnative.dev/docs/next/the-new-architecture/pillars). We hope this helps you better understand the rationale behind the new APIs. -Any feedback is more than welcome, please let us know in the [react-native-website](https://github.com/facebook/react-native-website) repository. +Any feedback is more than welcome, please let us know in the [react-native-website](https://github.com/react/react-native-website) repository. ## Hermes as default engine @@ -74,7 +74,7 @@ From now on you can use a `CMakeLists.txt` file instead of an `Android.mk` file This change benefits both app and library users on the New Architecture as: -- The CMake file created in your app is way smaller ([3 lines of code](https://github.com/facebook/react-native/blob/9923ac1b524ae959abdf50a28a3094198015f77e/packages/rn-tester/android/app/src/main/jni/CMakeLists.txt#L6-L11) versus [50+ for Android.mk files](https://github.com/facebook/react-native/blob/main/template/android/app/src/main/jni/Android.mk?rgh-link-date=2022-07-20T18%3A29%3A07Z)). This makes for an easier update experience between React Native versions in the future and less code to maintain on your end. +- The CMake file created in your app is way smaller ([3 lines of code](https://github.com/react/react-native/blob/9923ac1b524ae959abdf50a28a3094198015f77e/packages/rn-tester/android/app/src/main/jni/CMakeLists.txt#L6-L11) versus [50+ for Android.mk files](https://github.com/react/react-native/blob/main/template/android/app/src/main/jni/Android.mk?rgh-link-date=2022-07-20T18%3A29%3A07Z)). This makes for an easier update experience between React Native versions in the future and less code to maintain on your end. - Codegen is now generating both `Android.mk` and `CMakeLists.txt`, so libraries should not worry about doing anything if they're using the default setup we provide for New Architecture libraries. - The Auto-linking mentioned above will work with both CMake and Android.mk files out of the box. - Despite apps being free to use either `Android.mk` or CMake files, the recommended solution in the future would be CMake files (due to better documentation, tooling and ecosystem around CMake). @@ -85,16 +85,16 @@ As mentioned above, some of the more important improvements in this release are - Fix for Catalyst is live, set `mac_catalyst_enabled` to `true` in Podfile (see [upgrade-helper](https://react-native-community.github.io/upgrade-helper/?from=0.69.1&to=0.70.0-rc.0) diff for details). - Bumping metro to 0.72.0 which will enable the new React JSX Transform: [reactjs.org/blog/2020/09/22/introducing-the-new-jsx-transform.html](https://reactjs.org/blog/2020/09/22/introducing-the-new-jsx-transform.html). -- Removing `reactnativeutilsjni` as it is built from the same sources as `reactnativejni` which results in ~220 KBs saved from every Android APK build. ([https://github.com/facebook/react-native/pull/34339](https://github.com/facebook/react-native/pull/34339)). +- Removing `reactnativeutilsjni` as it is built from the same sources as `reactnativejni` which results in ~220 KBs saved from every Android APK build. ([#34339](https://github.com/react/react-native/pull/34339)). ### Breaking changes There have also been a few breaking changes: -- Removed jest/preprocessor from the react-native package ([0301cb285b](https://github.com/facebook/react-native/commit/0301cb285b2e85b48a397fe58d565196654d9754) by [@motiz88](https://github.com/motiz88)) -- Remove nonstandard `Promise.prototype.done` ([018d5cf985](https://github.com/facebook/react-native/commit/018d5cf985497273dd700b56168cf1cf64f498d5) by [@motiz88](https://github.com/motiz88)) +- Removed jest/preprocessor from the react-native package ([0301cb285b](https://github.com/react/react-native/commit/0301cb285b2e85b48a397fe58d565196654d9754) by [@motiz88](https://github.com/motiz88)) +- Remove nonstandard `Promise.prototype.done` ([018d5cf985](https://github.com/react/react-native/commit/018d5cf985497273dd700b56168cf1cf64f498d5) by [@motiz88](https://github.com/motiz88)) -Please also note that the version of Metro has been bumped to 0.72, which comes [with 5 breaking changes](https://github.com/facebook/metro/releases/tag/v0.72.0). +Please also note that the version of Metro has been bumped to 0.72, which comes [with 5 breaking changes](https://github.com/react/metro/releases/tag/v0.72.0). ### Upgrades @@ -107,7 +107,7 @@ And we upgraded some of our dependencies: - Bump Metro to 0.72 - Bump SoLoader to 0.10.4 -You can check out the full list of changes [in the changelog](https://github.com/facebook/react-native/blob/main/CHANGELOG.md). +You can check out the full list of changes [in the changelog](https://github.com/react/react-native/blob/main/CHANGELOG.md). ### Acknowledgements diff --git a/website/blog/2022-11-22-react-native-core-contributor-summit-2022.mdx b/website/blog/2022-11-22-react-native-core-contributor-summit-2022.mdx index 9a7b54b3e7e..211ddcd61c3 100644 --- a/website/blog/2022-11-22-react-native-core-contributor-summit-2022.mdx +++ b/website/blog/2022-11-22-react-native-core-contributor-summit-2022.mdx @@ -33,13 +33,13 @@ In this session, we took the opportunity to onboard new contributors to Codegen, A team of a few people moved into a meeting room to tackle this task. They encountered and overcame some difficulties along the way, like how to run unit tests for Codegen. They spent quite some time understanding the code execution flow before starting to deal with the code. After some hours of collaborative work, they ended up with the first prototype that was able to recognize string unions. This experience was extremely useful in discussing design patterns and the ideal architecture we may want in the future. -#### 2. Improving **[auto-linking for iOS](https://github.com/facebook/react-native/pull/34580)**, which was missing a use case. +#### 2. Improving **[auto-linking for iOS](https://github.com/react/react-native/pull/34580)**, which was missing a use case. Specifically, auto-linking could not work well in scenarios where libraries and the app were living together in a monorepo. Android already supported this use case but it was missing for iOS. Working with the contributors on Codegen helped us realize that it wasn’t trivial to work in its codebase. For example, adding the support for one type required to copy-and-paste the same code in four different places: modules with specs written in Flow, modules with specs written in TypeScript, components with specs written in Flow, and components with specs written in TypeScript. -This realization pushed us to create an [umbrella task](https://github.com/facebook/react-native/issues/34872) to reach out for help to the community in order to improve the status of the codebase toward a more maintainable one. +This realization pushed us to create an [umbrella task](https://github.com/react/react-native/issues/34872) to reach out for help to the community in order to improve the status of the codebase toward a more maintainable one. The participation was outstanding: we managed to quickly assign the first **40 tasks in 5 days**. At the end of October, the community completed **47 tasks** and many others are ready and waiting to be merged. @@ -65,11 +65,11 @@ In this session, we initially brainstormed and collected opinions from every con We then started working on two fronts. First, we had to expand our Continuous Integration infrastructure to support our monorepo, adding [Verdaccio](https://verdaccio.org/) to our testing infrastructure. We then started renaming & adding scopes to several of our packages, resulting in 6 distinct contributions. -You can track the status of this effort under this [umbrella issue](https://github.com/facebook/react-native/issues/34692) and we hope to share more on this effort in the near future. +You can track the status of this effort under this [umbrella issue](https://github.com/react/react-native/issues/34692) and we hope to share more on this effort in the near future. ### Metro Web and Ecosystem Alignment -[Metro](https://github.com/facebook/metro), our JavaScript Bundler, is a foundational and integrated part of the React Native development experience and we want to make sure it works with the latest standards in the JS ecosystem. +[Metro](https://github.com/react/metro), our JavaScript Bundler, is a foundational and integrated part of the React Native development experience and we want to make sure it works with the latest standards in the JS ecosystem. The focus of this session was to discuss improving Metro's feature set to work better for web use cases and with the npm and bundler ecosystem. Two major areas of discussion: diff --git a/website/blog/2022-12-13-pointer-events-in-react-native.mdx b/website/blog/2022-12-13-pointer-events-in-react-native.mdx index d9ada8147ef..fa4c55ed114 100644 --- a/website/blog/2022-12-13-pointer-events-in-react-native.mdx +++ b/website/blog/2022-12-13-pointer-events-in-react-native.mdx @@ -57,7 +57,7 @@ Using Android as an example, the general approach to leveraging platform events ![A diagram illustrating the relationship of types of Android MotionEvents into Pointer Events fired. Some pointer events are conditionally fired if pointing device does not support hover. "ACTION_DOWN" and "ACTION_POINTER_DOWN" fire pointerdown and conditionally fire pointerenter, pointerover. "ACTION_MOVE" and "ACTION_HOVER_MOVE" fire pointerover, pointermove, pointerout, pointerup. "ACTION_UP" and "ACTION_POINTER_UP" fire pointerup and conditionally fire pointerout, pointerleave.](/blog/assets/pointer-events-motionevent-relationship.png) 1. Build the `PointerEvent` interface with platform details from the `MotionEvent` and cached state of previous interactions. (Ex. [the `button` property](https://w3c.github.io/pointerevents/#the-button-property)) -2. Dispatch the pointer events from Android to React Native’s [core event queue](https://github.com/facebook/react-native/blob/main/ReactCommon/react/renderer/core/EventQueueProcessor.cpp#L20) and leverage JSI to call the [`dispatchEvent`](https://github.com/facebook/react/blob/main/packages/react-native-renderer/src/ReactFabricEventEmitter.js#L83) method in `react-native-renderer` which iterates through the React tree for the bubble and capture phase of the event. +2. Dispatch the pointer events from Android to React Native’s [core event queue](https://github.com/react/react-native/blob/main/ReactCommon/react/renderer/core/EventQueueProcessor.cpp#L20) and leverage JSI to call the [`dispatchEvent`](https://github.com/react/react/blob/main/packages/react-native-renderer/src/ReactFabricEventEmitter.js#L83) method in `react-native-renderer` which iterates through the React tree for the bubble and capture phase of the event. ## Implementation Progress @@ -83,7 +83,7 @@ onPointerCancel has been hooked up to the native platform’s "cancel" event but ### Event Properties -For each of the events mentioned above we’ve also implemented the majority of the properties expected in the PointerEvent object — though in React Native these are exposed through the `event.nativeEvent` property. You can find an enumeration of all the implemented properties in the [event object’s Flowtype interface definition](https://github.com/facebook/react-native/blob/59ee57352738f030b41589a450209e51e44bbb06/Libraries/Types/CoreEventTypes.js#L175). One notable exception to being completely implemented is the `relatedTarget` property as exposing a native view reference in this ad-hoc manner isn’t trivial. +For each of the events mentioned above we’ve also implemented the majority of the properties expected in the PointerEvent object — though in React Native these are exposed through the `event.nativeEvent` property. You can find an enumeration of all the implemented properties in the [event object’s Flowtype interface definition](https://github.com/react/react-native/blob/59ee57352738f030b41589a450209e51e44bbb06/Libraries/Types/CoreEventTypes.js#L175). One notable exception to being completely implemented is the `relatedTarget` property as exposing a native view reference in this ad-hoc manner isn’t trivial. ## Future Work and Exploration diff --git a/website/blog/2023-01-03-typescript-first.mdx b/website/blog/2023-01-03-typescript-first.mdx index 651671c7c55..b0d7c0763ad 100644 --- a/website/blog/2023-01-03-typescript-first.mdx +++ b/website/blog/2023-01-03-typescript-first.mdx @@ -39,7 +39,7 @@ Prior, TypeScript declarations for React Native were provided by [`@types/react- With TS types co-located with React Native source, there is more visibility and ownership of TS types. Our team is actively working on tools to maintain alignment between Flow and TS. -This change also removes a dependency for React Native users to manage. When upgrading to 0.71 or above, you can remove `@types/react-native` as a dependency. [Refer to the new app template on how to set up TypeScript support.](https://github.com/facebook/react-native/blob/main/template/tsconfig.json) +This change also removes a dependency for React Native users to manage. When upgrading to 0.71 or above, you can remove `@types/react-native` as a dependency. [Refer to the new app template on how to set up TypeScript support.](https://github.com/react/react-native/blob/main/template/tsconfig.json) We plan to deprecate `@types/react-native` for versions 0.73 and onward. Concretely this means: @@ -66,19 +66,19 @@ Libraries that target versions of React Native below 0.71 may use a `peerDepende #### Maintainer of TypeScript declarations that depend on `@types/react-native` -Check out the [breaking changes introduced with 0.71](https://github.com/facebook/react-native/blob/main/CHANGELOG.md) to see if you’re ready to migrate. +Check out the [breaking changes introduced with 0.71](https://github.com/react/react-native/blob/main/CHANGELOG.md) to see if you’re ready to migrate. ### What if I use Flow? Flow users can continue to typecheck applications targeting 0.71+ but configuration logic for it is no longer included out-of-the box in the template. -Flow users have previously upgraded React Native’s Flow types by merging in the `.flowconfig` from the new app template and manually updating `flow-bin`. The new app template no longer has a `.flowconfig`, but [one is still present in the React Native repository](https://github.com/facebook/react-native/blob/main/.flowconfig) that can be used as a basis for your app. +Flow users have previously upgraded React Native’s Flow types by merging in the `.flowconfig` from the new app template and manually updating `flow-bin`. The new app template no longer has a `.flowconfig`, but [one is still present in the React Native repository](https://github.com/react/react-native/blob/main/.flowconfig) that can be used as a basis for your app. -If you need to start a new React Native app in Flow, you can reference the [new app template from 0.70](https://github.com/facebook/react-native/tree/0.70-stable/template). +If you need to start a new React Native app in Flow, you can reference the [new app template from 0.70](https://github.com/react/react-native/tree/0.70-stable/template). ### What if I find a bug in the TypeScript declaration? -Regardless of whether you’re using built-in TS types or `@types/react-native`, if you find a bug please submit a PR to both [React Native](https://github.com/facebook/react-native) and [DefinitelyTyped](https://github.com/DefinitelyTyped/DefinitelyTyped) repositories. If you don’t know how to fix it, please file a GitHub issue in the React Native repository and mention [@lunaleaps](https://github.com/lunaleaps) on the issue. +Regardless of whether you’re using built-in TS types or `@types/react-native`, if you find a bug please submit a PR to both [React Native](https://github.com/react/react-native) and [DefinitelyTyped](https://github.com/DefinitelyTyped/DefinitelyTyped) repositories. If you don’t know how to fix it, please file a GitHub issue in the React Native repository and mention [@lunaleaps](https://github.com/lunaleaps) on the issue. ## Documentation is TypeScript First diff --git a/website/blog/2023-01-12-version-071.mdx b/website/blog/2023-01-12-version-071.mdx index 9b666372764..d3fd7a3ec9b 100644 --- a/website/blog/2023-01-12-version-071.mdx +++ b/website/blog/2023-01-12-version-071.mdx @@ -19,7 +19,7 @@ In this post we’ll cover some of the highlights of 0.71. {/* truncate */} :::info -For a full list of changes, check out [CHANGELOG.md](https://github.com/facebook/react-native/blob/main/CHANGELOG.md#v071). +For a full list of changes, check out [CHANGELOG.md](https://github.com/react/react-native/blob/main/CHANGELOG.md#v071). ::: ## TypeScript by default @@ -79,7 +79,7 @@ These props now exist on all core components of React Native:`aria-label`, `aria We also introduced equivalent web behavior for: `aria-hidden`, `aria-live`, `role`, and `tabIndex`. -See this [issue](https://github.com/facebook/react-native/issues/34424) for more details. +See this [issue](https://github.com/react/react-native/issues/34424) for more details. #### Component-Specific Behavior @@ -88,7 +88,7 @@ There were also props introduced to align prop names with equivalent DOM prop na - **Image**: `alt`, `tintColor`, `crossOrigin`, `height`, `referrerPolicy`, `src`, `srcSet`, and `width`. - **TextInput**: `autoComplete`, `enterKeyHint`, `inputMode`, `readOnly`, and `rows`. -See this [issue](https://github.com/facebook/react-native/issues/34424) for more details. +See this [issue](https://github.com/react/react-native/issues/34424) for more details. #### Styles @@ -106,7 +106,7 @@ The following aliases have been added to shadow existing React Native styles: - [`userSelect`](https://developer.mozilla.org/en-US/docs/Web/CSS/user-select) - [`verticalAlign`](https://reactnative.dev/docs/text-style-props#verticalalign-android) -See this [issue](https://github.com/facebook/react-native/issues/34425) for more details. +See this [issue](https://github.com/react/react-native/issues/34425) for more details. #### Events @@ -145,7 +145,7 @@ Check out our dedicated [PointerEvents post](https://reactnative.dev/blog/2022/1 React Native’s prop types, such as `ViewPropTypes` and `Text.propTypes`, were deprecated in 0.66 and accessing them would output deprecation warnings. When they were removed in 0.68, many developers began experiencing errors when upgrading to the latest version of React Native. -After some investigation, we realized that a couple issues prevented the community from taking action on the deprecation warnings. First, the deprecation warning was not always actionable which caused people to ignore them ([issue one](https://github.com/facebook/react-native/pull/34650), [issue two](https://github.com/react-native-community/cli/pull/1699)). Second, the deprecation warnings were being [incorrectly filtered](https://github.com/facebook/react-native/commit/fa2842d) by `LogBox.ignoreLogs`. Both of these have now been fixed, but we want to give people more time to upgrade the deprecated call sites. +After some investigation, we realized that a couple issues prevented the community from taking action on the deprecation warnings. First, the deprecation warning was not always actionable which caused people to ignore them ([issue one](https://github.com/react/react-native/pull/34650), [issue two](https://github.com/react-native-community/cli/pull/1699)). Second, the deprecation warnings were being [incorrectly filtered](https://github.com/react/react-native/commit/fa2842d) by `LogBox.ignoreLogs`. Both of these have now been fixed, but we want to give people more time to upgrade the deprecated call sites. So in this release we are adding back React Native’s propTypes so that it is easier for people to upgrade and migrate their code to avoid using them. The `deprecated-react-native-prop-types` package has also been updated for all of the props in 0.71. In the future, we plan to proceed with the deprecation and remove prop types once again. We expect that when we revisit the removal, the community will experience significantly fewer issues. @@ -178,7 +178,7 @@ In React Native 0.71, we’re upgrading Hermes with a few notable improvements: - **Improve source maps**: By loading source maps over the network with Metro we’ve restored the ability to use source maps in recent versions of Chrome Dev Tools outside of Flipper. - **Improve `JSON.parse` performance**: This version includes a performance optimization that improves the performance of `JSON.parse` up to 30%. -- **Add support for `.at()`**: Hermes now [supports](https://github.com/facebook/hermes/issues/823)`.at()` for `String`, `TypedArray`, and `Array`. +- **Add support for `.at()`**: Hermes now [supports](https://github.com/meta/hermes/issues/823)`.at()` for `String`, `TypedArray`, and `Array`. For a full list of changes see [the Road to 71 issue](https://github.com/reactwg/react-native-releases/discussions/41#discussioncomment-4089256). @@ -202,9 +202,9 @@ As a reminder, the New Architecture is still an experimental API experience as w ## Breaking changes -- **Changes to Console Logging:** `LogBox.ignoreLog` no longer filters console logs. This means you will start seeing logs in the console that you have silenced in LogBox. See [this comment](https://github.com/facebook/react-native/pull/34476#issuecomment-1240667794) for more details. -- **Removed AsyncStorage and MaskedViewIOS**: These components have been deprecated since version [0.59](https://github.com/facebook/react-native/blob/main/CHANGELOG.md#deprecated-8), so it’s time we remove them entirely. For alternatives, please check [React Native Directory](https://reactnative.directory/) for community packages that cover those use cases. -- **JSCRuntime moved to react-jsc:** react-jsi is now split into react-jsc and react-jsi. If you use JSCRuntime, you will need to add react-jsc as a dependency ([facebook/react-native@6b129d8](https://github.com/facebook/react-native/commit/6b129d81ed8cab301775d2a04971e255df9290de)). +- **Changes to Console Logging:** `LogBox.ignoreLog` no longer filters console logs. This means you will start seeing logs in the console that you have silenced in LogBox. See [this comment](https://github.com/react/react-native/pull/34476#issuecomment-1240667794) for more details. +- **Removed AsyncStorage and MaskedViewIOS**: These components have been deprecated since version [0.59](https://github.com/react/react-native/blob/main/CHANGELOG.md#deprecated-8), so it’s time we remove them entirely. For alternatives, please check [React Native Directory](https://reactnative.directory/) for community packages that cover those use cases. +- **JSCRuntime moved to react-jsc:** react-jsi is now split into react-jsc and react-jsi. If you use JSCRuntime, you will need to add react-jsc as a dependency ([facebook/react-native@6b129d8](https://github.com/react/react-native/commit/6b129d81ed8cab301775d2a04971e255df9290de)). ## Acknowledgements diff --git a/website/blog/2023-01-27-71rc1-android-outage-postmortem.mdx b/website/blog/2023-01-27-71rc1-android-outage-postmortem.mdx index 1e18624ef86..45648cc333e 100644 --- a/website/blog/2023-01-27-71rc1-android-outage-postmortem.mdx +++ b/website/blog/2023-01-27-71rc1-android-outage-postmortem.mdx @@ -30,7 +30,7 @@ We were aware of the issues dynamic versions could cause, so in `0.71` we cleane This caused builds with React Native versions before `0.71.0-rc.0` to query all the repositories for the highest available versions of the React Native. Because the newly pushed 0.71.0-rc.0 on Maven Central became the highest version available, builds with React Native versions before 0.71.0-rc.0 started using artifacts from 0.71.0-rc.0. The React Native version mismatch between the local build (e.g `0.68.0`) and artifacts from Maven Central (`0.71.0-rc.0`) caused these builds to fail. -Further technical details on this event area are also available [on this GitHub issue](https://github.com/facebook/react-native/issues/35210). +Further technical details on this event area are also available [on this GitHub issue](https://github.com/react/react-native/issues/35210). ## How we mitigated & resolved @@ -46,17 +46,17 @@ The issue was fully resolved on November 8th when the artifacts were fully remov _This section contains a brief timeline of the events. All times are GMT/UTC +0_ -- Nov 4th - 5:06 PM: [0.71-RC0 is released](https://github.com/facebook/react-native/releases/tag/v0.71.0-rc.0). -- Nov 4th - 6:20 PM: [First report of build issue is opened](https://github.com/facebook/react-native/issues/35204). -- Nov 4th - 7:45 PM: [Issue is identified by community](https://github.com/facebook/react-native/issues/35204#issuecomment-1304090948). -- Nov 4th - 9:39 PM: [Workarounds are communicated, Expo ](https://github.com/facebook/react-native/issues/35204#issuecomment-1304281740)deploys fix to all their users. -- Nov 5th - 03:04 AM: [New issue is open to communicate status and workarounds](https://github.com/facebook/react-native/issues/35210). +- Nov 4th - 5:06 PM: [0.71-RC0 is released](https://github.com/react/react-native/releases/tag/v0.71.0-rc.0). +- Nov 4th - 6:20 PM: [First report of build issue is opened](https://github.com/react/react-native/issues/35204). +- Nov 4th - 7:45 PM: [Issue is identified by community](https://github.com/react/react-native/issues/35204#issuecomment-1304090948). +- Nov 4th - 9:39 PM: [Workarounds are communicated, Expo ](https://github.com/react/react-native/issues/35204#issuecomment-1304281740)deploys fix to all their users. +- Nov 5th - 03:04 AM: [New issue is open to communicate status and workarounds](https://github.com/react/react-native/issues/35210). - Nov 6th - 04:11 PM: [Ticket to SonaType](https://issues.sonatype.org/browse/OSSRH-86006?focusedCommentId=1216303&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-1216303) asking for removal of the artifacts is open. - Nov 6th - 04:40 PM: [First tweet](https://twitter.com/reactnative/status/1589296764678705155) from @reactnative with ack + link to issue. - Nov 6th - 07:05 PM: Decision to patch React Native versions back to 0.63. -- Nov 7th - 12:47 AM: Last patched release is released: [0.63.5](https://github.com/facebook/react-native/releases/tag/v0.63.5). +- Nov 7th - 12:47 AM: Last patched release is released: [0.63.5](https://github.com/react/react-native/releases/tag/v0.63.5). - Nov 8th - 08:04 PM: Artifacts on Maven Central are [fully removed](https://issues.sonatype.org/browse/OSSRH-86006?focusedCommentId=1216303&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-1216303). -- Nov 10th - 11:51 AM: Issue about the [incident is closed](https://github.com/facebook/react-native/issues/35210#issuecomment-1310170361). +- Nov 10th - 11:51 AM: Issue about the [incident is closed](https://github.com/react/react-native/issues/35210#issuecomment-1310170361). ## Lessons Learned @@ -90,7 +90,7 @@ This incident highlighted the importance of having better release testing and be On the testing side, releasing versions down to `0.63.x` proved to be challenging due to the lack of automation and testing we now have in place for stable releases. We recognize the importance of our release and testing infrastructure and we’re going to invest further in it in the future. -Specifically, we are now encouraging and supporting 3rd party library testing as part of the [release of react native](https://github.com/reactwg/react-native-releases/discussions/41). We’re also adding some new channels and roles in the [Core Contributors Discord Server](https://github.com/facebook/react-native/blob/main/ECOSYSTEM.md#core-contributors). +Specifically, we are now encouraging and supporting 3rd party library testing as part of the [release of react native](https://github.com/reactwg/react-native-releases/discussions/41). We’re also adding some new channels and roles in the [Core Contributors Discord Server](https://github.com/react/react-native/blob/main/ECOSYSTEM.md#core-contributors). On top of this, we started a closer collaboration with Callstack, the maintainers of [create-react-native-library](https://github.com/callstack/react-native-builder-bob/tree/main/packages/create-react-native-library), to improve the library template and make sure it follows all the necessary best practices to integrate with React Native projects. The newer version of `create-react-native-library` is now fully compatible with 0.71 projects while still offering backward compatibility. diff --git a/website/blog/2023-06-21-0.72-metro-package-exports-symlinks.mdx b/website/blog/2023-06-21-0.72-metro-package-exports-symlinks.mdx index b1f665a4301..08761d06ec3 100644 --- a/website/blog/2023-06-21-0.72-metro-package-exports-symlinks.mdx +++ b/website/blog/2023-06-21-0.72-metro-package-exports-symlinks.mdx @@ -60,10 +60,10 @@ const config = { #### New `metro.config.js` Setup -In React Native 0.72, we’ve changed the config loading setup for Metro in React Native CLI. Please update your project’s `metro.config.js` file to match the [template’s version](https://github.com/facebook/react-native/blob/76a42c292de838a0dd537935db792eaa81410b9b/packages/react-native/template/metro.config.js). +In React Native 0.72, we’ve changed the config loading setup for Metro in React Native CLI. Please update your project’s `metro.config.js` file to match the [template’s version](https://github.com/react/react-native/blob/76a42c292de838a0dd537935db792eaa81410b9b/packages/react-native/template/metro.config.js). :::info -Please update your config file to the following [format](https://github.com/facebook/react-native/blob/76a42c292de838a0dd537935db792eaa81410b9b/packages/react-native/template/metro.config.js). You can also follow the [upgrade-helper](https://react-native-community.github.io/upgrade-helper/?from=0.71.8&to=0.72.0). +Please update your config file to the following [format](https://github.com/react/react-native/blob/76a42c292de838a0dd537935db792eaa81410b9b/packages/react-native/template/metro.config.js). You can also follow the [upgrade-helper](https://react-native-community.github.io/upgrade-helper/?from=0.71.8&to=0.72.0). These format changes to `metro.config.js` will become required in 0.73. For 0.72, we will log a warning if not updated. ::: @@ -98,17 +98,17 @@ You can find other improvements in the [React Native CLI changelogs](https://git #### Faster Compilation and JSON Parsing in Hermes -Hermes has improved the compilation time of large object literals. For example, in one reported issue, [#852](https://github.com/facebook/hermes/issues/852), a user had an entire dataset written out as a large object literal. By improving the de-duplication algorithm Hermes uses, compilation sped up by 97% ([221c](https://github.com/facebook/hermes/commit/221ce21a209e2e32a3eaaa2d9e28ca81842fad20)). These improvements will benefit build times for apps that bundle many objects. +Hermes has improved the compilation time of large object literals. For example, in one reported issue, [#852](https://github.com/meta/hermes/issues/852), a user had an entire dataset written out as a large object literal. By improving the de-duplication algorithm Hermes uses, compilation sped up by 97% ([221c](https://github.com/meta/hermes/commit/221ce21a209e2e32a3eaaa2d9e28ca81842fad20)). These improvements will benefit build times for apps that bundle many objects. -Multiple optimizations ([de9c](https://github.com/facebook/hermes/commit/de9cff2aa41fc1f297b568848143347823d73659), [6e2d](https://github.com/facebook/hermes/commit/6e2dd652c8d90c5d59737a81f66a259efffdcd00)) to JSON parsing have also landed, benefiting apps using libraries like redux-persist that rely heavily on JSON manipulation. +Multiple optimizations ([de9c](https://github.com/meta/hermes/commit/de9cff2aa41fc1f297b568848143347823d73659), [6e2d](https://github.com/meta/hermes/commit/6e2dd652c8d90c5d59737a81f66a259efffdcd00)) to JSON parsing have also landed, benefiting apps using libraries like redux-persist that rely heavily on JSON manipulation. #### More ECMAScript Support in Hermes Support for the following specifications in Hermes has landed in React Native 0.72: -- `prototype.at` support for [Array](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/at), [TypedArray](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/at) and [String](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/at). See [#823](https://github.com/facebook/hermes/issues/823) ([ebe2](https://github.com/facebook/hermes/commit/ebe2915ac386a6b73dec39c2af4ac7063e68cd99)). -- Implement [well-formed JSON.stringify](https://github.com/tc39/proposal-well-formed-stringify) ([d41d](https://github.com/facebook/hermes/commit/d41decf244aa814b1e58827a9de982f3b71667de)) to prevent ill-formed Unicode strings -- Implement [AggregateError](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/AggregateError) ([9b25](https://github.com/facebook/hermes/commit/9b25a2530eb515f6c4fbd397ae290b6c97c049b2)) that represents several errors wrapped in a single error. Useful for multiple errors like from [`Promise.any()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise/any) when all promises passed to it reject. +- `prototype.at` support for [Array](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/at), [TypedArray](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/at) and [String](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/at). See [#823](https://github.com/meta/hermes/issues/823) ([ebe2](https://github.com/meta/hermes/commit/ebe2915ac386a6b73dec39c2af4ac7063e68cd99)). +- Implement [well-formed JSON.stringify](https://github.com/tc39/proposal-well-formed-stringify) ([d41d](https://github.com/meta/hermes/commit/d41decf244aa814b1e58827a9de982f3b71667de)) to prevent ill-formed Unicode strings +- Implement [AggregateError](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/AggregateError) ([9b25](https://github.com/meta/hermes/commit/9b25a2530eb515f6c4fbd397ae290b6c97c049b2)) that represents several errors wrapped in a single error. Useful for multiple errors like from [`Promise.any()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise/any) when all promises passed to it reject. For users on JSC, these features are already available. @@ -130,7 +130,7 @@ The following packages have been removed from React Native in 0.72. Please migra ### Package Renames -All packages published from the [`react-native`](https://github.com/facebook/react-native) core repository now live under `react-native/packages`, and are published under the [@react-native npm scope](https://www.npmjs.com/search?q=%40react-native) to ensure clear ownership. +All packages published from the [`react-native`](https://github.com/react/react-native) core repository now live under `react-native/packages`, and are published under the [@react-native npm scope](https://www.npmjs.com/search?q=%40react-native) to ensure clear ownership. There are no changes to the [react-native](https://www.npmjs.com/package/react-native) package. @@ -150,9 +150,9 @@ You can read the motivation that led to these changes [in the dedicated RFC](htt ## Acknowledgements -A lot of this release came from the direct feedback from the community. From reports on [noisy redboxes](https://twitter.com/baconbrix/status/1623039650775371792), [bugs with Package Exports](https://github.com/facebook/metro/issues/965), [benchmarks for the New Architecture](https://github.com/reactwg/react-native-new-architecture/discussions/85) — all of it is valuable to hear and we appreciate the time it takes to share feedback. +A lot of this release came from the direct feedback from the community. From reports on [noisy redboxes](https://twitter.com/baconbrix/status/1623039650775371792), [bugs with Package Exports](https://github.com/react/metro/issues/965), [benchmarks for the New Architecture](https://github.com/reactwg/react-native-new-architecture/discussions/85) — all of it is valuable to hear and we appreciate the time it takes to share feedback. -0.72 contains over [1100 commits](https://github.com/facebook/react-native/compare/v0.71.8...v0.72.0) from 66 contributors. Thank you for all your hard work! +0.72 contains over [1100 commits](https://github.com/react/react-native/compare/v0.71.8...v0.72.0) from 66 contributors. Thank you for all your hard work! ## Upgrade to 0.72 diff --git a/website/blog/2023-06-21-package-exports-support.mdx b/website/blog/2023-06-21-package-exports-support.mdx index f1e0cabe637..a06c6beaa52 100644 --- a/website/blog/2023-06-21-package-exports-support.mdx +++ b/website/blog/2023-06-21-package-exports-support.mdx @@ -84,7 +84,7 @@ Enabling Package Exports brings a few [edge-case breaking changes](#breaking-cha ### Enabling Package Exports (beta) -Package Exports can be enabled in your app's [**metro.config.js**](https://github.com/facebook/react-native/blob/0.72-stable/packages/react-native/template/metro.config.js) file via the [`resolver.unstable_enablePackageExports`](https://metrobundler.dev/docs/configuration/#unstable_enablepackageexports-experimental) option. +Package Exports can be enabled in your app's [**metro.config.js**](https://github.com/react/react-native/blob/0.72-stable/packages/react-native/template/metro.config.js) file via the [`resolver.unstable_enablePackageExports`](https://metrobundler.dev/docs/configuration/#unstable_enablepackageexports-experimental) option. ```js const config = { @@ -101,7 +101,7 @@ Metro exposes two further resolver options which configure how conditional expor - [`unstable_conditionsByPlatform`](https://metrobundler.dev/docs/configuration/#unstable_conditionsbyplatform-experimental) — The additional condition names to assert when resolving for a given platform target. By default, this matches `'browser'` when the platform is `'web'`. :::tip -**Remember to use the React Native [Jest preset](https://github.com/facebook/react-native/blob/main/template/jest.config.js#L2)!** Jest includes support for Package Exports by default. In tests, you can override which `customExportConditions` are resolved using the [`testEnvironmentOptions`](https://jestjs.io/docs/configuration#testenvironmentoptions-object) option. +**Remember to use the React Native [Jest preset](https://github.com/react/react-native/blob/main/template/jest.config.js#L2)!** Jest includes support for Package Exports by default. In tests, you can override which `customExportConditions` are resolved using the [`testEnvironmentOptions`](https://jestjs.io/docs/configuration#testenvironmentoptions-object) option. **If you are using TypeScript**, resolution behaviour can be matched by setting [`moduleResolution: 'bundler'`](https://www.typescriptlang.org/tsconfig#moduleResolution) and [`resolvePackageJsonImports: false`](https://www.typescriptlang.org/tsconfig#resolvePackageJsonExports) within your project's `tsconfig.json`. ::: diff --git a/website/blog/2023-12-06-0.73-debugging-improvements-stable-symlinks.mdx b/website/blog/2023-12-06-0.73-debugging-improvements-stable-symlinks.mdx index b8d1809fd5a..7ce99dd534f 100644 --- a/website/blog/2023-12-06-0.73-debugging-improvements-stable-symlinks.mdx +++ b/website/blog/2023-12-06-0.73-debugging-improvements-stable-symlinks.mdx @@ -164,15 +164,15 @@ Please follow the [Upgrade Helper](https://react-native-community.github.io/upgr ### Other Breaking Changes -These are some of the key breaking changes in 0.73. Please consult the [full changelog](https://github.com/facebook/react-native/blob/main/CHANGELOG.md) for the complete list of breaking changes. +These are some of the key breaking changes in 0.73. Please consult the [full changelog](https://github.com/react/react-native/blob/main/CHANGELOG.md) for the complete list of breaking changes. -- Raise minimum Node.js requirement to 18.x ([#37709](https://github.com/facebook/react-native/pull/37709)) (see also [Node.js 16 EOL](https://nodejs.org/en/blog/announcements/nodejs16-eol)). -- The template now uses TypeScript 5.0 ([#36862](https://github.com/facebook/react-native/pull/36862)). +- Raise minimum Node.js requirement to 18.x ([#37709](https://github.com/react/react-native/pull/37709)) (see also [Node.js 16 EOL](https://nodejs.org/en/blog/announcements/nodejs16-eol)). +- The template now uses TypeScript 5.0 ([#36862](https://github.com/react/react-native/pull/36862)). - React Native types continue working on TypeScript 4.8. - **Android**: Java 17 is now a requirement to build Android apps ([see above](#java-17-and-android-gradle-plugin-upgrade)). -- **Android**: Major bump of Fresco to 3.0 ([#38275](https://github.com/facebook/react-native/pull/38275)). -- **iOS**: Raise minimum iOS version to 13.4 ([#36795](https://github.com/facebook/react-native/pull/36795)). -- **iOS**: Metro will no longer be automatically started when running builds via Xcode ([#38242](https://github.com/facebook/react-native/pull/38242)). +- **Android**: Major bump of Fresco to 3.0 ([#38275](https://github.com/react/react-native/pull/38275)). +- **iOS**: Raise minimum iOS version to 13.4 ([#36795](https://github.com/react/react-native/pull/36795)). +- **iOS**: Metro will no longer be automatically started when running builds via Xcode ([#38242](https://github.com/react/react-native/pull/38242)). For library authors: @@ -198,7 +198,7 @@ We will not ship any future patches for existing versions. The guidance is to mi ## Acknowledgements -React Native 0.73 contains over [2259 commits](https://github.com/facebook/react-native/compare/v0.72.7...v0.73.0) from 68 contributors. Thanks for all your hard work! +React Native 0.73 contains over [2259 commits](https://github.com/react/react-native/compare/v0.72.7...v0.73.0) from 68 contributors. Thanks for all your hard work! ## Upgrade to 0.73 diff --git a/website/blog/2024-04-22-release-0.74.mdx b/website/blog/2024-04-22-release-0.74.mdx index 4176651bee9..c599a229ef6 100644 --- a/website/blog/2024-04-22-release-0.74.mdx +++ b/website/blog/2024-04-22-release-0.74.mdx @@ -238,7 +238,7 @@ For example a newly created app with React Native 0.74 occupies ~13% less space Before 0.74, React Native continued to ship with `PropTypes`, an API that has been deprecated since React 15.5 in 2017! We are now removing all built-in `PropTypes` from React Native, reducing app size (26.4kB in a minified bundle) and memory overhead. -The following `PropTypes` properties are removed: `Image.propTypes`, `Text.propTypes`, `TextInput.propTypes`, `ColorPropType`, `EdgeInsetsPropType`, `PointPropType`, `ViewPropTypes` (see [commit](https://github.com/facebook/react-native/commit/228cb80af9ded20107f3c7a30ffe00e24471bfeb)). +The following `PropTypes` properties are removed: `Image.propTypes`, `Text.propTypes`, `TextInput.propTypes`, `ColorPropType`, `EdgeInsetsPropType`, `PointPropType`, `ViewPropTypes` (see [commit](https://github.com/react/react-native/commit/228cb80af9ded20107f3c7a30ffe00e24471bfeb)). If your app or library relies on `PropTypes`, we highly recommend migrating to a type system like TypeScript. @@ -358,7 +358,7 @@ Finally, delete the following methods and adapt the logic into the callbacks abo Delete any usages of [application:didRegisterUserNotificationSettings:](https://developer.apple.com/documentation/uikit/uiapplicationdelegate/1623022-application?language=objc) and RCTPushNotificationManager’s corresponding didRegisterUserNotificationSettings: as well. -**Example:** See the RNTester [AppDelegate.mm](https://github.com/facebook/react-native/blob/main/packages/rn-tester/RNTester/AppDelegate.mm). +**Example:** See the RNTester [AppDelegate.mm](https://github.com/react/react-native/blob/main/packages/rn-tester/RNTester/AppDelegate.mm). #### JS @@ -400,34 +400,34 @@ Using the [Hermes Debugger](https://reactnative.dev/docs/debugging?js-debugger=h **General** -- Make `start`/`end` in styles always refer to writing direction ([#42251](https://github.com/facebook/react-native/pull/42251)). +- Make `start`/`end` in styles always refer to writing direction ([#42251](https://github.com/react/react-native/pull/42251)). **Android** -- Remove of `JSIModule*` from `FabricUIManagerProvider` ([#42059](https://github.com/facebook/react-native/pull/42059)). +- Remove of `JSIModule*` from `FabricUIManagerProvider` ([#42059](https://github.com/react/react-native/pull/42059)). - This API was unused in open source — use [TurboModules](https://github.com/reactwg/react-native-new-architecture/blob/main/docs/turbo-modules.md) instead. -- Deprecate `UIManagerModule.showPopupMenu` and `UIManagerModule.dismissPopupMenu` ([#42441](https://github.com/facebook/react-native/pull/42441)) +- Deprecate `UIManagerModule.showPopupMenu` and `UIManagerModule.dismissPopupMenu` ([#42441](https://github.com/react/react-native/pull/42441)) - This API has been moved to the [`@react-native/popup-menu-android`](https://www.npmjs.com/package/@react-native/popup-menu-android) npm package and will be removed in 0.75. **iOS** -- Delete `configFilename` and `configKey` arguments from iOS codegen CLI ([#41533](https://github.com/facebook/react-native/pull/41533)). -- Change how [`bundleURL`](https://github.com/facebook/react-native/blob/0.74-stable/packages/react-native/template/ios/HelloWorld/AppDelegate.mm#L22-L29) is handled ([#43994](https://github.com/facebook/react-native/pull/43994)). +- Delete `configFilename` and `configKey` arguments from iOS codegen CLI ([#41533](https://github.com/react/react-native/pull/41533)). +- Change how [`bundleURL`](https://github.com/react/react-native/blob/0.74-stable/packages/react-native/template/ios/HelloWorld/AppDelegate.mm#L22-L29) is handled ([#43994](https://github.com/react/react-native/pull/43994)). - Before, `bundleURL` was set when React Native was started in an instance variable and it was not possible to update it. - - Now, [`bundleUrl` is a function](https://github.com/facebook/react-native/blob/0.74-stable/packages/react-native/template/ios/HelloWorld/AppDelegate.mm#L22-L29) which is re-evaluated when needed, enabling the use of a different URL across refreshes. - - This change will affect your app only if you were changing the `bundleURL` variable after the app is started. In this case, move the logic that updates the variable to the [`bundleURL` function](https://github.com/facebook/react-native/blob/0.74-stable/packages/react-native/template/ios/HelloWorld/AppDelegate.mm#L22-L29) in `AppDelegate`. + - Now, [`bundleUrl` is a function](https://github.com/react/react-native/blob/0.74-stable/packages/react-native/template/ios/HelloWorld/AppDelegate.mm#L22-L29) which is re-evaluated when needed, enabling the use of a different URL across refreshes. + - This change will affect your app only if you were changing the `bundleURL` variable after the app is started. In this case, move the logic that updates the variable to the [`bundleURL` function](https://github.com/react/react-native/blob/0.74-stable/packages/react-native/template/ios/HelloWorld/AppDelegate.mm#L22-L29) in `AppDelegate`. -Please see the [full changelog](https://github.com/facebook/react-native/blob/main/CHANGELOG.md) for a complete list of breaking changes. +Please see the [full changelog](https://github.com/react/react-native/blob/main/CHANGELOG.md) for a complete list of breaking changes. ## Known Issues **iOS** -- Edge case when using multiple windows: When the main window is inactive and the system tries to present a dialog, the dialog is not presented in the right position on the screen. A fix is incoming in [#44167](https://github.com/facebook/react-native/pull/44167) and will ship in 0.74.1. +- Edge case when using multiple windows: When the main window is inactive and the system tries to present a dialog, the dialog is not presented in the right position on the screen. A fix is incoming in [#44167](https://github.com/react/react-native/pull/44167) and will ship in 0.74.1. ## Acknowledgements -React Native 0.74 contains over [1673 commits](https://github.com/facebook/react-native/compare/v0.73.6...v0.74.0) from 57 contributors. Thanks for all your hard work! +React Native 0.74 contains over [1673 commits](https://github.com/react/react-native/compare/v0.73.6...v0.74.0) from 57 contributors. Thanks for all your hard work! Thanks to all the additional authors that worked on documenting features in this release post: diff --git a/website/blog/2024-08-12-release-0.75.mdx b/website/blog/2024-08-12-release-0.75.mdx index 9773dc571f5..05f141bb223 100644 --- a/website/blog/2024-08-12-release-0.75.mdx +++ b/website/blog/2024-08-12-release-0.75.mdx @@ -185,9 +185,9 @@ Since our announcement of the [New Architecture being in Beta](https://github.co Our goal is for the New Architecture to be considered stable in the near future. Therefore, in the last few months we focused on bridging the gaps between the Old and the New Architecture. Some examples of bugs and missing features we fixed are: -- Fix `adjustsFontSizeToFit` on Android ([#44075](https://github.com/facebook/react-native/pull/44075)) -- Fix `textAlign` not working with inline views on Android ([#44146](https://github.com/facebook/react-native/pull/44146)) -- Fix text baseline being moved up on iOS ([#44932](https://github.com/facebook/react-native/pull/44932)) +- Fix `adjustsFontSizeToFit` on Android ([#44075](https://github.com/react/react-native/pull/44075)) +- Fix `textAlign` not working with inline views on Android ([#44146](https://github.com/react/react-native/pull/44146)) +- Fix text baseline being moved up on iOS ([#44932](https://github.com/react/react-native/pull/44932)) Together with the folks at Expo, we also worked on adding information about New Architecture support in the [React Native Directory](https://reactnative.directory/), so it will be immediately clear for you if a library already supports the New Architecture or not: @@ -365,7 +365,7 @@ You can read more about it in our official announcement [for Android](https://gi #### Android: JSIModule has been deleted -The `com.facebook.react.bridge.JSIModule` ([source](https://github.com/facebook/react-native/blob/0.73-stable/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/bridge/JSIModule.java)) was an API that we temporarily introduced to allow a Native Module to access JSI directly on Android. +The `com.facebook.react.bridge.JSIModule` ([source](https://github.com/react/react-native/blob/0.73-stable/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/bridge/JSIModule.java)) was an API that we temporarily introduced to allow a Native Module to access JSI directly on Android. The accessors for this API [were deprecated in 0.74](https://reactnative.dev/blog/2024/04/22/release-0.74#other-breaking-changes), and we verified that there was no meaningful usage of this API in Open Source so we’re removing it in 0.75. You can use [Turbo Native Modules](https://github.com/reactwg/react-native-new-architecture/blob/main/docs/turbo-modules.md) instead as an alternative. diff --git a/website/blog/2024-10-23-release-0.76-new-architecture.mdx b/website/blog/2024-10-23-release-0.76-new-architecture.mdx index 9f0e5b85bb0..7944c4ec301 100644 --- a/website/blog/2024-10-23-release-0.76-new-architecture.mdx +++ b/website/blog/2024-10-23-release-0.76-new-architecture.mdx @@ -206,7 +206,7 @@ This change was announced earlier in the year when 0.75 [was released](/blog/202 ## Acknowledgements -React Native 0.76 contains over [1070 commits](https://github.com/facebook/react-native/compare/v0.75.4...v0.76.0) from 156 contributors. Thanks for all of your hard work! +React Native 0.76 contains over [1070 commits](https://github.com/react/react-native/compare/v0.75.4...v0.76.0) from 156 contributors. Thanks for all of your hard work! Thanks to all the additional authors that worked on documenting features in this release post: diff --git a/website/blog/2025-04-08-react-native-0.79.mdx b/website/blog/2025-04-08-react-native-0.79.mdx index e2246b0a9f1..1f5221073ea 100644 --- a/website/blog/2025-04-08-react-native-0.79.mdx +++ b/website/blog/2025-04-08-react-native-0.79.mdx @@ -25,7 +25,7 @@ This release ships with performance improvements on various fronts, as well as s ### Metro: Faster startup and package exports support -This release ships with [Metro 0.82](https://github.com/facebook/metro/releases/tag/v0.82.0).This version uses deferred hashing to improve the speed of first `yarn start` typically by over 3x (more in larger projects and monorepos) making your development experience and CI builds faster on a daily basis. +This release ships with [Metro 0.82](https://github.com/react/metro/releases/tag/v0.82.0).This version uses deferred hashing to improve the speed of first `yarn start` typically by over 3x (more in larger projects and monorepos) making your development experience and CI builds faster on a daily basis. ![metro startup comparison](../static/blog/assets/0.79-metro-startup-comparison.gif) @@ -41,7 +41,7 @@ In particular, we're aware of user reported incompatibilities for some popular p If you're encountering issues: -- Please update to the Metro [0.81.5 hotfix](https://github.com/facebook/metro/releases/tag/v0.81.5), or set [`resolver.unstable_enablePackageExports = false`](https://metrobundler.dev/docs/configuration/#unstable_enablepackageexports-experimental) to opt out. +- Please update to the Metro [0.81.5 hotfix](https://github.com/react/metro/releases/tag/v0.81.5), or set [`resolver.unstable_enablePackageExports = false`](https://metrobundler.dev/docs/configuration/#unstable_enablepackageexports-experimental) to opt out. - See [expo/expo#36551](https://github.com/expo/expo/discussions/36551) for affected packages and future updates. ::: @@ -157,7 +157,7 @@ Read more in [this dedicated post](https://github.com/react-native-community/dis As part of modernizing our JavaScript codebase, we've updated a number of implementation modules within `react-native` to consistently use `export` syntax instead of `module.exports`. -We've updated around **46 APIs** in total, which can be found in the [changelog](https://github.com/facebook/react-native/blob/main/CHANGELOG.md#v0790). +We've updated around **46 APIs** in total, which can be found in the [changelog](https://github.com/react/react-native/blob/main/CHANGELOG.md#v0790). This change has a subtle impact on existing imports: @@ -223,9 +223,9 @@ This list contains a series of other breaking changes we suspect could have a mi - **Invalid unitless lengths in box shadows and filters**: - In order to make React Native more compliant with the CSS/Web specs, we now don’t support anymore unitless lengths in `box-shadow` and `filter`. This means that if you were using a `box-shadow` of `1 1 black` we won’t be rendering. You should instead specify units such as `1px 1px black` - **Remove incorrect hwb() syntax support from normalize-color:** - - In order to make React Native more compliant with the CSS/Web specs, we now restrict some invalid syntax for `hwb()`. Historically React Native used to support comma separated values (e.g. `hwb(0, 0%, 100%)`) which we now don’t support anymore (you should migrate to `hwb(0 0% 100%)`). You can read more about this change [here](https://github.com/facebook/react-native/commit/676359efd9e478d69ad430cff213acc87b273580). + - In order to make React Native more compliant with the CSS/Web specs, we now restrict some invalid syntax for `hwb()`. Historically React Native used to support comma separated values (e.g. `hwb(0, 0%, 100%)`) which we now don’t support anymore (you should migrate to `hwb(0 0% 100%)`). You can read more about this change [here](https://github.com/react/react-native/commit/676359efd9e478d69ad430cff213acc87b273580). - **Libraries/Core/ExceptionsManager exports update** - - As part of our effort to modernize the React Native JS API, we updated [ExceptionsManager](https://github.com/facebook/react-native/blob/0.79-stable/packages/react-native/Libraries/Core/ExceptionsManager.js) to now export a default `ExceptionsManager` object, and `SyntheticError` as a secondary export. + - As part of our effort to modernize the React Native JS API, we updated [ExceptionsManager](https://github.com/react/react-native/blob/0.79-stable/packages/react-native/Libraries/Core/ExceptionsManager.js) to now export a default `ExceptionsManager` object, and `SyntheticError` as a secondary export. ## Acknowledgements @@ -235,7 +235,7 @@ We want to send a thank you to those community members that shipped significant - [Marc Rousavy](https://github.com/mrousavy) for developing and documenting the “Android: Faster App Startup” feature - [Kudo Chien](https://github.com/Kudo) and [Oskar Kwaśniewski](https://github.com/okwasniewski)for working on the `@react-native-community/javascriptcore` package and writing the “JSC moving to Community Package” section -- [James Lawson](https://github.com/facebook/metro/pull/1302) for adding support for import subpath resolution [in Metro](https://github.com/facebook/metro/pull/1302). +- [James Lawson](https://github.com/react/metro/pull/1302) for adding support for import subpath resolution [in Metro](https://github.com/react/metro/pull/1302). Moreover, we also want to thank the additional authors that worked on documenting features in this release post: diff --git a/website/blog/2025-06-12-react-native-0.80.mdx b/website/blog/2025-06-12-react-native-0.80.mdx index c8940d01e10..cd8af844a93 100644 --- a/website/blog/2025-06-12-react-native-0.80.mdx +++ b/website/blog/2025-06-12-react-native-0.80.mdx @@ -83,7 +83,7 @@ You can learn more about those changes in the talk "Life After Legacy: The New A This release of React Native ships with the latest React stable: 19.1.0 -You can read about all the new features and bugfixes introduced in React 19.1.0 in the [release description](https://github.com/facebook/react/releases/tag/v19.1.0). +You can read about all the new features and bugfixes introduced in React 19.1.0 in the [release description](https://github.com/react/react/releases/tag/v19.1.0). :::warning @@ -105,7 +105,7 @@ During the release process of React Native, we are producing an XCFramework call We experimented and benchmarked how much time this initial prebuild for iOS is saving and, in our benchmarks, run on an M4 machine, iOS builds are roughly 12% faster with the prebuild rather than by building from source. -From our experience, we also observed that several bug reports from users are caused by build issues related with React Native’s 3rd party dependencies (example [#39568](https://github.com/facebook/react-native/issues/39568)). +From our experience, we also observed that several bug reports from users are caused by build issues related with React Native’s 3rd party dependencies (example [#39568](https://github.com/react/react-native/issues/39568)). Prebuilding the 3rd party dependencies allows us to build them for you, so that you won’t face these build issues anymore. Note that we are not pre-building the whole React Native: we are only pre-building the libraries Meta does not directly control, such as Folly and GLog. @@ -170,7 +170,7 @@ As part of our JS Stable API changes, we've introduced an [`"exports"` field](ht In 0.80, this mapping continues to expose **all JavaScript subpaths** by default, and therefore should not be a major breaking change. At the same time, this may subtly affect how modules within the `react-native` package are resolved: -- Under Metro, [platform-specific extensions](https://metrobundler.dev/docs/package-exports#replacing-platform-specific-extensions) will not be automatically expanded against `"exports"` matches. We've provided a number of shim modules to accommodate this ([#50426](https://github.com/facebook/react-native/pull/50426)). +- Under Metro, [platform-specific extensions](https://metrobundler.dev/docs/package-exports#replacing-platform-specific-extensions) will not be automatically expanded against `"exports"` matches. We've provided a number of shim modules to accommodate this ([#50426](https://github.com/react/react-native/pull/50426)). - Under Jest, the ability to mock deep imports may be altered, which may require updating tests. ### Other Breaking Changes @@ -179,7 +179,7 @@ This list contains a series of other breaking changes we suspect could have a mi ### JS -- We bumped `eslint-plugin-react-hooks` from v4.6.0 to v5.2.0 (see full [changelog here](https://github.com/facebook/react/blob/main/packages/eslint-plugin-react-hooks/CHANGELOG.md)). The `react-hooks` lint rules may produce new error signals which you will have to fix or suppress +- We bumped `eslint-plugin-react-hooks` from v4.6.0 to v5.2.0 (see full [changelog here](https://github.com/react/react/blob/main/packages/eslint-plugin-react-hooks/CHANGELOG.md)). The `react-hooks` lint rules may produce new error signals which you will have to fix or suppress ### Android @@ -199,7 +199,7 @@ This list contains a series of other breaking changes we suspect could have a mi - We deleted the `RCTFloorPixelValue` field from RCTUtils.h - The `RCTFloorPixelValue` method was not used in React Native and we removed it altogether. -Further smaller breaking changes are listed [in the CHANGELOG for 0.80](https://github.com/facebook/react-native/blob/main/CHANGELOG.md#v0800). +Further smaller breaking changes are listed [in the CHANGELOG for 0.80](https://github.com/react/react-native/blob/main/CHANGELOG.md#v0800). ## Acknowledgements diff --git a/website/blog/2025-08-12-react-native-0.81.mdx b/website/blog/2025-08-12-react-native-0.81.mdx index 25574394970..c41e946c017 100644 --- a/website/blog/2025-08-12-react-native-0.81.mdx +++ b/website/blog/2025-08-12-react-native-0.81.mdx @@ -120,13 +120,13 @@ This list contains a series of other breaking changes we suspect could have a mi - We made several classes internal. Those classes are not part of the public API and should not be accessed. We already notified or submitted patches to the affected libraries: - `com.facebook.react.fabric.mounting.MountingManager` - `com.facebook.react.views.text.TextLayoutManager` -- We moved the `textAlignVertical` [native prop](https://github.com/facebook/react-native/blob/841866c35401ae05fa9c6a2a3e9b42714bbd291e/packages/react-native/ReactCommon/react/renderer/attributedstring/ParagraphAttributes.h#L83) from `TextAttribute.h` to `ParagraphAttribute.h` +- We moved the `textAlignVertical` [native prop](https://github.com/react/react-native/blob/841866c35401ae05fa9c6a2a3e9b42714bbd291e/packages/react-native/ReactCommon/react/renderer/attributedstring/ParagraphAttributes.h#L83) from `TextAttribute.h` to `ParagraphAttribute.h` - The prop `textAlignVertical` only affects the top most text view (paragraph view). Yet, it exists in text attribute props nonetheless. To better reflect this platform limitation it was moved to paragraph props. - This change is **not** affecting the JS API of the `` component. - You will be affected by this change only if you implement a Fabric component that interacts with the C++ Text API. - If you’re affected by this change, you can replace `TextAttributes.h` with `ParagraphAttribute.h` in your code -Read the full list of breaking changes [in the CHANGELOG for 0.81](https://github.com/facebook/react-native/blob/main/CHANGELOG.md#v0810). +Read the full list of breaking changes [in the CHANGELOG for 0.81](https://github.com/react/react-native/blob/main/CHANGELOG.md#v0810). ## Acknowledgements diff --git a/website/blog/2025-10-08-react-native-0.82.mdx b/website/blog/2025-10-08-react-native-0.82.mdx index 4a4175c3b7a..a5e5209dc1c 100644 --- a/website/blog/2025-10-08-react-native-0.82.mdx +++ b/website/blog/2025-10-08-react-native-0.82.mdx @@ -45,7 +45,7 @@ Legacy Architecture. If an incompatible 3rd party dependency is blocking you from migrating to the New Architecture, we recommend you reach out to the library maintainers directly. -If a bug in React Native core is blocking you from migrating, we recommend you reach out to us [through our issue tracker](https://github.com/facebook/react-native/issues/new/choose). +If a bug in React Native core is blocking you from migrating, we recommend you reach out to us [through our issue tracker](https://github.com/react/react-native/issues/new/choose). ### Interop Layers & 3P library compatibility @@ -144,7 +144,7 @@ HermesInternal.getRuntimeProperties()['OSS Release Version']; ## React 19.1.1 -This release of React Native ships with the latest React stable: [React 19.1.1](https://github.com/facebook/react/releases/tag/v19.1.1). +This release of React Native ships with the latest React stable: [React 19.1.1](https://github.com/react/react/releases/tag/v19.1.1). This release of React contains full support for owner stacks for React Native. Back in React Native 0.80, when we shipped support for 19.1.0, we [mentioned](/blog/2025/06/12/react-native-0.80#react-1910) that owner stacks were not fully supported if you were using the [`@babel/plugin-transform-function-name`](https://babeljs.io/docs/babel-plugin-transform-function-name) Babel plugin. This release lifts this restriction and enables owner stacks for all React Native users. @@ -286,7 +286,7 @@ Due to a bug, these were completely swallowed and ignored previously, so please - The correct include for those headers is `#include ` and `#include `. - You should not use the old includes under `#import ` -Read the full list of breaking changes in the [CHANGELOG for 0.82](https://github.com/facebook/react-native/blob/main/CHANGELOG.md#v0820). +Read the full list of breaking changes in the [CHANGELOG for 0.82](https://github.com/react/react-native/blob/main/CHANGELOG.md#v0820). ## Acknowledgements diff --git a/website/blog/2025-12-10-react-native-0.83.mdx b/website/blog/2025-12-10-react-native-0.83.mdx index 4093cc1e2d6..e338f601e32 100644 --- a/website/blog/2025-12-10-react-native-0.83.mdx +++ b/website/blog/2025-12-10-react-native-0.83.mdx @@ -122,7 +122,7 @@ Previously, React Native DevTools launched in a browser window and required Chro As part of our effort to bring web APIs to React Native, we have added support for [`IntersectionObserver`](https://developer.mozilla.org/en-US/docs/Web/API/Intersection_Observer_API) in the [canary release](https://reactnative.dev/docs/next/releases/release-levels#how-to-initialize-react-native-using-canary--experimental) for 0.83. -`IntersectionObserver` allows you to asynchronously observe layout intersections between a target element and its ancestor. Please see our [API](https://reactnative.dev/docs/next/global-intersectionobserver) and [implementation docs](https://github.com/facebook/react-native/blob/main/packages/react-native/src/private/webapis/intersectionobserver/__docs__/README.md) for more details. We've also included [examples](https://github.com/facebook/react-native/tree/main/packages/rn-tester/js/examples/IntersectionObserver) in RNTester. +`IntersectionObserver` allows you to asynchronously observe layout intersections between a target element and its ancestor. Please see our [API](https://reactnative.dev/docs/next/global-intersectionobserver) and [implementation docs](https://github.com/react/react-native/blob/main/packages/react-native/src/private/webapis/intersectionobserver/__docs__/README.md) for more details. We've also included [examples](https://github.com/react/react-native/tree/main/packages/rn-tester/js/examples/IntersectionObserver) in RNTester.

-| Branch | React | Hermes (Legacy) | Hermes V1 | Yoga | React Native
DevTools frontend | -| ------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| 0.88-stable | `19.2.3` | — | `v260318099.0.2` | [`98300847`](https://github.com/facebook/yoga/commit/983008479) | `chromium/7103`
(Chrome 136) | -| 0.87-stable | `19.2.3` | — | `v250829098.0.16` | [`ee004e6b`](https://github.com/facebook/yoga/commit/ee004e6b3) | `chromium/7103`
(Chrome 136) | -| 0.86-stable | `19.2.3` | `v0.17.0` | `v250829098.0.16` | [`c76b52b2`](https://github.com/facebook/yoga/commit/c76b52b20) | `chromium/7103`
(Chrome 136) | -| 0.85-stable | `19.2.3` | `v0.16.0` | `v250829098.0.10` | [`cfdacac0`](https://github.com/facebook/yoga/commit/cfdacac0e) | `chromium/7103`
(Chrome 136) | -| 0.84-stable | `19.2.3` | `v0.15.1` | `v250829098.0.9` | [`8ba025e8`](https://github.com/facebook/yoga/commit/8ba025e8b) | `chromium/7103`
(Chrome 136) | -| 0.83-stable | `19.2.0` | `v0.14.1` | `v250829098.0.4` | [`69e87a4e`](https://github.com/facebook/yoga/commit/69e87a4e1) | `chromium/7103`
(Chrome 136) | -| 0.82-stable | `19.1.1` | `2025-09-01-RNv0.82.0` | `76dc3793` | [`9f2a9476`](https://github.com/facebook/yoga/commit/9f2a9476e) | `chromium/7103`
(Chrome 136) | -| 0.81-stable | `19.1.4` | `2025-07-07-RNv0.81.0` | — | [`c7c85621`](https://github.com/facebook/yoga/commit/c7c85621f) | `chromium/7103`
(Chrome 136) | -| 0.80-stable | `19.1.0` | `2025-07-24-RNv0.80.2` | — | [`51e60950`](https://github.com/facebook/yoga/commit/51e609500) | `chromium/6613`
(Chrome 128) | -| 0.79-stable | `19.0.0` | `2025-06-04-RNv0.79.3` | — | [`91997d6c`](https://github.com/facebook/yoga/commit/91997d6cd) | `chromium/6613`
(Chrome 128) | -| 0.78-stable | `19.0.0` | `2025-01-13-RNv0.78.0` | — | [`91997d6c`](https://github.com/facebook/yoga/commit/91997d6cd) | `chromium/6613`
(Chrome 128) | +| Branch | React | Hermes (Legacy) | Hermes V1 | Yoga | React Native
DevTools frontend | +| ------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| 0.88-stable | `19.2.3` | — | `v260318099.0.2` | [`98300847`](https://github.com/react/yoga/commit/983008479) | `chromium/7103`
(Chrome 136) | +| 0.87-stable | `19.2.3` | — | `v250829098.0.16` | [`ee004e6b`](https://github.com/react/yoga/commit/ee004e6b3) | `chromium/7103`
(Chrome 136) | +| 0.86-stable | `19.2.3` | `v0.17.0` | `v250829098.0.16` | [`c76b52b2`](https://github.com/react/yoga/commit/c76b52b20) | `chromium/7103`
(Chrome 136) | +| 0.85-stable | `19.2.3` | `v0.16.0` | `v250829098.0.10` | [`cfdacac0`](https://github.com/react/yoga/commit/cfdacac0e) | `chromium/7103`
(Chrome 136) | +| 0.84-stable | `19.2.3` | `v0.15.1` | `v250829098.0.9` | [`8ba025e8`](https://github.com/react/yoga/commit/8ba025e8b) | `chromium/7103`
(Chrome 136) | +| 0.83-stable | `19.2.0` | `v0.14.1` | `v250829098.0.4` | [`69e87a4e`](https://github.com/react/yoga/commit/69e87a4e1) | `chromium/7103`
(Chrome 136) | +| 0.82-stable | `19.1.1` | `2025-09-01-RNv0.82.0` | `76dc3793` | [`9f2a9476`](https://github.com/react/yoga/commit/9f2a9476e) | `chromium/7103`
(Chrome 136) | +| 0.81-stable | `19.1.4` | `2025-07-07-RNv0.81.0` | — | [`c7c85621`](https://github.com/react/yoga/commit/c7c85621f) | `chromium/7103`
(Chrome 136) | +| 0.80-stable | `19.1.0` | `2025-07-24-RNv0.80.2` | — | [`51e60950`](https://github.com/react/yoga/commit/51e609500) | `chromium/6613`
(Chrome 128) | +| 0.79-stable | `19.0.0` | `2025-06-04-RNv0.79.3` | — | [`91997d6c`](https://github.com/react/yoga/commit/91997d6cd) | `chromium/6613`
(Chrome 128) | +| 0.78-stable | `19.0.0` | `2025-01-13-RNv0.78.0` | — | [`91997d6c`](https://github.com/react/yoga/commit/91997d6cd) | `chromium/6613`
(Chrome 128) |
diff --git a/website/versioned_docs/version-0.77/_integration-with-existing-apps-ios.md b/website/versioned_docs/version-0.77/_integration-with-existing-apps-ios.md index e822392efbe..f56ed3b100b 100644 --- a/website/versioned_docs/version-0.77/_integration-with-existing-apps-ios.md +++ b/website/versioned_docs/version-0.77/_integration-with-existing-apps-ios.md @@ -535,7 +535,7 @@ class ReactViewController: UIViewController { -4. Make sure to disable the Sandbox scripting. To achieve this, in Xcode, click on your app, then on build settings. Filter for script and set the `User Script Sandboxing` to `NO`. This step is needed to properly switch between the Debug and Release version of the [Hermes engine](https://github.com/facebook/hermes/blob/main/README.md) that we ship with React Native. +4. Make sure to disable the Sandbox scripting. To achieve this, in Xcode, click on your app, then on build settings. Filter for script and set the `User Script Sandboxing` to `NO`. This step is needed to properly switch between the Debug and Release version of the [Hermes engine](https://github.com/meta/hermes/blob/main/README.md) that we ship with React Native. ![Disable Sandboxing](/docs/assets/disable-sandboxing.png); diff --git a/website/versioned_docs/version-0.77/animated.md b/website/versioned_docs/version-0.77/animated.md index bc8b57ecff9..d90258ec340 100644 --- a/website/versioned_docs/version-0.77/animated.md +++ b/website/versioned_docs/version-0.77/animated.md @@ -249,7 +249,7 @@ Config is an object that may have the following options. Note that you can only define one of bounciness/speed, tension/friction, or stiffness/damping/mass, but not more than one: -The friction/tension or bounciness/speed options match the spring model in [`Facebook Pop`](https://github.com/facebook/pop), [Rebound](https://github.com/facebookarchive/rebound), and [Origami](https://origami.design/). +The friction/tension or bounciness/speed options match the spring model in [`Facebook Pop`](https://github.com/facebookarchive/pop), [Rebound](https://github.com/facebookarchive/rebound), and [Origami](https://origami.design/). - `friction`: Controls "bounciness"/overshoot. Default 7. - `tension`: Controls speed. Default 40. diff --git a/website/versioned_docs/version-0.77/animations.md b/website/versioned_docs/version-0.77/animations.md index ef029eeabb7..b6800d61052 100644 --- a/website/versioned_docs/version-0.77/animations.md +++ b/website/versioned_docs/version-0.77/animations.md @@ -549,7 +549,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/main/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/react/react-native/blob/main/packages/rn-tester/), then loading the Native Animated Example. You can also take a look at the [source code](https://github.com/react/react-native/blob/master/packages/rn-tester/js/examples/NativeAnimation/NativeAnimationsExample.js) to learn how these examples were produced. #### Caveats @@ -577,8 +577,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/react/react-native/tree/main/packages/rn-tester/js/examples/AnimatedGratuitousApp) +- [NativeAnimationsExample](https://github.com/react/react-native/blob/main/packages/rn-tester/js/examples/NativeAnimation/NativeAnimationsExample.js) ## `LayoutAnimation` API @@ -658,7 +658,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/main/packages/react-native/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/react/react-native/blob/main/packages/react-native/Libraries/LayoutAnimation/LayoutAnimation.js) for more information. ## Additional notes diff --git a/website/versioned_docs/version-0.77/build-speed.md b/website/versioned_docs/version-0.77/build-speed.md index 500af0b1ce2..c0f49d1f564 100644 --- a/website/versioned_docs/version-0.77/build-speed.md +++ b/website/versioned_docs/version-0.77/build-speed.md @@ -39,7 +39,7 @@ $ ./gradlew :app:assembleDebug -PreactNativeArchitectures=x86,x86_64 This can be useful if you wish to build your Android App on a CI and use a matrix to parallelize the build of the different architectures. -If you wish, you can also override this value locally, using the `gradle.properties` file you have in the [top-level folder](https://github.com/facebook/react-native/blob/19cf70266eb8ca151aa0cc46ac4c09cb987b2ceb/template/android/gradle.properties#L30-L33) of your project: +If you wish, you can also override this value locally, using the `gradle.properties` file you have in the [top-level folder](https://github.com/react/react-native/blob/19cf70266eb8ca151aa0cc46ac4c09cb987b2ceb/template/android/gradle.properties#L30-L33) of your project: ``` # Use this property to specify which architecture you want to build. @@ -102,7 +102,7 @@ Open `ios/Podfile` in your editor and uncomment the `ccache_enabled` line. ```ruby post_install do |installer| - # https://github.com/facebook/react-native/blob/main/packages/react-native/scripts/react_native_pods.rb#L197-L202 + # https://github.com/react/react-native/blob/main/packages/react-native/scripts/react_native_pods.rb#L197-L202 react_native_post_install( installer, config[:reactNativePath], diff --git a/website/versioned_docs/version-0.77/button.md b/website/versioned_docs/version-0.77/button.md index cfed6819d28..740f8572435 100644 --- a/website/versioned_docs/version-0.77/button.md +++ b/website/versioned_docs/version-0.77/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 [Pressable](pressable). For inspiration, look at the [source code for the Button component](https://github.com/facebook/react-native/blob/main/packages/react-native/Libraries/Components/Button.js). +If this button doesn't look right for your app, you can build your own button using [Pressable](pressable). For inspiration, look at the [source code for the Button component](https://github.com/react/react-native/blob/main/packages/react-native/Libraries/Components/Button.js). ```tsx