about summary refs log tree commit diff
path: root/src/components/Divider.tsx
blob: e4891aacb154bc1fd7afaf2f3d3dd92e82aa313f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import {View} from 'react-native'

import {atoms as a, flatten, useTheme, ViewStyleProp} from '#/alf'

export function Divider({style}: ViewStyleProp) {
  const t = useTheme()

  return (
    <View
      style={[
        a.w_full,
        a.border_t,
        t.atoms.border_contrast_low,
        flatten(style),
      ]}
    />
  )
}