Sunday, March 12, 2023
HomeReactSaying React Native 0.69 · React Native

Saying React Native 0.69 · React Native


We’re excited to launch a brand new model of React Native, 0.69.0. This model comes with a number of enhancements for the New Structure of React Native and new options: React 18 help & bundled Hermes. Learn on to be taught extra!

Sections

React 18

We’re delighted to share with you that React Native 0.69 is the primary launch to help React 18. React 18 has introduced plenty of enhancements, like new hooks corresponding to useId. Moreover, React 18 consists of new concurrency options corresponding to useTransition or full Suspense help.

On React Native 0.69, React 18 is enabled by default. Nevertheless, if in case you have not migrated to the New Structure, you’ll solely be capable to leverage the options that do not use concurrent rendering and concurrent options. The New Structure has been constructed with concurrent rendering in thoughts however we can’t add that help for the previous structure.

You may be taught extra in regards to the React 18 help in React Native right here.

Bundled Hermes

Earlier than this launch, Hermes and React Native had been launched individually. That led to confusion on which model of Hermes is suitable with which model of React Native. To treatment this subject, beginning with React Native 0.69 we shall be transport a suitable model of Hermes alongside React Native. Making this transformation will make utilizing Hermes in React Native far more secure.

Utilizing the correct model of Hermes is dealt with by React Native, nevertheless, ensure to comply with the steps within the improve helper to make sure the mixing works as meant. If you do not have Hermes enabled already, you possibly can comply with the steps right here to take action. Whereas we’ll proceed supporting different JavaScript engines, we advocate everybody emigrate to Hermes to have the very best expertise and to ensure we will help you higher.

Observe that customers on the New Structure on Android might want to construct Hermes from supply. For constructing Hermes from supply, Home windows customers might want to moreover comply with these steps.

In case you are to be taught extra about how React Native bundles Hermes works below the hood, you possibly can try the deep-dive documentation right here.

New Structure

We’re persevering with the roll-out of the New Structure for each Android and iOS. If in case you have not migrated your app or library, but, comply with the steps right here. You can too learn the newest replace on instruments and assets for the New Structure to be taught extra.

Highlights of 0.69

As talked about above, a very powerful enhancements on this launch are centered round React 18 help and bundled Hermes. Nevertheless, there have been different notable modifications, together with:

Breaking modifications

There have additionally been a couple of breaking modifications:

  • React Native CLI has been bumped to a brand new main model of 8.0:
    • hyperlink and unlink instructions have been eliminated within the favour of autolinking
    • Deprecated initCompat has been eliminated, use init command as an alternative
    • Eliminated deprecated run-android properties
    • Eliminated set up and uninstall instructions
    • Eliminated property and hooks from react-native.config.js – you will have to take away these properties out of your config
    • podspecPath was faraway from the iOS dependency config
    • Eliminated --project-path choice from a run-ios
    • Modified iOS supply listing detection from on the lookout for an Xcode venture to on the lookout for a Podfile
  • Assist for console.disableYellowBox has been dropped
  • Already deprecated prop varieties have been eliminated (cdfddb4dad, 3e229f27bc, 10199b1581)
  • removeListener, deprecated since RN 0.65, was eliminated from Look
  • For those who had been utilizing SegmentedComponentIOS, you’ll now want to exchange it with the third-party library, for instance segmented-control (235f168574)

Upgrades

And we upgraded a few of our dependencies:

You may try the complete checklist of modifications within the changelog.

Acknowledgements

80 contributors with their 629 commits have helped to make this launch doable – thanks everybody!

We’re additionally grateful to the discharge testers, supporters, and everybody else who gave their suggestions to make sure this launch shall be as secure as doable.

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments