Here's .d.ts for react-native-webview messsaging protocol on your web project #3276
softmarshmallow
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey if anyone needs it. I've published a very simple d.ts package for type filling
window.ReactNativeWebView.x
as part of my dynamix projecton npm: https://npmjs.com/react-native-webview-window-declaration
github: https://github.com/gridaco/dynamix/tree/main/lib/react-native-webview-window-declaration
add it to your package, import it where ever you need to postMessage to your webview app
You're good to go with typesafe dev env.
Or..
Just copy paste below
react-native-webview.d.ts
Beta Was this translation helpful? Give feedback.
All reactions