- 博客(5)
- 收藏
- 关注
转载 React Native物理back键详解
componentWillMount() { if (Platform.OS === 'android') { BackAndroid.addEventListener('hardwareBackPress', this.onBackAndroid); } } componentWillUnmount() { if (Platform.OS === 'a
2016-08-10 11:26:11
5730
转载 Android点击EditText文本框之外任何地方隐藏键盘的解决办法
通过dispatchTouchEvent每次ACTION_DOWN事件中动态判断非EditText本身区域的点击事件,然后在事件中进行屏蔽。@Override public boolean dispatchTouchEvent(MotionEvent ev) { if (ev.getAction() == MotionEvent.ACTION_DOWN) { V
2016-08-10 11:22:10
390
原创 ReactJS组件生命周期
1.创建阶段 getDefaultProps:处理props的默认值在React.createClass调用 2.实例化阶段 React.render(启动之后 getInitialState、componentWillMount、render、componentDidMount state:组件的属性,主要是用来存储组件自身需要的数据,每次数据的更新都
2016-08-01 10:52:19
739
原创 Android studio更新到2.2之后出现的问题
提示的错误是Conflict with dependency 'com.android.support:support-annotations'. Resolved versions for app (22.2.1) and test app (23.1.1) differ. See http://g.co/androidstudio/app-test-app-conflict for det
2016-07-20 16:10:30
446
原创 React-native报错ERROR Watcher took too long to load解决方法
运行react-native start时报错ERROR Watcher took too long to loadTry running `watchman version` from your terminalhttps://facebook.github.io/watchman/docs/troubleshooting.htmlError: Watcher
2016-07-20 10:53:00
815
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅