Skip to content

Commit

Permalink
fix khushal87 divider-style-props (react-native-elements#2985)
Browse files Browse the repository at this point in the history
  • Loading branch information
khushal87 authored Apr 25, 2021
1 parent cdec7a6 commit 395aee0
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
10 changes: 8 additions & 2 deletions src/divider/Divider.tsx
Original file line number Diff line number Diff line change
@@ -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<ViewStyle>;
};

const Divider: RneFunctionComponent<DividerProps> = ({
Expand Down
6 changes: 3 additions & 3 deletions website/docs/props/divider.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@

Style of the divider

| Type | Default |
| :----------: | :-----------------------------------: |
| style object | {height: 1, backgroundColor: #e1e8ee} |
| Type | Default |
| :------------: | :-----------------------------------: |
| style (object) | {height: 1, backgroundColor: #e1e8ee} |

0 comments on commit 395aee0

Please sign in to comment.