UNPKG

@ducdh-origin/react-native-modals

Version:
27 lines (21 loc) 485 B
// @flow import React from 'react'; import { View, StyleSheet } from 'react-native'; import type { DialogContentProps } from '../type'; const styles = StyleSheet.create({ content: { paddingHorizontal: 18, paddingVertical: 24, }, }); function DialogContent({ style, children }: DialogContentProps) { return ( <View style={[styles.content, style]}> {children} </View> ); } DialogContent.defaultProps = { style: null, }; export default DialogContent;