Book description
Improve your React Native mobile development skills or transition from web development to mobile development with this practical solution-packed guide
Key Features
- Learn strategies and techniques to face challenges in React Native mobile development head-on
- Leverage the best ways to use iOS and Android for React Native development while maximizing code reuse and cohesion
- Build engaging, performant user experiences with React Native
Book Description
If you are a developer looking to create mobile applications with maximized code reusability and minimized cost, then React Native is here to help. With this practical guide, you will be able to build attractive UIs, tackle common mobile development-related issues, and achieve improved performance in mobile environments.
This book starts with common techniques for React Native customization and helps you set up your development platforms. Over the course of the book, a wide variety of step-by-step recipes are designed with both built-in React Native and custom third-party components that you will create, style, and animate. You will create real-world browser-based authentication, build a fully functional audio player, and integrate with Google maps. You will also explore different strategies for working with data, including leveraging the popular Redux library and optimizing your app's dataflow. You will then get an introduction to writing native device functionality for new and already existing native projects.
Finally, you will learn how app deployment works, and tips and tricks for writing performant code. By the end of the book, you'll have gained enough knowledge to build full iOS and Android applications using React Native.
What you will learn
- Build UI features and components using React Native
- Create advanced animations for UI components
- Develop universal apps that run on phones and tablets
- Leverage Redux to manage application flow and data
- Expose both custom native UI components and application logic to React Native
- Employ open-source third-party plugins to create React Native apps more efficiently
Who this book is for
If you're a JavaScript developer looking for a practical guide with step-by-step tutorials for developing feature rich mobile apps using React Native, then this book is for you. Though not required, some experience working with React will help you more easily understand the React Native concepts covered in this book.
While React Native development can be done on a Windows machine, certain aspects, such as running your apps on iOS devices and in the iOS simulator, or editing native code with Xcode, can only be done with a Mac.
Table of contents
- Title Page
- Copyright and Credits
- About Packt
- Contributors
- Preface
- Setting Up Your Environment
- Creating a Simple React Native App
- Implementing Complex User Interfaces - Part I
- Implementing Complex User Interfaces - Part II
- Implementing Complex User Interfaces - Part III
- Adding Basic Animations to Your App
- Adding Advanced Animations to Your App
-
Working with Application Logic and Data
- Introduction
- Storing and retrieving data locally
- Retrieving data from a remote API
- Sending data to a remote API
- Establishing real-time communication with WebSockets
- Integrating persistent database functionality with Realm
- Masking the application upon network connection loss
- Synchronizing locally persisted data with a remote API
- Logging in with Facebook
- Implementing Redux
-
App Workflow and Third-Party Plugins
- How this chapter works
- React Native development tools
- Planning your app and choosing your workflow
- Using NativeBase for cross-platform UI components
- Using glamorous-native for styling UI components
- Using react-native-spinkit for adding animated loading indicators
- Using react-native-side-menu for adding side navigation menus
- Using react-native-modalbox for adding modals
- Adding Native Functionality - Part I
- Adding Native Functionality - Part II
-
Integration with Native Applications
- Introduction
- Combining a React Native app and a Native iOS app
- Communicating from an iOS app to React Native
- Communicating from React Native to an iOS app container
- Handle being invoked by an external iOS app
- Combining a React Native app and a native Android app
- Communicating from an Android app to React Native
- Communicating from React Native to an Android app container
- Handle being invoked by an external Android app
-
Deploying Your App
- Introduction
- Deploying development builds to an iOS device
- Deploying development builds to an Android device
- Deploying test builds to HockeyApp
- Deploying iOS test builds to TestFlight
- Deploying production builds to the Apple App Store
- Deploying production builds to Google Play Store
- Deploying Over-The-Air updates
- Optimizing React Native app size
-
Optimizing the Performance of Your App
- Introduction
- Optimizing our JavaScript code
- Optimizing the performance of custom UI components
- Keeping animations running at 60 FPS
- Getting the most out of ListView
- Boosting the performance of our app
- Optimizing the performance of native iOS modules
- Optimizing the performance of native Android modules
- Optimizing the performance of native iOS UI components
- Optimizing the performance of native Android UI components
- Other Books You May Enjoy
Product information
- Title: React Native Cookbook - Second Edition
- Author(s):
- Release date: January 2019
- Publisher(s): Packt Publishing
- ISBN: 9781788991926
You might also like
book
React Native Cookbook
Tackling an app development project on multiple platforms is no simple task. When time is in …
book
Learning React Native, 2nd Edition
Get a practical introduction to React Native, the JavaScript framework for writing and deploying fully featured …
book
React Cookbook
React helps you create and work on an app in just a few minutes. But learning …
book
React Cookbook
Over 66 hands-on recipes that cover UI development, animations, component architecture, routing, databases, testing, and debugging …