UNPKG

react-native-whip-whep

Version:

An implementation of WHIP and WHEP protocols functionalities for React Native.

15 lines 557 B
import ReactNativeMobileWhepClientModule, { ReceivableEvents, } from "../ReactNativeMobileWhepClientModule"; export const initializeWarningListener = () => { if (!__DEV__) { return; } try { ReactNativeMobileWhepClientModule.addListener(ReceivableEvents.Warning, (event) => { console.warn(event[ReceivableEvents.Warning]); }); } catch (error) { console.error(`Failed to start warning listener: ${error instanceof Error ? error.message : ""}`); } }; //# sourceMappingURL=errorListener.js.map