I can't figure out what this does or even is. Would someone please be so kind to point me what to research?
circle: (null : ?{ setNativeProps(props: Object): void }),
var NavigatorIOSExample = React.createClass({
...
circle: (null : ?{ setNativeProps(props: Object): void }),
...
});
The declaration is syntax from Flow. It says that 'circle' is an object with a property that is a function named 'setNativeProps':
{ setNativeProps(props: Object): void }
It also says that circle is nullable (indicated by the preceding '?') and that the default value will be null until an object of the specified type has been assigned to it.
If you look further down the sample you can see how calling code checks that circle has been assigned before calling setNativeProps:
this.circle && this.circle.setNativeProps({
backgroundColor: CIRCLE_HIGHLIGHT_COLOR
});