UNPKG

universal-portability

Version:

Universal Portability Framework for Web3 Applications

19 lines 696 B
import { WebView } from 'react-native-webview'; import { MessageHandlerConfig } from './useMessageHandler'; export interface PortHandlerConfig extends Omit<MessageHandlerConfig, 'walletAddress' | 'chainId'> { address?: string; chainId?: number; } /** * Hook to handle WebView communication for React Native * * This is the React Native equivalent of the usePortHandler hook * for web implementations. */ export declare function usePortHandler(config?: PortHandlerConfig): { handleWebViewMessage: (event: any) => Promise<void>; webViewRef: import("react").RefObject<WebView>; isReady: boolean; }; export default usePortHandler; //# sourceMappingURL=usePortHandler.d.ts.map