Skip to content

Commit fb0aece

Browse files
committed
fix(Divider): Improved styles
1 parent 2a669e3 commit fb0aece

1 file changed

Lines changed: 19 additions & 1 deletion

File tree

‎src/components/Divider/Divider.tsx‎

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,21 @@
1+
import { DividerProps } from '@bluebase/components';
12
import { Divider as RNPDivider } from 'react-native-paper';
3+
import React from 'react';
4+
import { useTheme } from '@bluebase/core';
25

3-
export const Divider: any = RNPDivider;
6+
export const Divider = (props: DividerProps) => {
7+
const { theme } = useTheme();
8+
9+
return (
10+
<RNPDivider
11+
{...props}
12+
style={[
13+
props.style,
14+
{
15+
backgroundColor: theme.palette.divider,
16+
height: 1,
17+
},
18+
]}
19+
/>
20+
);
21+
};

0 commit comments

Comments
 (0)