We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e754581 commit 238f9d0Copy full SHA for 238f9d0
src/web/bridge.ts
@@ -12,7 +12,9 @@ export const emit = <T>(message: Message<T>) => {
12
(window as any).ReactNativeWebView.postMessage(JSON.stringify(message));
13
};
14
15
-export const buildUseSubscribe = (useEffect: any) => {
+export const buildUseSubscribe = (
16
+ useEffect: (cb: () => void, deps: any[]) => void
17
+) => {
18
return <T>(onSubscribe: (message: Message<T>) => void) => {
19
useEffect(() => {
20
const listener = (e: any) => {
0 commit comments