You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
Components
Demo
Docs
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'.
More Info
Screenshots/Video
Environment
React Native version: latest stable
React Native UI Lib version: latest stable
Affected platforms
Android
iOS
Web
The text was updated successfully, but these errors were encountered:
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 from
react-native
.Actual behavior
See type error
Type 'ColorValue' is not assignable to type 'string | undefined'.
More Info
Screenshots/Video
Environment
Affected platforms
The text was updated successfully, but these errors were encountered: