Skip to content

Commit df573fc

Browse files
committed
type fixed
1 parent fa843a6 commit df573fc

File tree

4 files changed

+5
-6
lines changed

4 files changed

+5
-6
lines changed

src/types/CheckBox.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import { IconNode } from './icon-type';
99
interface CheckBoxProps {
1010
style?: StyleProp<ViewStyle>,
1111
textStyle?: StyleProp<TextStyle>,
12-
children: 'string',
12+
children: string,
1313
checked?: boolean,
1414
iconRight?: boolean,
1515
color?: string,

src/types/CircularProgressBar.d.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ interface CircularProgressBarProps {
1515
radius: number,
1616
percent: number,
1717
duration: number,
18-
children: React.ReactElement,
1918
}
2019

2120
export const CircularProgressBar: React.FC<CircularProgressBarProps>;

src/types/ListItem.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ interface ListItemProps {
2222
chevronColor?: string,
2323
size?: SizeType,
2424
space?: ListSpaceType,
25-
onPress: () => void,
25+
onPress?: () => void,
2626
avatarSource?: object,
2727
leftIcon?: IconNode,
2828
rightIcon?: IconNode,

src/types/Text.d.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
import React from 'react';
2-
import { ViewStyle, TextStyle, StyleProp } from 'react-native';
2+
import { TextStyle, StyleProp, TextProps } from 'react-native';
33

44
import { SizeType } from './size-type';
55
import { WidthType } from './width-type';
66
import { LengthType } from './length-type';
77
import { IconNode } from './icon-type';
88

99
interface TextProps {
10-
style?: StyleProp<ViewStyle>,
11-
children: string,
10+
style?: StyleProp<TextStyle>,
11+
children: TextProps,
1212
size?: SizeType,
1313
color?: string,
1414
scale?: boolean,

0 commit comments

Comments
 (0)