Skip to content

Commit 2ef60d9

Browse files
authored
Adds experimental event API scaffolding (#15108)
* Adds experimental event API scaffolding
1 parent db41159 commit 2ef60d9

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

src/ReactTestHostConfig.js

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99

1010
import warning from 'shared/warning';
1111

12+
import type {ReactEventResponder} from 'shared/ReactTypes';
13+
1214
export type Type = string;
1315
export type Props = Object;
1416
export type Container = {|
@@ -260,3 +262,19 @@ export function unhideTextInstance(
260262
): void {
261263
textInstance.isHidden = false;
262264
}
265+
266+
export function handleEventComponent(
267+
eventResponder: ReactEventResponder,
268+
rootContainerInstance: Container,
269+
internalInstanceHandle: Object,
270+
) {
271+
// TODO: add handleEventComponent implementation
272+
}
273+
274+
export function handleEventTarget(
275+
type: string,
276+
props: Props,
277+
internalInstanceHandle: Object,
278+
) {
279+
// TODO: add handleEventTarget implementation
280+
}

0 commit comments

Comments
 (0)