Skip to content

Commit

Permalink
Addressing review feedback about adding some additional resources
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryan Turner authored and Ryan Turner committed Jul 2, 2019
1 parent 6ca953e commit 7a82a5e
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions website/blog/2020-02-31-version-60.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,34 +28,32 @@ React Native's start screen has been updated! Thank you to the many contributors
>
> [matt-oakes](https://github.com/matt-oakes) on [discussions-and-proposals](https://github.com/react-native-community/discussions-and-proposals/issues/129)
While your own native code will need to be migrated by you, [@mikehardy](https://github.com/mikehardy), [@cawfree](https://github.com/cawfree), and [@m4tt72](https://github.com/m4tt72) built a [clever tool named "jetifier"](https://github.com/mikehardy/jetifier) to patch your `node_modules`. Library maintainers will need to upgrade, but this tool will help while waiting. So if you find errors related to AndroidX migration, give this a shot.
While your own native code will need to be migrated by you, [@mikehardy](https://github.com/mikehardy), [@cawfree](https://github.com/cawfree), and [@m4tt72](https://github.com/m4tt72) built a [clever tool named "jetifier"](https://github.com/mikehardy/jetifier) to patch your `node_modules`. Library maintainers will need to upgrade, but this tool provide you with a temporary solution while giving them time to release an AndroidX version. So if you find errors related to AndroidX migration, give this a shot.

## 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. 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 to your `Podfile` as part of the upgrade to 0.60 to bring this exciting support.
[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 to your `Podfile` as part of the upgrade to 0.60 to bring this exciting support. Note that we are aware of a compatability issue with `use_frameworks!`, and we're tracking an [issue](https://github.com/facebook/react-native/issues/25349) with workarounds and a future patch.

## Lean Core Removals

**WebView** and **NetInfo** were previously extracted into separate repositories, and in 0.60 we’ve finished migrating them out of the React Native repository. Additionally, in response to community feedback about new App Store policy, **Geolocation** has been extracted. If you haven’t already, complete your migration by adding dependencies to [react-native-webview](https://github.com/react-native-community/react-native-webview), [@react-native-community/netinfo](https://github.com/react-native-community/react-native-netinfo), and [@react-native-community/geolocation](https://github.com/react-native-community/react-native-geolocation). Maintainers have made more than 100 commits to these repositories since extraction and we’re excited to see the community’s support!
**WebView** and **NetInfo** were previously extracted into separate repositories, and in 0.60 we’ve finished migrating them out of the React Native repository. Additionally, in response to community feedback about new App Store policy, **Geolocation** has been extracted. If you haven’t already, complete your migration by adding dependencies to [react-native-webview](https://github.com/react-native-community/react-native-webview), [@react-native-community/netinfo](https://github.com/react-native-community/react-native-netinfo), and [@react-native-community/geolocation](https://github.com/react-native-community/react-native-geolocation). If you'd like an automated solution, consider using [rn-upgrade-deprecated-modules](https://github.com/lucasbento/rn-update-deprecated-modules). Maintainers have made more than 100 commits to these repositories since extraction and we’re excited to see the community’s support!

## Native Modules are now Autolinked

The team working on the [React Native CLI](https://github.com/react-native-community/cli) has introduced major improvements to native module linking called [autolinking](https://github.com/react-native-community/cli/blob/master/docs/autolinking.md)! Most scenarios will not require the use of `react-native link` anymore. At the same time, the team overhauled the linking process in general. Let us know what you think using the hashtag [#autolinkingInRN](https://twitter.com/intent/tweet?hashtags=autolinkingInRN).

## Upgrade Helper

[@lucasbento](https://github.com/lucasbento), [@pvinis](https://github.com/pvinis), [@kelset](https://github.com/kelset), and [@watadarkstar](https://github.com/watadarkstar) have built a great tool called [Upgrade Helper](https://react-native-community.github.io/upgrade-helper/) to make the upgrade process simpler. It helps React Native users with brownfield apps or complex customizations to see what's changed between versions. Take a look at the [upgrade from 0.59.9 to 0.60.0](https://react-native-community.github.io/upgrade-helper/?from=0.59.9&to=0.60.0) and try it out today for your upgrade path!
[@lucasbento](https://github.com/lucasbento), [@pvinis](https://github.com/pvinis), [@kelset](https://github.com/kelset), and [@watadarkstar](https://github.com/watadarkstar) have built a great tool called [Upgrade Helper](https://react-native-community.github.io/upgrade-helper/) to make the upgrade process simpler. It helps React Native users with brownfield apps or complex customizations to see what's changed between versions. Take a look at the [updated upgrading docs](https://facebook.github.io/react-native/docs/upgrading) and try it out today for your upgrade path!

![Upgrade Helper cleanly and easily shows the changes needed to migrate to a different version of React Native](/react-native/blog/assets/0.60-upgrade-helper.png)

## A Note to Library Maintainers

Changes for AndroidX will almost certainly require updates to your library, so be sure to include support soon. If you're not able to upgrade yet, consider checking your library against the jetifier to confirm that users are able to patch your library at build time.

Depending on how your library was previously integrated, you may also need to make some changes. Check the [dependencies](https://github.com/react-native-community/cli/blob/master/docs/dependencies.md) guide from the CLI for information on how to define your dependency interface.
Review the [autolinking](https://github.com/react-native-community/cli/blob/master/docs/autolinking.md) docs to update your configs and readme. Depending on how your library was previously integrated, you may also need to make some additional changes. Check the [dependencies](https://github.com/react-native-community/cli/blob/master/docs/dependencies.md) guide from the CLI for information on how to define your dependency interface.

## Thanks

While these are the highlights that we noted, there are many others to be excited about. To see all the updates, take a look at the [changelog](https://github.com/react-native-community/react-native-releases/blob/master/CHANGELOG.md). As always, stay tuned for more exciting changes in the future. Enjoy 0.60 in the meantime.

[Ryan](https://github.com/turnrye) and the whole [React Native core team](https://twitter.com/reactnative)
While these are the highlights that we noted, there are many others to be excited about. To see all the updates, take a look at the [changelog](https://github.com/react-native-community/react-native-releases/blob/master/CHANGELOG.md). As always, stay tuned for more news. Enjoy 0.60 in the meantime!

0 comments on commit 7a82a5e

Please sign in to comment.