import { NativeModules, Platform } from 'react-native'; const { WebRTCModule } = NativeModules; type NotificationConfig = { title: string; message: string; }; class ScreenShareManager { configureNotification(config: NotificationConfig) { if (Platform.OS === 'android') { WebRTCModule.setupNotification(config); } } disableScreenShare(): void { if (Platform.OS === 'android') { WebRTCModule.stopScreenShare(); } } enableSystemAudio(): void { if (Platform.OS === 'android') { WebRTCModule.startSystemAudioShare(); } } disableSystemAudio(): void { if (Platform.OS === 'android') { WebRTCModule.stopSystemAudioShare(); } } is_running(): boolean { if (Platform.OS === 'android') { return WebRTCModule.isScreenShareRunning(); } return false; } } export default new ScreenShareManager();