flowified Libraries from Avik

This commit is contained in:
Basil Hosmer
2015-03-25 12:55:10 -07:00
parent 18b6d5c20d
commit 95deed578c
22 changed files with 238 additions and 99 deletions

View File

@@ -7,6 +7,7 @@
* of patent rights can be found in the PATENTS file in the same directory.
*
* @providesModule ActivityIndicatorIOS
* @flow
*/
'use strict';
@@ -29,6 +30,12 @@ var SpinnerSize = keyMirror({
var GRAY = '#999999';
type DefaultProps = {
animating: boolean;
size: 'small' | 'large';
color: string;
};
var ActivityIndicatorIOS = React.createClass({
mixins: [NativeMethodsMixin],
@@ -51,7 +58,7 @@ var ActivityIndicatorIOS = React.createClass({
]),
},
getDefaultProps: function() {
getDefaultProps: function(): DefaultProps {
return {
animating: true,
size: SpinnerSize.small,