npm run android 或者 react-native run-android
npm run ios 或者 react-native run-ios
keytool -genkey -v -keystore my-release-key.keystore -alias my-key-alias -keyalg RSA -keysize 2048 -validity 10000
react-native bundle --entry-file ./index.android.js --bundle-output ./app/src/main/assets/index.android.bundle --platform android --assets-dest ./app/src/main/res/ --dev false
curl "http://localhost:8081/debug.android.bundle?platform=android" -o "./app/src/main/assets/debug.android.bundle"
adb shell screenrecord /sdcard/react-native-update.mp4
http://note.rpsh.net/posts/2015/04/21/mac-osx-ffmpeg-mp4-gif-convert/
ffmpeg -i /Users/sky/dev/react/native/SmartReactNativeApp/images/react-native-update.mp4 /Users/sky/dev/react/native/SmartReactNativeApp/images/react-native-update.gif
从视频中第9秒开始,截取时长为8秒的片段转化为 gif
ffmpeg -t 8 -ss 00:00:09 -i /Users/sky/dev/react/native/SmartReactNativeApp/images/react-native-update.mp4 /Users/sky/dev/react/native/SmartReactNativeApp/images/react-native-update.gif
adb pull 就是从真机上拷贝文件到您的PC
adb pull /sdcard/react-native-update.mp4 /Users/sky/dev/react/native/SmartReactNativeApp/images
adb push 就是从PC上复制一份文件到您的真机上
adb push /Users/sky/dev/react/native/SmartReactNativeApp/images/home.png /sdcard
adb reverse tcp:8081 tcp:8081
8081端口占用:
lsof -n -i4TCP:8081
kill -9 pid
https://zhuanlan.zhihu.com/p/20872538 http://bbs.reactnative.cn/topic/15/react-react-native-%E7%9A%84es5-es6%E5%86%99%E6%B3%95%E5%AF%B9%E7%85%A7%E8%A1%A8/10 https://babeljs.io/blog/2015/06/07/react-on-es6-plus http://reactjs.cn/react/docs/reusable-components.html
ios 通信机制:
http://c.blog.sina.com.cn/profile.php?blogid=e8e60bc08901ecz7&from=h5
http://taobaofed.org/blog/2015/12/30/the-communication-scheme-of-react-native-in-ios/
http://www.jianshu.com/p/269b21958030
android 通信机制:
http://bugly.qq.com/bbs/forum.php?mod=viewthread&tid=663
http://mobile.51cto.com/aprogram-493549.htm
setState:http://web.jobbole.com/84306/ diff算法:http://www.infoq.com/cn/articles/react-dom-diff diff算法:https://zhuanlan.zhihu.com/p/20346379
https://github.com/reactnativecn/react-native-guide
http://reactnative.cn/docs/0.28/native-modules-android.html#content
http://www.alloyteam.com/2015/10/react-native-android-steps-on-tour/
http://bbs.reactnative.cn/topic/981/react-native-0-25-%E6%AD%A3%E5%BC%8F%E7%89%88%E5%8F%91%E5%B8%83 http://bbs.reactnative.cn/topic/15/react-react-native-%E7%9A%84es5-es6%E5%86%99%E6%B3%95%E5%AF%B9%E7%85%A7%E8%A1%A8
import React, { Component, View } from 'react-native' ;
import React, { Component } from 'react' ;
import { View } from 'react-native' ;
"react":
Children Component PropTypes createElement cloneElement isValidElement createClass createFactory createMixin
"react-native":
hasReactNativeInitialized findNodeHandle render unmountComponentAtNode unmountComponentAtNodeAndRemoveContainer unstable_batchedUpdates View Text ListView