Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying Getting Started with React Native
  • Table Of Contents Toc
  • Feedback & Rating feedback
Getting Started with React Native

Getting Started with React Native

By : Holmes, Bray
5 (1)
close
close
Getting Started with React Native

Getting Started with React Native

5 (1)
By: Holmes, Bray

Overview of this book

React Native is a game-changing approach to hybrid mobile development. Web developers can leverage their existing skills to write mobile applications in JavaScript that are truly native without using cross-compilation or web views. These applications have all of the advantages of those written in Objective-C or Java, combined with the rapid development cycle that JavaScript developers are accustomed to. Web developers who want to develop native mobile applications face a high barrier to entry, because they are forced to learn platform-specific languages and frameworks. Numerous hybrid technologies have tried to simplify this process, but have failed to achieve the performance and appearance that users expect. This book will show you all the advantages of true native development that React Native has without the steep learning curve, leveraging the knowledge you already have. We do this by getting you up and running quickly with a sample application. Next, we’ll introduce you to the fundamentals of creating components and explain how React Native works under the hood. Once you have established a solid foundation, you will dive headfirst into developing a real-world application from start to finish. Along the way, we will demonstrate how to create multiple screens and navigate between them,use layout and style native UI components, and access native APIs such as local storage and geolocation. Finally, we tackle the advanced topic of Native modules, which demonstrates that there are truly no limits to what you can do with React Native.
Table of Contents (10 chapters)
close
close

Creating an iOS release in Xcode


In order to submit to the AppStore, we need to build our application for distribution. Luckily, the Xcode project we initially created with react-native init has some of this preconfigured for us. First, we want to change our Build Configuration to disable features, such as the developer menu that we get while we are debugging.

Let's configure the iOS release:

  1. In Xcode, navigate to Product | Scheme | Edit Scheme… and select Run, and under the Info tab change Build Configuration from Debug to Release:

  2. Target the iOS Device instead of the simulator:

  3. Finally, run the build from Product | Archive. The Organizer window will open a list of archives for your project. You can return to this screen later by selecting Window | Organizer from the top menu:

  4. In the future, when you create multiple releases, you should increase the version number found in Targets | ReactNotes | General. For the purposes of our first release, this can be disregarded:

    Once your build has been...

Unlock full access

Continue reading for free

A Packt free trial gives you instant online access to our library of over 7000 practical eBooks and videos, constantly updated with the latest in tech
bookmark search playlist font-size

Change the font size

margin-width

Change margin width

day-mode

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Delete Bookmark

Modal Close icon
Are you sure you want to delete it?
Cancel
Yes, Delete

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY