Environment constructionEnvironmental construction can refer to the RN official website, also can refer to the Chinese version: http://reactnative.cn/docs/0.45/getting-started.htmlIf you want to see the original installation process, you can look at the official address, this article is only my personal practice, and is limited to the window platform.Official address: https://facebook.github.io/react-native
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
Please attach react-native Official document Chinese version: http://wiki.jikexueyuan.com/project/react-native/getting-started.htmlOK, let's take a look at the installation process.The first is five needs
OS x – Now this warehouse contains only IOS implementations, and Xcode can only run on Mac.
Don't know
:
$ nvm_nodejs_org_mirror=https://npm.taobao.org/dist NVM Install 0.11.11
So you'll see a very fast progress bar:
######################################################################## 100.0%nowusingnode v0.11.11
If you do not want to enter the environment variable nvm_nodejs_org_mirror every time, then I recommend you to add to the. bashrc file:
# nvmexportnvm_nodejs_org_mirror=https://npm.taobao.org/distsource~/git/nvm/nvm.sh
Then the terminal input
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
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
cannot find entry file index.ios.js [index.android.js] in any of the roots
There are a lot of people on the web searching for this problem, and the solution is:Run under Project path: NPM Start---Reset-cacheRestart Project: React-native Run-ios (run-android)If it's still a failure then it's here to see if there's a solution NPM modules get required from/users/node_modules/instead of the project directory
I
view:Http://facebook.github.io/react-native/docs/view.html#style)2.colors[colorproptype] set a drop-down refresh to load the color of the progress indicator, you can set multiple colors ( set of up to four )3.enabled BOOL set whether to start the drop-down refresh feature4.Progressbackgroundcolor colorproptype settings drop-down refresh the background color of the load indicator5.Refreshing bool to set the
Suppose we now have a need to customize a component that consists of a small icon and a text description of the icon, with a background color, a back-view setting, and a width height setting. As shown is the composition of two such components.First, in the Index.android.js directory to create a new JS file, named Item.js, enter the template code inside/*** Sample React Native app* https://github.com/faceboo
1. Can be installed according to the official installation instructions, personally feel a little bit of English is fully capable of document installation procedures (https://facebook.github.io/react-native/docs/ getting-started.html), the specific environment variable how to configure the Internet one of the searchIf you want to quickly install Node,python,java, and you do not want to set their environment
In the development process, images are used in almost every project.RN is the display of pictures through the image component. You can load a network picture or load a local resource picture.The image component must declare the paragraph and height of the picture in the style. If there is no declaration, the picture will not be rendered on the interface.Web Image loadingLoading network pictures is very simple, directly on the code:Modify Index.ios.js or Inde.android.jsImport
We can access Web pages in our React Native application using the WebView component. We'll connect the links in your repository component to their Github Web page when a user click on them.Navigate to WebView component: openpage (URL) { this. Props.navigator.push ({ component:web, ' Web View', passprops: {URL}} ); Web View compnent:Import
As a product manager, if you have encountered such a dilemma, "help me to the font 16th, color into #FFFF00FF, the eldest brother said it is best to change", as an app development can only helpless but the heart of the happy to tell you, "Only wait for the next version, must be re-released to change", If you ask why you can't change it, it means that your understanding of technology is either really bad, or you know the power of this react-
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.