Open fabriziocucci opened 1 year ago
For the people landing on this feature request, while this is is being worked on, you can temporarily build a full-screen dialog by mixing and matching some of the existing components:
import { Modal } from "react-native";
import { Appbar, Button, Dialog } from "react-native-paper";
<Modal animationType="..." onRequestClose={dismiss} presentationStyle="overFullScreen" visible={...}>
<Appbar.Header>
<Appbar.Action icon="close" onPress={dismiss} />
<Appbar.Content title="New event" />
<Button onPress={save}>Save</Button>
</Appbar.Header>
<Dialog.Content>
/* dialog content */
</Dialog.Content>
</Modal>
NOTE: you could also use the Modal
from react-native-paper
but then you wouldn't be able to customise the animationType
in case, for instance, you need a slide
animation.
Really looking forward to get rid of this hack! :)
@lukewalczak Can I pick this up?
Is your feature request related to a problem? Please describe. Not sure if I've missed it but, it seems full-screen dialog are currently not supported.
Describe the solution you'd like It would be great to support full-screen dialogs as per MD3 spec.
Describe alternatives you've considered Tried to customise the existing
Dialog
to work full-screen dialog with messy results.Additional context