import { StyleSheet, View, type StyleProp, type ViewStyle } from 'react-native'; import React, { type ReactNode } from 'react'; import Row from './Row'; import Text from './Text'; import Space from './Space'; type Props = { orientation?: 'center' | 'right' | 'left'; children?: ReactNode | string; dashed?: boolean; orientationMargin?: number; styles?: StyleProp; type?: 'vertical' | 'horizontal'; plain?: boolean; }; const Divider = (props: Props) => { const { orientation, children, dashed, orientationMargin, styles, type, plain, } = props; return !type || type === 'horizontal' ? ( {!children ? ( ) : ( {typeof children === 'string' ? ( ) : ( children )} )} ) : ( ); }; export default Divider; const localstyles = StyleSheet.create({ divider: { height: 1, flex: 1, borderBottomWidth: 0.8, borderBottomColor: '#e0e0e0', borderStyle: 'solid', }, });