React native The mechanism of publishing events and subscribing events to make native and JavaScript communicate, and individuals feel similar to sending messages in OC.Here's how to use Rctdeviceeventemitter.First, in the OC code1, #import
1. Simplifying the wording
When we write the react component, we refer to the official document, one to declare state, two to bind the function of this, the general writing is as follows:
Class DEMO extends React.component {
constructor () {
Pushnotificationios Method
name
meaning
Presentlocalnotification
Show planned notifications now
Schedulelocalnotification
Planning Notifications
Setapplicationiconbadgenumber
App
Image Image
Control Properties that show a picture
name
type
meaning
Default Value
OnLayout
function
function to invoke this property setting when layout changes
No
ResizeMode
Enum
1. installing the JDK,SDKJDK:http://www.oracle.com/technetwork/cn/java/javase/downloads/jdk8-downloads-2133151-zhs.html SDK:http://www.android-studio.org/JDK to be 1.8 or above. Then configure the corresponding environment variables. One thing to
Recently intends to summarize the react knowledge points:React features1. Virtual DOMManipulate the DOM in memory, create data structures in memory, and update only the differences2, the component ofThe page is divided into components, each
One, react native many are ES6 grammar. 1 lines. The expression is the strict mode of JS.' Use strict ';In strict mode, variables must be declared first, then assigned, defined, etc.There is also a binding for this.2 rows to 8 rows. Import
Reprint please indicate the source: Wang 亟亟 's way of DanielRecently, there are a lot of things, there is not a long time to study, the article also stopped for more than a week, guilt, have time or continue to study, continue to write!Or the first
1.react native-expected a component class, got [Object Object]Component reference name must be first letter capitalizedSuch as:Import Login from './login '; // It doesn't matter if the file name and the first letter of the class name are inside, but
React native Learning One (environment collocation)Homepage, follow the instructions on http://reactnative.cn/docs/0.30/getting-started.html#content, download and install python2、nodejs、git、 Android Studio. Here the first two are relatively good
React-router provides, props for setting a specific style on a Link component whose path matches our current route. Activestyle allows for a inline style while activeclassname allows for a class defined in an external stylesheet.const Links = ()
Recent projects have been developed using react, which is useful to react to manipulate the form. You then add ref to each form element and then manipulate the ref like the jquery manipulation Dom,The code is as follows:First I added ref to every
Before you use the React Redux bindings, learn what to create a all simple application with just React and Redux.HTML>Head> MetaCharSet= "Utf-8"> title>JS Bintitle> Scriptsrc= "Https://cdnjs.cloudflare.com/ajax/libs/redux/3.0.4/redux.js">Script>
earlier we created a project using React-native init, which is a simple Hello World App (project structure, for example). For iOS, you need to edit index.ios.js to change the app, and for Android you need to edit index.android.js to modify the app.
One. Install Homebrew: "Homebrew installs the stuff you need that Apple didn ' t.--homebrew OS X more complete".Homebrew's official website (multi-lingual version) provides a simple and concise description of how to install and use the tool, and
I. React specifications
1.1 Role of react key
When rendering duplicate data,
React.diffVirtual Dom rendering will be performed based on the generated key, so we need to add the key in the traversal place, such as map, for, etc.
Similarly, antd, as
This time, I continue to study the application of actor. I found that the advance example about actor in Scala-Lang is very representative. So I took the time to study this example, I have added some key debug information to my corrected code,
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.