1. The first integrated project directory
I'm using it directly in the format of React-native Init project, which means that my Android project directory is in a directory with Node_modules.
After we init the project, the project initialization is
First, before you learn this framework, you need to know something about the following:
1. Native JS base
2.CSS Foundation
3.NPM Package Management Basics
4.webpack Build Project Foundation
5.ES6 specification
The above five knowledge points
We have started using react-native in our project, so Swift learns to lay down a period of time, studied RN for one months, and today shares the learning process:
Study Data collation:
1, react-native Chinese network: http://reactnative.cn/docs/0.2
React-native (React-native-barcodescanner) sweep code The first time in the normal but after the black screen, said on the internet is a new scene to pop out (may be my version and the online version of the different results), But I pop off the
The mainstream data Flow framework: Flux/reflux/redux
Simple/single State tree
All actions of the user are distributed to several stores by a unified dispatcher
This store holds data that also holds a state of the current page and can only pass
React is currently the hottest front-end framework. Facebook launched the best community support and ecosystem in 2013 with a large number of third-party tools
Advantages of React component mode: Code reuse and Team work virtual DOM: Performance
Installation
At the initial stage, you can use the online editing site to learn react basic grammar.Starting with Hello world, you can write on Codepen, or Codesandbox.Of course, you can also use NPM or yarn to install dependencies and develop
react is Facebook's open source JavaScript library, which uses declarative paradigms to pass declarative code to minimize interaction with the DOM. React is Facebook's open source JavaScript library for building the UI. You can pass multiple types
Set the. js file to open by default in JSX syntaxIn the absence of settings, each time you open Webstorm, the. js file containing the JSX syntax will have the following prompt:Of course, we click on the conversion can be, but every time will prompt,
I. Definition and functionReact-redux divides all components into two main categories: UI components (presentational component) and container components (container component)1. UI Component Features:
Only responsible for UI rendering,
Instantiates an update getinitialstatecomponentwillmount the first instantiation of the Getdefaultpropsgetinitialstatecomponentwillmountrendercomponentdidmount instantiation is complete Rendercomponentdidmount state changes when a component already
Once achieved angular version, this feeling with the tall on the react but wrote more code, need more configuration, pros and cons of it.But this "navigation bar problem" is very interesting, involving in the redux to write a timer, in fact, I am
Icons is can directly use the image name, you can load the three sides of the picture, the use is very convenient, you do not need to plug various pictures in the project folder, save a lot of space, the following to see how to use it!1. First open
Reprint: http://www.alloyteam.com/2015/10/react-virtual-analysis-of-the-dom/?hmsr=toutiao.io&bsh_bid=928783684In web development, the need to reflect changes in the data in real time to the UI requires manipulation of the DOM, but complex or
The Cameraroll module in React-native provides the ability to access local albums.In the react version of 0.23.0, Android is not supported, and the use of Cameraroll in iOS requires us to do it manually:Ios:
Add Rctcameraroll.xcodeproj to
Swipe to view pictures third-party components: React-native-swiper, the current version is: 1.4.3, this version does not support Android.The following is a description of some of the use of the component, may summarize the incomplete, I hope we all
When we do the app, the touch response is different from the desktop application.Web page support for touch response differs greatly from native apps.Basic usageComponentwillmount:function) {This._panresponder = Panresponder.create ({Request to be a
Directory:
Property: Props
inline style
Status Memory: State
Life cycle
Accessing the DOM
Form input
Quick Start article: http://www.cnblogs.com/jasonnode/p/4444504.htmlProperty: PropsComponents should provide
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service