Time of Update: 2016-01-04
標籤:環境搭建: 1.安裝react-native開發環境 npm install -g react-native-cli 2.安裝jest測試環境 npm install -g jest-cli
Time of Update: 2015-12-19
標籤:當我第一次嘗試ReactNative的時候,我覺得這隻是網頁開發人員涉足原生行動裝置
Time of Update: 2015-12-17
標籤:一、二、代碼 1 <!DOCTYPE html> 2 <html lang="zh-cn"> 3 <head> 4 <meta charset="UTF-8"> 5 <title>Hello, World</title> 6 </head> 7 <body> 8 <script
Time of Update: 2016-04-18
標籤:我們在做APP的時候,與案頭應用系統不同的是觸摸響應。web頁面對觸摸響應的支援和原生的APP有著很大的差異。基本用法 componentWillMount: function() { this._panResponder = PanResponder.create({ // 要求成為響應者: onStartShouldSetPanResponder: (evt, gestureState) => true,
Time of Update: 2016-04-09
標籤:前面我們使用react-native init建立了一個項目,這是一個簡單的Hello World App(項目結構如)。對於iOS來說,你需要編輯index.ios.js來改變App;對於Android,你需要編輯index.android.js來修改App。然後搖晃菜單中點擊Road JS查看改變。下面我們就以Android為例子來嘗試修改了App。一、修改index.android.js檔案index.android.js檔案://Mock資料var
Time of Update: 2016-04-09
標籤: 【React Native開發】React Native控制項之ListView組件講解以及最齊全執行個體(19) 【React Native開發】React Native控制項之Touchable*系列組件詳解(18) 【React Native開發】React Native控制項之ViewPagerAndroid講解以及美團首頁頂部效果執行個體(17)【React Native開發】React
Time of Update: 2016-04-02
標籤:本文同步至公眾號http://mp.weixin.qq.com/s?__biz=MzAxMzgwNDU3Mg==&mid=402267570&idx=1&sn=4b0dc27842c32d902bad2dc4eea75f9a#rd感興趣的可以掃碼關注哈生命週期(Life
Time of Update: 2016-04-01
標籤:###React簡介RN是基於React設計,瞭解React有助於我們開發RN應用;React希望將功能分解化,讓開發變得像搭積木一樣,快速而且可維護React主要有如下3個特點:*作為UI(Just the UI)*虛擬DOM(Virtual DOM)這是亮點 是React最重要的一個特性 放進記憶體 最小更新的視圖差異部分更新 diff演算法*資料流(Date
Time of Update: 2016-03-30
標籤:Define query param in Link, accept path and query :const Links = () => <nav > <Link to={{path: ‘/‘, query: {message: ‘Yo‘}}}>Home</Link> </nav>; Use Query param by props.location.query:const Container =
Time of Update: 2016-03-28
標籤:react-router provides two props for setting a specific style on a Link component whose path matches our current route. activeStyle allows for an inline style while activeClassName allows for an class defined in an external stylesheet. const
Time of Update: 2016-03-24
標籤:1.因為jsx將兩個花括弧之間的內容渲染為動態值,只需要引用對應的變數即可<!DOCTYPE html><html> <head> <title>React JS</title> <script src="../build_0.13/react.js"></script> <script
Time of Update: 2016-03-20
標籤:轉載註明出處:地址:http://www.lcode.org本文出自:【江清清的技術專欄】本React Native講解專題:主要講解了React Native開發,由基礎環境搭建配置入門,基礎,進階相關講解。剛建立的React Native技術交流1群(282693535),React Native技術交流2群(496601483),React Native技術交流3群(496508742)。歡迎各位大牛,React
Time of Update: 2016-03-20
標籤:1.前言 react native給了我們使用javascript開發原生app的能力,在使用react native完成興趣部落安卓端發現tab改造後,我們開始對由react native實現的介面進行持續最佳化。目標只有一個,在享受react native帶來的新特性的同時,在體驗上無限逼近原生實現。作為一名前端開發,本文會從前端角度,探索react
Time of Update: 2016-03-09
標籤:眼下React Native(以後簡稱RN)越來越火,我也要投入到學習當中。對於一個前端來說,還是有些難度。因為本人覺得這是一個App開發的領域,自然是不同。編寫本文的時候,RN的版本為0.21.0。我們馬上以代碼進入今天的學習。‘use strict‘;import React, { AppRegistry, Component, StyleSheet, Text, View} from ‘react-native‘;class Hello extends Component
Time of Update: 2016-02-26
標籤:參考文檔:http://reactnative.cn/docs/0.20/getting-started.html cmd 開啟 敲入1、npm config set registry https://registry.npm.taobao.orgnpm config set disturl https://npm.taobao.org/dist 2、npm install
Time of Update: 2016-02-24
標籤:安裝Xcode安裝Homebrew檢查是否有警告安裝Android SDK安裝flow和watchman安裝nodejs安裝react-native-cli安裝Genymotion安裝Webstorm 10建立React Native空項目使用Webstorm編輯JSX代碼檔案在iOS模擬器中運行在Android模擬器中運行安裝Xcode從App Store搜尋下載。需要Apple
Time of Update: 2016-02-20
標籤:React Native基於node.js的Model環境,使用React的UI環境,的一套跨平台方案。現實方案可能是,基於node.js的Model環境,基於各個平台的UI環境。ios 環境安裝1.安裝nvmhttps://github.com/creationix/nvm#installation2.安裝nodenvm install 5.3.0nvm alias default node3.安裝 watchmanbrew install watchman4.安裝
Time of Update: 2016-01-29
標籤:推薦文章React Native 簡介:用 JavaScript 搭建 iOS 應用 (1)React Native 簡介:用 JavaScript 搭建 iOS 應用 (2)React Native入門執行個體教程系列文章React Native組件開發系列文章 React Native 環境搭建 - Mac版 1. 安裝homebrew用brew -v查看是否安裝過;如果沒有,則瀏覽器訪問 http://brew.sh/ 安裝 2.
Time of Update: 2016-01-22
標籤:react這麼熱門的架構也不介紹了,redux是一個單項資料流的小架構,當然不只配合react,它起初是為react而配的,現在面向所有了,比如ng-redux的項目。redux做為react的標準搭配,大有超越flux的勢頭。今天show一個例子來入門redux。源碼在此。 (本文預設你已有react基礎,es6基礎)這個效果很簡單就是一個count計數,+++++的按鈕按一下就會+1;input裡面寫什麼,submit就會alert什麼內容,這個demo很雜亂,是我修改的官方
Time of Update: 2016-01-18
標籤:此文章同步串連: https://github.com/p2227/p2227.github.io/issues/3# 初用react容易踩的坑## 自訂群組件忘記大寫第一個字母 ```javascriptvar myComp = React.createClass({ render: function() { return <div>Hello world</div>; }});ReactDOM.render(<myComp />,