forked from facebook/react
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathreact-native-host-hooks.js
88 lines (86 loc) · 2.38 KB
/
react-native-host-hooks.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
/**
* Copyright (c) 2015-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow
*/
/* eslint-disable */
declare module 'deepDiffer' {
declare function exports(one: any, two: any): bool;
}
declare module 'deepFreezeAndThrowOnMutationInDev' {
declare function exports<T>(obj : T) : T;
}
declare module 'flattenStyle' { }
declare module 'InitializeCore' { }
declare module 'RCTEventEmitter' {
declare function register(mixed) : void;
}
declare module 'TextInputState' {
declare function blurTextInput(object : any) : void;
declare function focusTextInput(object : any) : void;
}
declare module 'ExceptionsManager' {
declare function handleException(
error: Error,
isFatal: boolean,
) : void;
}
declare module 'Platform' {
declare var OS : string;
}
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<number>,
moveToIndices : Array<number>,
addChildReactTags : Array<number>,
addAtIndices : Array<number>,
removeAtIndices : Array<number>
) : void;
declare function measure(hostComponent: mixed, callback: Function) : void;
declare function measureInWindow(
nativeTag : ?number,
callback : Function
) : void;
declare function measureLayout(
nativeTag : mixed,
nativeNode : number,
onFail : Function,
onSuccess : Function
) : void;
declare function removeRootView(containerTag : number) : void;
declare function removeSubviewsFromContainerWithID(containerId : number) : void;
declare function replaceExistingNonRootView() : void;
declare function setChildren(
containerTag : number,
reactTags : Array<number>,
) : void;
declare function updateView(
reactTag : number,
viewName : string,
props : ?Object,
) : void;
declare function __takeSnapshot(
view ?: 'window' | Element<any> | number,
options ?: {
width ?: number,
height ?: number,
format ?: 'png' | 'jpeg',
quality ?: number,
},
) : Promise<any>;
}
declare module 'View' {
declare var exports : typeof React$Component;
}