mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-15 14:30:22 +00:00
[react-native]Picker.style expects TextStyle (#41729)
The package itself says it's expecting a `TextStyle`, not a `ViewStyle` (https://github.com/facebook/react-native/blob/84adc85523770ebfee749a020920e0b216cf69f8/Libraries/Components/Picker/Picker.js#L62). Specifically, setting this to `ViewStyle` causes Typescript to complain if you try to set a `color` property, which does in fact work.
This commit is contained in:
committed by
Ben Lichtman
parent
1222cab18e
commit
070fa8d410
Vendored
+1
-1
@@ -2952,7 +2952,7 @@ export interface PickerProps extends PickerPropsIOS, PickerPropsAndroid {
|
||||
*/
|
||||
selectedValue?: any;
|
||||
|
||||
style?: StyleProp<ViewStyle>;
|
||||
style?: StyleProp<TextStyle>;
|
||||
|
||||
/**
|
||||
* Used to locate this view in end-to-end tests.
|
||||
|
||||
Reference in New Issue
Block a user