看react-native中看到这样的函数写法:
_handleStartShouldSetPanResponder: function(e: Object, gestureState: Object): boolean {
// Should we become active when the user presses down on the circle?
return true;
},
_handleMoveShouldSetPanResponder: function(e: Object, gestureState: Object): boolean {
// Should we become active when the user moves a touch over the circle?
return true;
},
就是想单纯的问一下这是不是ES6的语法呢..这样写法是什么意思呢,以前在用ES6的时候也没有发现别的地方有这样的写法...
谢谢~
应该是使用了typescript写的吧