tooot/src/components/Hr.tsx

24 lines
508 B
TypeScript
Raw Normal View History

import { StyleConstants } from '@utils/styles/constants'
import { useTheme } from '@utils/styles/ThemeManager'
import { View, ViewStyle } from 'react-native'
const Hr: React.FC<{ style?: ViewStyle }> = ({ style }) => {
const { colors } = useTheme()
return (
<View
style={[
{
borderTopColor: colors.border,
borderTopWidth: 1,
height: 1,
2023-01-27 18:44:48 +01:00
paddingVertical: StyleConstants.Spacing.S
},
style
]}
/>
)
}
export default Hr