Book Image

React Native By Example

By : Richard Kho
Book Image

React Native By Example

By: Richard Kho

Overview of this book

React Native's ability to build performant mobile applications with JavaScript has resulted in its popularity amongst developers. Developers now have the luxury to create incredible mobile experiences that look and feel native to their platforms with the comfort of a well-known language and the popular React.js library. This book will show you how to build your own native mobile applications for the iOS and Android platforms while leveraging the finesse and simplicity of JavaScript and React. Throughout the book you will build three projects, each of increasing complexity. You will also link up with the third-party Facebook SDK, convert an app to support the Redux architecture, and learn the process involved in making your apps available for sale on the iOS App Store and Google Play. At the end of this book, you will have learned and implemented a wide breadth of core APIs and components found in the React Native framework that are necessary in creating great mobile experiences.
Table of Contents (17 chapters)
Title Page
About the Author
About the Reviewer
Customer Feedback


This was a long chapter! We accomplished a lot of things. First, we used NavigatorIOS to establish custom routes and created a component to edit a to-do item's details, including marking it as completed and adding a due date.

Then, we built a custom, reusable component with fluid animations to expand and collapse a child component, allowing DatePickerIOS to expand and collapse as needed. Afterward, we implemented logic to save the changes we make to a task using the navigation bar.

We also ported our app to support the Android operating system! We started by swapping out NavigatorIOS for Navigator, using the Platform API to trigger conditional logic depending on the type of mobile device our user is on, and creating iOS-and Android-specific components by appending .android and .ios to each index file.

We finished up the port to Android by rendering date and time pickers on Android, which are two separate popups, and creating a save button within our Android-specific EditTask component...