@@ -55,13 +55,12 @@ const DIALOG_ELEVATION: Elevation = 3;
5555
5656/**
5757 * Dialogs inform users about a specific task and may contain critical information, require decisions, or involve multiple tasks.
58- * To render the `Dialog` above other components, you'll need to wrap it with the [`Portal`](../Portal) component.
5958 *
6059 * ## Usage
6160 * ```js
6261 * import * as React from 'react';
6362 * import { View } from 'react-native';
64- * import { Button, Dialog, Portal, PaperProvider, Text } from 'react-native-paper';
63+ * import { Button, Dialog, PaperProvider, Text } from 'react-native-paper';
6564 *
6665 * const MyComponent = () => {
6766 * const [visible, setVisible] = React.useState(false);
@@ -74,17 +73,15 @@ const DIALOG_ELEVATION: Elevation = 3;
7473 * <PaperProvider>
7574 * <View>
7675 * <Button onPress={showDialog}>Show Dialog</Button>
77- * <Portal>
78- * <Dialog visible={visible} onDismiss={hideDialog}>
79- * <Dialog.Title>Alert</Dialog.Title>
80- * <Dialog.Content>
81- * <Text variant="bodyMedium">This is simple dialog</Text>
82- * </Dialog.Content>
83- * <Dialog.Actions>
84- * <Button onPress={hideDialog}>Done</Button>
85- * </Dialog.Actions>
86- * </Dialog>
87- * </Portal>
76+ * <Dialog visible={visible} onDismiss={hideDialog}>
77+ * <Dialog.Title>Alert</Dialog.Title>
78+ * <Dialog.Content>
79+ * <Text variant="bodyMedium">This is simple dialog</Text>
80+ * </Dialog.Content>
81+ * <Dialog.Actions>
82+ * <Button onPress={hideDialog}>Done</Button>
83+ * </Dialog.Actions>
84+ * </Dialog>
8885 * </View>
8986 * </PaperProvider>
9087 * );
0 commit comments