The problem is we can't send any props to the Dialog.Content itself because all the props is sent directly to the child.
Example: when i pass className max-w-full max-h-full to the Dialog.Content from '@rn-primitives/dialog, it doesn't have any effect, the dialog content would not expand because we pass the className to the child instead of Dialog.Content itself.
The className='sm:max-w-[425px]' that added to the DialogContent doesn't have any effect at all because the className is added to the child insted to the DialogContent itself.
current implementation for dialog content for the web is using radix primitive
The problem is we can't send any props to the
Dialog.Content
itself because all theprops
is sent directly to the child.Example: when i pass className
max-w-full max-h-full
to theDialog.Content
from'@rn-primitives/dialog
, it doesn't have any effect, the dialog content would not expand because we pass the className to the child instead ofDialog.Content
itself.The usage example in react-native-reusable is also broken:
The
className='sm:max-w-[425px]'
that added to theDialogContent
doesn't have any effect at all because the className is added to the child insted to the DialogContent itself.