
react-native
qingsong_xu
人生路漫漫,可是青春已逝
展开
-
react native点击事件传递参数
比如我们定义一个TouchableOpacity点击事件,该方法需要接收一个参数值,如下_gotoSubClass(sectionID, rowID) { console.log("sectionID="+sectionID + "rowID=" + rowID); } 那么在TouchableOption组件的onPress属性中应该这样写: <TouchableOpacity onP原创 2017-05-23 09:21:25 · 11232 阅读 · 0 评论 -
The development server returned response error code: 500 in react-native
写ReactNative应用时遇到:The development server returned response error code: 500,经查看是由于某个modules不在modules map里,多次关闭terminal及模拟器均未解决,最后根据错误提示,三行代码解决。 按顺序在命令行里执行一下下面的指令,运行过程中未报错,基本就ok了,嘿嘿 1、watchman watch-de原创 2017-05-19 09:06:52 · 29993 阅读 · 3 评论