about summary refs log tree commit diff
path: root/src/components/Divider.tsx
blob: ff0bbb0451d61670e3893ead0c701bc5231d8249 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import React from 'react'
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),
      ]}
    />
  )
}