React Native has made a big release recently. It’s react native 0.59. Almost the highly anticipated changes are made in the technology this time, so it’s something you should know about. And in case you are going to hire react native developers, make sure that your resource is well-acquainted with the latest changes. If not so, you might end up getting a solution delivered, which is not fully updated.
Here is a quick list of changes, deployed in version Reach Native 0.59 –
1. React Hooks
Hooks are finally here. Creating small modules and reuse them throughout the code is what these hooks are all about. No, it is not the replacement of classes, but will help developers in re-using the stateful logics across the components without changing the component hierarchy in your code. With its help, the complexity of components can be reduced surely.
2. Upgradation in JSC and 64-bit support for Android
3. App Optimization with Inline Requires
This time, React native developer community has also paid attention to improving the app launch speed and therefore, have added this feature ‘Inline Requires’. Inline Requires does not slow down the launch of the app to load all the resources needed by an application. Rather, it loads the resources as required. The result is a faster app launch.
This feature will cause a significant improvement in those react native applications which has a complex architecture. With the help of Inline Requires, the react native Bundler Metro can now easily identify the component to be selected while lazy-loading. So, if your application is similar. Make sure that you hire react native developers knowing about this feature and how to make use of it.
4. Enhancements in CLI (Command Line Interface)
CLI tools are now put in a separate repository in the react project. From now on, they will have their separate maintainers and therefore, which improve fast. Log format has been improved too.
5. Lean Core – Yes, it’s here.
react is a big project with vast scope. With the upgrades and improvements, its repository was growing into a complicated codebase. For better management and cleaning of the code base, Lean Core has finally been introduced. The main purpose of doing so is to organize the code in a better manner.
Additionally, a few components have been depreciated with this release as they have migrates to a particular library for better maintenance.
Upgrading your Existing react native Application to 0.59
Keeping your projects updated is the best way to achieve better performance.
This is a major release which has been cleaned up after Google’s recent recommendations. Also, there are a few depreciations and migrations as we’ve told in the article earlier. So, it becomes even more important to upgrade your react native app.
You can simply use the command rn-diff-purge to check the difference in your current react native version and the latest one. Then, implement the changes manually. If you are not sure that you could do it without breaking down the app, it is better that you hire react native developer to do so.