[Flow] Fix or suppress react-native github errors for Flow v0.12.0

This commit is contained in:
Gabe Levi
2015-06-10 13:42:41 -07:00
committed by Spencer Ahrens
parent 78db5ca1b9
commit 1acca01aa4
12 changed files with 37 additions and 22 deletions

View File

@@ -26,7 +26,7 @@ type ReactNativeBaseComponentViewConfig = {
*/
var createReactNativeComponentClass = function(
viewConfig: ReactNativeBaseComponentViewConfig
): Function { // returning Function is lossy :/
): ReactClass<any, any, any> {
var Constructor = function(element) {
this._currentElement = element;
@@ -39,7 +39,7 @@ var createReactNativeComponentClass = function(
Constructor.prototype = new ReactNativeBaseComponent(viewConfig);
Constructor.prototype.constructor = Constructor;
return Constructor;
return ((Constructor: any): ReactClass);
};
module.exports = createReactNativeComponentClass;