diff --git a/src/divider/Divider.tsx b/src/divider/Divider.tsx index a39f1fd141..25004ccf03 100644 --- a/src/divider/Divider.tsx +++ b/src/divider/Divider.tsx @@ -1,10 +1,16 @@ import React from 'react'; -import { View, StyleSheet, ViewProps } from 'react-native'; +import { + View, + StyleSheet, + ViewProps, + StyleProp, + ViewStyle, +} from 'react-native'; import { withTheme } from '../config'; import { RneFunctionComponent } from '../helpers'; export type DividerProps = ViewProps & { - style?: object | any[]; + style?: StyleProp; }; const Divider: RneFunctionComponent = ({ diff --git a/website/docs/props/divider.md b/website/docs/props/divider.md index d9200f82c9..4582c01040 100644 --- a/website/docs/props/divider.md +++ b/website/docs/props/divider.md @@ -13,6 +13,6 @@ Style of the divider -| Type | Default | -| :----------: | :-----------------------------------: | -| style object | {height: 1, backgroundColor: #e1e8ee} | +| Type | Default | +| :------------: | :-----------------------------------: | +| style (object) | {height: 1, backgroundColor: #e1e8ee} |