Front cover image for Learning React Native : building mobile applications with JavaScript

Learning React Native : building mobile applications with JavaScript

Bonnie Eisenman (Author)
Get a practical introduction to React Native, the JavaScript framework for writing and deploying fully featured mobile apps that look and feel native. With this hands-on guide, you'll learn how to build applications that target iOS, Android, and other mobile platforms instead of browsers. You'll also discover how to access platform features such as the camera, user location, and local storage. With code examples and step-by-step instructions, author Bonnie Eisenman shows web developers and frontend engineers how to build and style interfaces, use mobile components, and debug and deploy apps
eBook, English, 2016
First edition View all formats and editions
O'Reilly, Beijing, [China], 2016
1 online resource (271 p.)
9781491929049, 9781491929070, 1491929049, 1491929073
1126416996
Copyright; Table of Contents; Preface; Prerequisites; Conventions Used in This Book; Using Code Examples; Safari® Books Online; How to Contact Us; Resources; Acknowledgments; Chapter 1. What Is React Native?; Advantages of React Native; Developer Experience; Code Reuse and Knowledge Sharing; Risks and Drawbacks; Summary; Chapter 2. Working with React Native; How Does React Native Work?; Rendering Lifecycle; Creating Components in React Native; Working with Views; Using JSX; Styling Native Components; Host Platform APIs; Summary; Chapter 3. Building Your First Application Setting Up Your EnvironmentInstalling React Native; iOS Dependencies; Android Dependencies; Creating a New Application; Running a React Native Application for iOS; Uploading to Your iOS Device; Running a React Native Application for Android; Recap: Creating and Running Projects; Exploring the Sample Code; Attaching a Component to the View; Imports in React Native; The FirstProject Component; Building a Weather App; Handling User Input; Displaying Data; Adding a Background Image; Fetching Data from the Web; Putting It Together; Summary; Chapter 4. Components for Mobile Analogies Between HTML Elements and Native ComponentsThe Text Component; The Image Component; Working with Touch and Gestures; Using TouchableHighlight; The GestureResponder System; PanResponder; Working with Organizational Components; Using ListView; Using Navigators; Other Organizational Components; Platform-Specific Components; iOS- or Android-Only Components; Components with Platform-Specific Versions; When to Use Platform-Specific Components; Summary; Chapter 5. Styles; Declaring and Manipulating Styles; Inline Styles; Styling with Objects; Using Stylesheet.Create; Style Concatenation Organization and InheritanceExporting Style Objects; Passing Styles as Props; Reusing and Sharing Styles; Positioning and Designing Layouts; Layouts with Flexbox; Using Absolute Positioning; Putting It Together; Summary; Chapter 6. Platform APIs; Using Geolocation; Getting the User's Location; Handling Permissions; Testing Geolocation In the iOS Simulator; Watching the User's Location; Limitations; Updating the Weather Application; Accessing the User's Images and Camera; The CameraRoll Module; Requesting Images with GetPhotoParams; Rendering an Image from the Camera Roll Displaying a List of PhotosUploading an Image to a Server; Storing Persistent Data with AsyncStore; Other Storage Options; The SmarterWeather Application; The WeatherProject Component; The Forecast Component; The Button Component; The LocationButton Component; The PhotoBackdrop Component; Summary; Chapter 7. Modules; Installing JavaScript Libraries with npm; Native Modules for iOS; Including a Third-Party Component; Using the Video Component; Anatomy of an Objective-C Native Module; Implementation of RCTVideo; Native Modules for Android; Installing a Third-Party Component
Anatomy of a Java Native Module
Includes index