Const// Basic usage for host sharing
import React, { useState } from 'react';
import { ShareEventModal } from 'mediasfu-reactnative-expo';
const [showShare, setShowShare] = useState(false);
return (
<ShareEventModal
isShareEventModalVisible={showShare}
onShareEventClose={() => setShowShare(false)}
roomName="meeting-room-123"
adminPasscode="host-pass-456"
islevel="2" // Host - shows admin passcode
eventType="conference"
shareButtons={true}
/>
);
// Participant view without admin passcode
return (
<ShareEventModal
isShareEventModalVisible={isVisible}
onShareEventClose={handleClose}
roomName="webinar-room-789"
islevel="0" // Participant - no admin passcode shown
eventType="webinar"
position="center"
backgroundColor="rgba(255, 255, 255, 0.9)"
/>
);
// With custom local link
return (
<ShareEventModal
isShareEventModalVisible={showModal}
onShareEventClose={closeModal}
roomName={roomId}
adminPasscode={hostPass}
islevel={userLevel}
eventType="broadcast"
localLink="https://custom-domain.com/join"
shareButtons={true}
position="bottomRight"
/>
);
ShareEventModal - Meeting credentials and invitation sharing interface
ShareEventModal is a React Native component that displays meeting credentials (room name, meeting ID, passcode) with social sharing buttons. It allows hosts to share meeting access information via copy link, QR code, email, and other methods.
Key Features:
UI Customization: This component can be replaced via
uiOverrides.shareEventModalto provide a completely custom sharing interface.