Const
// Basic success alert
<AlertComponent
visible={showSuccess}
message="Recording started successfully!"
type="success"
duration={3000}
onHide={() => setShowSuccess(false)}
/>
// Danger alert with custom text color
<AlertComponent
visible={showError}
message="Failed to connect to server"
type="danger"
textColor="#fff"
duration={5000}
onHide={() => setShowError(false)}
/>
// With custom content and icon
<AlertComponent
visible={showAlert}
message="Participant joined"
type="success"
renderContent={({ defaultContent }) => (
<View style={{ flexDirection: 'row', alignItems: 'center' }}>
<Icon name="check-circle" size={20} color="green" />
{defaultContent}
</View>
)}
onHide={() => setShowAlert(false)}
/>
AlertComponent presents lightweight meeting alerts such as success or error notifications. It supports timed dismissal, manual close taps, and override hooks for tailoring the rendered modal or its content.
Key Features
Behavior
duration
millisecondsonHide
callback on dismissAccessibility