From 54fef501863eb2e53180eaaebdd10169dc4c3611 Mon Sep 17 00:00:00 2001 From: Dominic Gannaway Date: Thu, 2 Mar 2017 21:52:54 +0000 Subject: [PATCH] re-added missing files --- flow/environment.js | 20 +++++++++++ flow/react-native-host-hooks.js | 64 +++++++++++++++++++++++++++++++++ 2 files changed, 84 insertions(+) create mode 100644 flow/environment.js create mode 100644 flow/react-native-host-hooks.js diff --git a/flow/environment.js b/flow/environment.js new file mode 100644 index 0000000000..fa020bf8aa --- /dev/null +++ b/flow/environment.js @@ -0,0 +1,20 @@ +/** + * Copyright (c) 2015-present, Facebook, Inc. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. An additional grant + * of patent rights can be found in the PATENTS file in the same directory. + * + * @flow + */ + +/* eslint-disable */ + +declare var __REACT_DEVTOOLS_GLOBAL_HOOK__: any; /*?{ + inject: ?((stuff: Object) => void) +};*/ + +// temporary patches for React.Component and React.Element +declare var ReactComponent: typeof React$Component; +declare var ReactElement: typeof React$Element; diff --git a/flow/react-native-host-hooks.js b/flow/react-native-host-hooks.js new file mode 100644 index 0000000000..0f96747133 --- /dev/null +++ b/flow/react-native-host-hooks.js @@ -0,0 +1,64 @@ +/** + * Copyright (c) 2015-present, Facebook, Inc. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. An additional grant + * of patent rights can be found in the PATENTS file in the same directory. + * + * @flow + */ + +/* eslint-disable */ + +declare module 'deepDiffer' { + declare function exports(one: any, two: any): bool; +} +declare module 'deepFreezeAndThrowOnMutationInDev' { + declare function exports(obj : T) : T; +} +declare module 'flattenStyle' { } +declare module 'InitializeCore' { } +declare module 'RCTEventEmitter' { + declare function register() : void; +} +declare module 'TextInputState' { + declare function blurTextInput(object : any) : void; + declare function focusTextInput(object : any) : void; +} +declare module 'UIManager' { + declare var customBubblingEventTypes : Object; + declare var customDirectEventTypes : Object; + declare function createView( + reactTag : number, + viewName : string, + rootTag : number, + props : ?Object, + ) : void; + declare function manageChildren( + containerTag : number, + moveFromIndices : Array, + moveToIndices : Array, + addChildReactTags : Array, + addAtIndices : Array, + removeAtIndices : Array + ) : void; + declare function measure() : void; + declare function measureInWindow() : void; + declare function measureLayout() : void; + declare function removeRootView() : void; + declare function removeSubviewsFromContainerWithID() : void; + declare function replaceExistingNonRootView() : void; + declare function setChildren( + containerTag : number, + reactTags : Array, + ) : void; + declare function updateView( + reactTag : number, + viewName : string, + props : ?Object, + ) : void; +} +declare module 'View' { + declare var exports : typeof ReactComponent; +}