Skip to content

Commit 733694d

Browse files
authored
fix(#313): incorrect color types (#314)
1 parent d209704 commit 733694d

File tree

1 file changed

+13
-12
lines changed

1 file changed

+13
-12
lines changed

typings/Picker.d.ts

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import type {
55
ViewProps,
66
NativeSyntheticEvent,
77
TargetedEvent,
8+
ColorValue,
89
} from 'react-native';
910
import { processColor } from 'react-native';
1011

@@ -76,18 +77,18 @@ export interface PickerProps<T = ItemValue> extends ViewProps {
7677
/**
7778
* Used to locate this view in end-to-end tests.
7879
*/
79-
testID?: string;
80-
/**
81-
* Color of arrow for spinner dropdown in hexadecimal format
82-
* @platform android
83-
*/
84-
dropdownIconColor?: ReturnType<typeof processColor>;
85-
/**
86-
* Ripple color of spinner's arrow
87-
* @platform android
88-
*/
89-
dropdownIconRippleColor?: ReturnType<typeof processColor>;
90-
/**
80+
testID?: string;
81+
/**
82+
* Color of arrow for spinner dropdown in hexadecimal format
83+
* @platform android
84+
*/
85+
dropdownIconColor?: number | ColorValue;
86+
/**
87+
* Ripple color of spinner's arrow
88+
* @platform android
89+
*/
90+
dropdownIconRippleColor?: number | ColorValue;
91+
/**
9192
* On Android, used to truncate the text with an ellipsis after computing the text layout, including line wrapping,
9293
* such that the total number of lines does not exceed this number. Default is '1'
9394
* @platform android

0 commit comments

Comments
 (0)