Before looking at this article, please refer to my preparation as follows:
1, installed react Developer Tools plug-in chrom;
2, integrated react Native after the webstorm, integrated reference Webstorm integration React-native plug-ins and basic settings;
3, an Androi
application should be put together to write the above two, here just for the following and the new and old two ways to separate.In react native, the implementation style is just a small subset of the CSS, which uses the flex layoutThe idea of implementation is the same as above, but due to the view component in react native
Simulation machine debugging first to confirm that your environment variable path is not the ADB paths, ADB generally in the Android ADK directory under Platform-tools, Android directory by default in the C disk user/administrator (user default words ) in/appdata/If you're using the emulator that comes with Android studio, you can play it like this.RunC:\Users\Administrator\AppData\Local\Android\Sdk\emulator\emulator.exe-netdelay none-netspeed FULL-AVD NEXUS4 _api_27This command to ensure that t
Today to write a component, I believe many people will use the--viewstack.The Viewstack component is undoubtedly a very important component in the UI, but react-native is not embedded in it and needs to be implemented by the developer himself.The implementation principle is simple, is to display a sub-view according to the index, with a render can be done:1 render () {2 return (3 4 {
Pulltorefreshviewandroid LearningPulltorefreshviewandroid is a view that can place a single scrollable child view that, when the sub-view is shifted vertically (scrolly) to 0 o'clock, the drop-down can trigger a Onrefresh event.Before learning pulltorefreshviewandroid components, if there is not a certain basis, it is recommended to read the previous article, because, here I learn scrollview before the foundation, add pulltorefreshviewandroid function. The current code is as follows:' use strict
Today put react native environment to complete, and then run a small demo to try.First Environmental configuration Hello World Summary
According to the above study article, I basically completed, but in the configuration process encountered 2 problems, need to end. node is installed
Since I installed react-native befo
:
_handlemoveshouldsetpanrespondercapture2 (Event:object, Gesturestate:object,): boolean {
console.log ( Gesturestate.dy);
Console.log (' _handlemoveshouldsetpanrespondercapture2 ');
When you swipe to the top and continue to pull down,
return this._reachend2gesturestate.dy>=0;
}
Okay ~ Our first page of the parent control gets the swipe event, we continue to pull up, that is, to pull up the distance to our "Pull up View Details" component:_handlepanr
want to use RN to make a RSA (Asymmetric encryption) LoginThe basic process is to generate RSA on the server side, the "public key" to the client, and then the client with "public key" encryption information sent to the server, the service end with the private key decryption.The process is not complicated, the problem is that Nodejs and RN are prepared to use JS to do RSA encryption, originally wanted to do with Node-rsa, but do not understand how it set public key encryptionSo directly to do No
TextInputis an underlying component that allows the user to enter text. It has a property named onChangeText , which accepts a function that is called when the text changes. There is also a property named onSubmitEditing , which is called after the text is committed (the user presses the Submit key on the soft keyboard).Import React, {Component}From' React ';Import {appregistry, Text, TextInput, View}From'
ScrollViewis a generic scrollable container where you can put multiple components and views, and these components do not need to be of the same type. ScrollView not only scrolls vertically, but also scrolls horizontally ( horizontal set by properties).Import React, {Component} from ' React '; import{appregistry, ScrollView, Image, Text, View} from ' React-
/*** Component Drawerlayoutandroid (Implementation of the Android drawer)The Drawerlayoutandroid properties and methods of this article compare the whole point* */Import react,{purecomponent} from ' React 'Import {view,drawerlayoutandroid,text,dimensions,textinput,touchableopacity} from ' React-native 'Class Drawerlayo
working principle:Basically similar, js-native Bridge and front-end rendering framework, but the use of frame technology is not the same;WeexAli's early development of a project through the JSON data description native rendering Weapp and vue.js this excellent front-end open source MVVM framework and deep integration; HTTPS://GITHUB.COM/WEEXTEAM/ARTICLE/ISSUES/32React Native:http://www.jianshu.com/p/978c4bd
1. New Project2. Apply for the Gold Key1. Sign up for the gold developer2. Gold Personal Center Application key3. Fill in the informationNow you need to write SHA1 and PackageName.SHA1 requires a project to be packaged to get to, package the projectGo to java->bin directory keytool-list-v-keystore E:\RN\ShareUmbrella\android\app\xx.keystore---Back to my directoryYou can see the SHA1PackageName into the project Android\app\src\main can see androidmanifest.xml inside the package= "package name" in
-in Installation
Where static code check there are some problems, please see the following great God's article, wrote very detailed, there are questions we will discuss.
Static code checking plug-in configuration
Here's what I did when I opened my project with sublime:
At this time we want to run our project, if you have installed a plugin above (Terminal), press Command+shift+t, will open the terminal, directly into your project directory.
No installation does not matter, open the terminal
IOS react Native Flexbox Detailed and data collation,
# Preface
Learning this series of content needs to have a certain HTML development base, no basic friends can go to HTML learning
I contact react Native time is not particularly long, so the content and nature of the understanding may be biased, in the study if t
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.