import * as React from "react"; import { View, ViewStyle, StyleSheet, StyleProp } from "react-native"; type Props = React.ComponentPropsWithRef & { /** * Content of the `DialogContent`. */ children: React.ReactNode; style?: StyleProp; }; /** * A component to show content in a Dialog. * *
*
* *
*
* * * ## Usage * ```js * import * as React from 'react'; * import { Paragraph } from 'react-native-simple-elements/components/Text'; * import Dialog from 'react-native-simple-elements/components/Dialog'; * import Portal from 'react-native-simple-elements/components/Portal'; * * const MyComponent = () => { * const [visible, setVisible] = React.useState(false); * * const hideDialog = () => setVisible(false); * * return ( * * * * This is simple dialog * * * * ); * }; * * export default MyComponent; * ``` */ const DialogContent = (props: Props) => ( {props.children} ); DialogContent.displayName = "Dialog.Content"; const styles = StyleSheet.create({ container: { paddingBottom: 24, paddingHorizontal: 24, }, }); export default DialogContent;