re-added missing files
Dominic Gannaway committed
Mar 2, 2017 at 21:52 UTC
54fef501863eb2e53180eaaebdd10169dc4c3611
2 files changed
+84
flow/environment.js
new
+20
@@ -0,0 +1,20 @@
1
+/**
2
+ * Copyright (c) 2015-present, Facebook, Inc.
3
+ * All rights reserved.
4
+ *
5
+ * This source code is licensed under the BSD-style license found in the
6
+ * LICENSE file in the root directory of this source tree. An additional grant
7
+ * of patent rights can be found in the PATENTS file in the same directory.
8
+ *
9
+ * @flow
10
+ */
11
+
12
+/* eslint-disable */
13
+
14
+declare var __REACT_DEVTOOLS_GLOBAL_HOOK__: any; /*?{
15
+ inject: ?((stuff: Object) => void)
16
+};*/
17
+
18
+// temporary patches for React.Component and React.Element
19
+declare var ReactComponent: typeof React$Component;
20
+declare var ReactElement: typeof React$Element;
flow/react-native-host-hooks.js
new
+64
@@ -0,0 +1,64 @@
1
+/**
2
+ * Copyright (c) 2015-present, Facebook, Inc.
3
+ * All rights reserved.
4
+ *
5
+ * This source code is licensed under the BSD-style license found in the
6
+ * LICENSE file in the root directory of this source tree. An additional grant
7
+ * of patent rights can be found in the PATENTS file in the same directory.
8
+ *
9
+ * @flow
10
+ */
11
+
12
+/* eslint-disable */
13
+
14
+declare module 'deepDiffer' {
15
+ declare function exports(one: any, two: any): bool;
16
+}
17
+declare module 'deepFreezeAndThrowOnMutationInDev' {
18
+ declare function exports<T>(obj : T) : T;
19
+}
20
+declare module 'flattenStyle' { }
21
+declare module 'InitializeCore' { }
22
+declare module 'RCTEventEmitter' {
23
+ declare function register() : void;
24
+}
25
+declare module 'TextInputState' {
26
+ declare function blurTextInput(object : any) : void;
27
+ declare function focusTextInput(object : any) : void;
28
+}
29
+declare module 'UIManager' {
30
+ declare var customBubblingEventTypes : Object;
31
+ declare var customDirectEventTypes : Object;
32
+ declare function createView(
33
+ reactTag : number,
34
+ viewName : string,
35
+ rootTag : number,
36
+ props : ?Object,
37
+ ) : void;
38
+ declare function manageChildren(
39
+ containerTag : number,
40
+ moveFromIndices : Array<number>,
41
+ moveToIndices : Array<number>,
42
+ addChildReactTags : Array<number>,
43
+ addAtIndices : Array<number>,
44
+ removeAtIndices : Array<number>
45
+ ) : void;
46
+ declare function measure() : void;
47
+ declare function measureInWindow() : void;
48
+ declare function measureLayout() : void;
49
+ declare function removeRootView() : void;
50
+ declare function removeSubviewsFromContainerWithID() : void;
51
+ declare function replaceExistingNonRootView() : void;
52
+ declare function setChildren(
53
+ containerTag : number,
54
+ reactTags : Array<number>,
55
+ ) : void;
56
+ declare function updateView(
57
+ reactTag : number,
58
+ viewName : string,
59
+ props : ?Object,
60
+ ) : void;
61
+}
62
+declare module 'View' {
63
+ declare var exports : typeof ReactComponent;
64
+}