01 Fundamentals and Development environment constructionA brief introduction to the React native architecture and principles of "recording" (16 minutes)"Recording" MacOS iOS environment build (19 minutes)"Recording" MacOS Android Environment build (17 minutes)"Recording" Windows Android Environment build (10 minutes)Use and precautions for "recording" Android devices (8 minutes)02JavaScript, Node, ES6 Found
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
?? Code debugging, especially important in the process of program development, can help developers quickly locate problems.?? This paper focuses on the program debugging tools and processes developed by react native.?? Exhale the Developer Menu dialog box as shown in:
Android Physical device or iOS physical device: Shake the phone to exhale.Android Simulator:Command? + M iOS Simulator:C
React Native Knowledge 3-TextInput component, react3-textinput
TextInput is a basic component that allows users to input text on the keyboard in an application. The attributes of this component provide various features, such as automatic completion, auto case, placeholder text, and a variety of different keyboard types (such as pure numeric keypad. Its style attributes are the same as those of Text;
I. Attr
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
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
:
_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
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
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
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.