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 SliderIOS
* @flow
*/
'use strict';
@@ -21,6 +22,8 @@ var createReactIOSNativeComponentClass =
require('createReactIOSNativeComponentClass');
var merge = require('merge');
type Event = Object;
var SliderIOS = React.createClass({
mixins: [NativeMethodsMixin],
@@ -52,7 +55,7 @@ var SliderIOS = React.createClass({
onSlidingComplete: PropTypes.func,
},
_onValueChange: function(event) {
_onValueChange: function(event: Event) {
this.props.onChange && this.props.onChange(event);
if (event.nativeEvent.continuous) {
this.props.onValueChange &&