我无法弄清楚这是做什么甚至是什么。有人会那么好心地指出我要研究什么吗?
circle: (null : ?{ setNativeProps(props: Object): void }),
它是 React Native 示例的一部分,也是 React Native 类定义的一部分。外部分为(略):
var NavigatorIOSExample = React.createClass({
...
circle: (null : ?{ setNativeProps(props: Object): void }),
...
});
我认为这是对三元运算符的一些棘手使用。一个匿名函数。但?
来源:https ://facebook.github.io/react-native/docs/panresponder.html