Currently in components such as Button and TouchableOpacity, the activeBackgroundColor and backgroundColor among other props used for setting the color of a visual UI element should be typed as the ColorValue type from react-native. Currently, they are typed as string types.
Related to
[x] Components
[ ] Demo
[ ] Docs
[x] Typings
Steps to reproduce
Pass a ColorValue typed prop used for styling UI elements into activeBackgroundColor.
Expected behavior
backgroundColor
activeBackground
props should accept "ColorValue" types from react-native.
Actual behavior
See type error Type 'ColorValue' is not assignable to type 'string | undefined'.
Description
Currently in components such as
Button
andTouchableOpacity
, theactiveBackgroundColor
andbackgroundColor
among other props used for setting the color of a visual UI element should be typed as theColorValue
type fromreact-native
. Currently, they are typed asstring
types.Related to
Steps to reproduce
ColorValue
typed prop used for styling UI elements into activeBackgroundColor.Expected behavior
backgroundColor
activeBackground
props should accept "ColorValue" types fromreact-native
.Actual behavior
See type error
Type 'ColorValue' is not assignable to type 'string | undefined'.
More Info
Screenshots/Video
Environment
Affected platforms