mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-26 23:05:00 +08:00
[Flow] Fix or suppress react-native github errors for Flow v0.12.0
This commit is contained in:
committed by
Spencer Ahrens
parent
78db5ca1b9
commit
1acca01aa4
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user