ReactNative
MRFM
android菜鸟
展开
-
React-native报错ERROR Watcher took too long to load解决方法
运行react-native start时报错 ERROR Watcher took too long to load Try running `watchman version` from your terminal https://facebook.github.io/watchman/docs/troubleshooting.html Error: Watcher原创 2016-07-20 10:53:00 · 763 阅读 · 0 评论 -
React Native物理back键详解
componentWillMount() { if (Platform.OS === 'android') { BackAndroid.addEventListener('hardwareBackPress', this.onBackAndroid); } } componentWillUnmount() { if (Platform.OS === 'a转载 2016-08-10 11:26:11 · 5666 阅读 · 0 评论 -
ReactJS组件生命周期
1.创建阶段 getDefaultProps:处理props的默认值 在React.createClass调用 2.实例化阶段 React.render(启动之后 getInitialState、componentWillMount、render、componentDidMount state:组件的属性,主要是用来存储组件自身需要的数据,每次数据的更新都原创 2016-08-01 10:52:19 · 689 阅读 · 0 评论