forked from react-native-webrtc/react-native-webrtc
-
Notifications
You must be signed in to change notification settings - Fork 32
Open
Description
onst toggleScreenShare = async () => {
try {
if (Platform.OS === 'ios') {
// On iOS, just show the picker
// The actual screen share will be enabled when we receive the broadcastStarted notification
const reactTag = findNodeHandle(props?.screenCaptureRef.current);
await NativeModules.ScreenCapturePickerViewManager.show(reactTag);
console.log('📱 Screen share picker shown');
} else {
await room.localParticipant.setScreenShareEnabled(true);
}
} catch (e) {
console.warn('toggleScreenShare error', e);
}
};
const screenCapturePickerView = Platform.OS === 'ios' && (
);
and aslo add native ios file
Metadata
Metadata
Assignees
Labels
No labels