我正在學習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