UI Components
Dialog Modal
A customizable dialog modal component with platform-specific implementations for iOS and Android
A modal dialog component that provides animated transitions and platform-specific implementations.
Installation
Import
Props
Prop | Type | Required | Default | Description |
---|---|---|---|---|
title | string | Yes | - | Dialog title |
description | string | Yes | - | Dialog description |
onConfirm | () => void | No | () => {} | Confirmation handler |
bgColor | string | Yes | - | Background color |
children | React.ReactNode | Yes | - | Trigger component |
rightButton | string | Yes | - | Right button text |
isLoading | boolean | No | false | Loading state |
visible | boolean | Yes | - | Visibility state |
setVisible | (visible: boolean) => void | Yes | - | Visibility handler |
animationDuration | number | No | ANIMATION_DURATION.D3 | Animation duration |
Platform Specific Features
iOS
- Uses
BlurView
for background blur effect - Native blur intensity control
- iOS-specific animations
Android
- Uses themed background opacity
- Platform-optimized animations
- Android-specific styling
Animation Details
The dialog uses Reanimated for smooth animations:
- Entry animation: Scale from 0.7 to 1.0 with opacity
- Exit animation: Scale down with fade out
- Custom easing functions for natural movement
- Platform-specific timing adjustments
Implementation References
iOS Implementation
Was this page helpful?