Book Image

React Native Cookbook. - Second Edition

By : Daniel Ward
4 (1)
Book Image

React Native Cookbook. - Second Edition

4 (1)
By: Daniel Ward

Overview of this book

If you are a developer looking to create mobile applications with maximized code reusability and minimized cost, React Native is what you need. With this practical guide, you’ll be able to build attractive UIs, tackle common problems in mobile development, and achieve improved performance in mobile environments. This book starts by covering the common techniques for React Native customization and helps you set up your development platforms. Over the course of the book, you’ll work through a wide variety of recipes that help you create, style, and animate your apps with built-in React Native and custom third-party components. You’ll also develop real-world browser-based authentication, build a fully functional audio player, and integrate Google Maps in your apps. This book will help you explore different strategies for working with data, including leveraging the popular Redux library and optimizing your app’s dataflow. You’ll also learn how to write native device functionality for new and existing React Native projects and how app deployment works. By the end of this book, you'll be equipped with tips and tricks to write efficient code and have the skills to build full iOS and Android applications using React Native.
Table of Contents (17 chapters)

What this book covers

Chapter 1, Setting Up Your Environment, covers the different software we'll be installing to get started on the development of React Native apps.

Chapter 2, Creating a Simple React Native App, covers the basics of building layouts and navigation. The recipes in the chapter serve as an introduction to React Native development, and cover the basic functionality found in most any mobile app.

Chapter 3, Implementing Complex User Interfaces – Part I, covers features including custom fonts and custom reusable themes.

Chapter 4, Implementing Complex User Interfaces – Part II, continues with more recipes based on UI features. It covers features such as handling screen orientation changes and building user forms.

Chapter 5, Implementing Complex User Interfaces – Part III, covers other common features you'll likely need when building complex UIs. This chapter covers adding map support, implementing browser-based authentication, and creating an audio player.

Chapter 6, Adding Basic Animations to Your App, covers the basics of creating animations.

Chapter 7, Adding Advanced Animations to Your App, continues building on the previous chapter, with more advanced features.

Chapter 8, Working with Application Logic and Data, introduces us to building apps that handle data. We'll cover topics including storing data locally and handling network loss gracefully.

Chapter 9, Implementing Redux, covers implementing the Flux data patter using the Redux library. Redux is a battle-tested way to handle data flow in React apps, and works just as well in React Native.

Chapter 10, App Workflow and Third-Party Plugins, covers the different methods a developer can use to build an app, along with how to build apps using open source code. This will also cover the differences between building applications with pure React Native (using the React Native CLI) and building applications with Expo (a comprehensive development).

Chapter 11, Adding Native Functionalities – Part I, covers the basics of working with native iOS and Android code in a React Native app.

Chapter 12, Adding Native Functionalities – Part II, covers more complex techniques for communicating between the React Native and native layers.

Chapter 13, Integration with Native Applications, covers integrating React Native with an existing native app. Not every app can be built from scratch. These recipes should be helpful for developers who need to integrate their work with an app already in the App Store.

Chapter 14, Deploying Your App, covers the basic process of deploying a React Native app, as well as details for using HockeyApp to track the metrics of your app.

Chapter 15, Optimizing the Performance of Your App, covers some tips, tricks, and best practices for writing performant React Native code.