Skip to content

registerWebMethod ​

DEPRECATED

registerWebMethod is deprecated. Send events from React Native to the Web with postMessage instead. See Using a PostMessage.

registerWebMethod registers methods declared in the Web so React Native can call them through linkWebMethod. See Using a Web Method.

Arguments ​

ArgumentTypeRequiredDescription
bridgeRecord<string, (...args) => Promise>trueThe methods to expose to React Native.

Returns the same object, so its type can be exported to React Native.