mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-05-03 23:35:06 +08:00
[Flow] Fix or suppress react-native github errors for Flow v0.12.0
This commit is contained in:
@@ -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