Skip to content

Commit 3f26954

Browse files
committed
Update types.ts
1 parent d8d593a commit 3f26954

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

components/types.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
import { type } from 'os';
22
import { ReactText } from 'react';
3-
import { TextStyle, ViewStyle } from 'react-native';
3+
import { StyleProp, TextStyle, ViewStyle } from 'react-native';
44

55
export type Data = JSX.Element | ReactText[][] | ReactText[] | ReactText;
66
export interface DefaultProps<DataType extends Data> {
7-
style?: ViewStyle;
8-
textStyle?: TextStyle;
9-
borderStyle?: ViewStyle;
7+
style?: StyleProp<ViewStyle>;
8+
textStyle?: StyleProp<TextStyle>;
9+
borderStyle?: StyleProp<ViewStyle>;
1010
data: DataType;
1111
width?: ReactText;
1212
height?: ReactText;
@@ -17,11 +17,11 @@ export interface DefaultProps<DataType extends Data> {
1717
}
1818

1919
export type TableComponent = React.FC<{
20-
style?: ViewStyle;
21-
borderStyle?: ViewStyle;
20+
style?: StyleProp<ViewStyle>;
21+
borderStyle?: StyleProp<ViewStyle>;
2222
}>;
2323

2424
export type TableProps = React.PropsWithChildren<{
25-
style?: ViewStyle;
26-
borderStyle?: ViewStyle;
25+
style?: StyleProp<ViewStyle>;
26+
borderStyle?: StyleProp<ViewStyle>;
2727
}>;

0 commit comments

Comments
 (0)