更新时间:2021-07-02 20:20:17
cover
Title Page
Copyright
React Native - Building Mobile Apps with JavaScript
Credits
About the Author
About the Reviewer
www.PacktPub.com
Why subscribe?
Customer Feedback
Dedication
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
Downloading the example code
Downloading the color images of this book
Errata
Piracy
Questions
Understanding Why React Native is the Future of Mobile Apps
What is React Native?
The history of React Native
It all begun with ReactJS
Hackathon that grew bigger
React Native today
The motivation of creating React Native
Mobile development is too specific
Taking the React approach
Making developer experience state of the art
How React Native is different from hybrid applications?
What are hybrid applications?
Why Native applications lead the way?
Is React Native really a Native framework?
How the React Native bridge from JavaScript to Native world works?
Information flow
Architecture
Threading model
The benefits of React Native
Developer experience
Chrome DevTools debugging
Live reload
Hot reload
Component hierarchy inspections
Web-inspired layout techniques
Code reusability across applications
Summary
Working with React Native
Setting up an environment for developing iOS and Android apps
Installing projects with native code
Installing iOS dependencies
Installing Android dependencies
Installing JDK
Installing Android studio
Installing SDK and built tools
Setting up the ANDROID_HOME environment variable
Creating an Android virtual device
The development environment
Creating your application
Application with create-react-app and Expo
Introduction to JSX and how it's used in React Native
What is JSX?
Children in JSX
JSX props
Stateful versus presentational components
Presentational components
Stateful components
React lifecycle methods
Mounting
Updating
Structuring React Native apps and their resemblance to HTML
Thinking in React
Reusable components
Containers
Basic React Native components
The folder structure
Getting Familiar with React Native Components
Platform-independent components
Basic components
View
Layouting
Touch events
Accessibility
Text
StatusBar
Images and media
Basic user interaction
Button
TouchableOpacity
TouchableHighlight
TouchableWithoutFeedback
Getting feedback from your application
ActivityIndicator
Modal
Dealing with lists of data
ListView