@wscsports/blaze-rtn-sdk
Version:
WSC Sports Blaze SDK component for React Native
17 lines • 736 B
TypeScript
interface BlazeAsyncBridgeInterface {
/**
* Register a handler for a JavaScript method that can be called from native
* @param methodName The name of the method to register
* @param handler A function that handles the method call and returns a Promise
*/
registerJSMethod(methodName: string, handler: BlazeJSMethodHandler): void;
/**
* Unregister a JavaScript method handler
* @param methodName The name of the method to unregister
*/
unregisterJSMethod(methodName: string): void;
}
type BlazeJSMethodHandler = (params: unknown, callbackId: string) => Promise<any>;
export declare const BlazeAsyncBridge: BlazeAsyncBridgeInterface;
export {};
//# sourceMappingURL=BlazeAsyncBridge.d.ts.map