我正在学习react native
。我想了解代码Here。下面的代码片段对我来说似乎很奇怪。你能解释一下它的功能吗?什么`circle:(null:?{setNativeProps(props:Object):void})`意思是
circle: (null : ?{ setNativeProps(props: Object): void })
我知道像约if
声明:
blabla = (if-this-is-true) ? this-should-be-used : otherwise_this
,但不知道是不是圆一个是同样的事情。
如果我没有使用Flow,应该如何编码? – farmcommand2
如果不包含注释,它实际上只是'circle:null'。 – loganfsmyth