import type { RefObject } from "react"; import type WebView from "react-native-webview"; class AeroSyncSDK { private widgetWebViewRef: RefObject = { current: null }; private embeddedWebViewRef: RefObject = { current: null }; get getWidgetWebViewRef() { return this.widgetWebViewRef; } setWidgetWebViewRef(ref: RefObject) { this.widgetWebViewRef = ref; } get getEmbeddedWebViewRef() { return this.embeddedWebViewRef; } setEmbeddedWebViewRef(ref: RefObject) { this.embeddedWebViewRef = ref; } clear() { this.widgetWebViewRef = { current: null } this.embeddedWebViewRef = { current: null } } } export default new AeroSyncSDK;