原创 constructor()構造函數和setInterval()定時器

import React, { Component } from ‘react’; import { AppRegistry, Text, View } from ‘react-native’; class Blink exte

原创 TouchableHighlight簡單使用

//相當於button使用 <TouchableHighlight //點擊後的背景顏色 underlayColor="#1FB579"

原创 URL 和JSON和 plist小結

#import "URL.h" @interface URL () @property(nonatomic,strong) UIWebView *webView; @end @implementation URL (void)v

原创 error Received malformed response from registry for undefined. The registry may be down.

安裝React Native 執行react-native init RNDemo 出現報錯 error Received malformed response from registry for undefined. Th

原创 alignSelf

/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, {Componen

原创 react-native 筆記StyleSheet

/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, {Componen

原创 關於數據流NSOutputStream

#import "URL.h" @interface URL () //文件輸出流 @property(nonatomic,strong) NSOutputStream * fileStream; @end @implement

原创 flexWrap

/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, {Componen

原创 css監聽窗口變化

監聽窗口變化 .demo{ color: red; } /當窗口小於850的時候執行/ @media screen and (max-width: 85