react native學(xué)習(xí)筆記

?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

視頻

http://ninghao.net/video/3094

自定義組件 ?最后一行

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


redux-rx

數(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

最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時請結(jié)合常識與多方信息審慎甄別。
平臺聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點,簡書系信息發(fā)布平臺,僅提供信息存儲服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

友情鏈接更多精彩內(nèi)容