Book Image

React Native Cookbook

By : Crysfel Villa, Stan Bershadskiy
Book Image

React Native Cookbook

By: Crysfel Villa, Stan Bershadskiy

Overview of this book

<p>React has taken the web development world by storm, and it is only natural that the unique architecture and its ecosystem of third-party support be applied to native application development. This book will take you through the basics of React Native development all the way through to some more advanced components.</p> <p>This book covers topics in React Native ranging from adding basic UI components to successfully deploying for multiple target platforms. The book follows a top-down approach beginning with building rich user interfaces. These UIs will be created with both built-in and custom components that you will create, style, and animate.</p> <p>You will then learn about different strategies for working with data, including leveraging the popular Redux library and optimizing the performance of the application. Then, you will step further into exposing native device functionality. Finally, we will discuss how to put your application into production and maintain its reliability.</p>
Table of Contents (19 chapters)
React Native Cookbook
Credits
Foreword
About the Authors
About the Reviewer
www.PacktPub.com
Customer Feedback
Preface

Boosting the performance of our app


The basic premise behind React Native is using JavaScript to build a truly native app. This is different than, say, an Ionic or any other Cordova hybrid app that wraps a web application written in JavaScript and tries to act like a truly native application. Those web applications only have access to native APIs to perform processing, but cannot render native views inside their application. Thus, React Native is inherently faster than hybrid web applications. Since it's so performant out of the gate and we have discussed some excellent ways to speed up specific parts of our application in this chapter, we generally do not have to worry about overall performance as much as we would with a hybrid web app. Still, though, it may not hurt to squeeze out just a little bit more. This recipe will provide some quick wins that we can use to have a faster React Native application.

Getting ready

This recipe is applicable to any React Native application.

How to do it....