?flex-grow
定義伸縮項目的放大比例,默認為0,即表示如果存在剩余空間,也不放大
flex-shrink
定義伸縮項目的收縮能力,默認為1,
組件生命周期
componentDidMount
componentWillUnmount
onPress點擊
viewpager
https://github.com/race604/react-native-viewpager
快速學(xué)習(xí)
http://blog.csdn.net/quanqinyang/article/details/52215658
app框架
https://github.com/crazycodeboy/GitHubPopular
react native svg動畫
屏幕寬度
Dimensions.get('window').width;
點擊高亮
TouchableHighlight
視頻
自定義組件 ?最后一行
export{Main?asdefault}
引入時
importMainPagefrom'./main.js';
export default class Login extends Component{
position :absolute| relative
獲取像素點
PixelRatio.get()
Image.resizeMode來適配圖片布局,包括contain, cover, stretch
子組件引用
this.refs[btn].startAnimation();
點擊高亮按鈕TouchableOpacity
特效庫集合
https://js.coach/react-native/react-native-redux-routing?page=2
開發(fā)神器
https://segmentfault.com/a/1190000003698071
解決輸入框被鍵盤遮擋問題
https://js.coach/react-native/react-native-keyboard-aware-scroll-view?page=2
數(shù)據(jù)state本地存儲
redux-persist
http://www.tuicool.com/articles/JFj6RfF
http://www.360doc.com/content/16/0824/16/16002580_585612496.shtml
http://gold.xitu.io/tag/React%2520Native
http://www.itdecent.cn/p/fd4558f1a928
http://www.wtoutiao.com/p/282JKg8.html
http://www.lcode.org
http://mp.weixin.qq.com/s?__biz=MzAwMTYwNzE2Mg==&mid=2651036614&idx=1&sn=48a9885e13d896fa0b0b6344cda8e356&scene=0#wechat_redirect
熱更新:微軟的codepush
解決頻繁渲染的問題:PureComponent和Immutable-js
全家桶系列之normalize
android react native模塊預(yù)加載http://blog.zhaiyifan.cn/2016/08/20/react-native-0-31-preload-optimization/
react 代碼風(fēng)格統(tǒng)一工具EditorConfig
React Native 性能優(yōu)化之可取消的異步操作https://github.com/crazycodeboy/RNStudyNotes/tree/master/React%20Native%20性能優(yōu)化/React%20Native%20性能優(yōu)化之可取消的異步操作
redux-saga?
https://zhuanlan.zhihu.com/p/21399936
列表側(cè)邊拉出menu
https://js.coach/react-native/react-native-swipeout?search=swip
https://js.coach/react-native/rc-swipeout?search=swip
wheel滾輪
https://js.coach/react-native/react-native-wheel-picker
redux高級篇
http://cn.redux.js.org/docs/recipes/ReducingBoilerplate.html
對redux性能的疑惑
https://www.zhihu.com/question/41904561
學(xué)習(xí)資料
http://www.itdecent.cn/p/d78696e9db3f