Description
ColorComponents struct of Color in React-graphics are messed up when working with codegen.
passing prop, e.g fillColor={processColor("#ff000000")} becomes ColorComponents{ red=0 green=1 blue=0 alpha=0}. Must be because processColor converts rgba int to argb while Color init still treats it as rgba.
Steps to reproduce
Create example 0.83 rn project. Create FabricComponent with color prop of type ProcessedColorProp. Then try to get ColorComponents of passed prop -> (*color).getColorComponents()
React Native Version
0.83.0
Affected Platforms
Runtime - iOS
Output of npx @react-native-community/cli info
Stacktrace or Logs
MANDATORY Reproducer
whatever, lost too much time already, take it or leave it, let other see at least
Screenshots and Videos
No response
Description
ColorComponentsstruct ofColorinReact-graphicsare messed up when working with codegen.passing prop, e.g
fillColor={processColor("#ff000000")}becomesColorComponents{ red=0 green=1 blue=0 alpha=0}. Must be becauseprocessColorconvertsrgbaint toargbwhileColorinit still treats it asrgba.Steps to reproduce
Create example 0.83 rn project. Create FabricComponent with color prop of type
ProcessedColorProp. Then try to get ColorComponents of passed prop ->(*color).getColorComponents()React Native Version
0.83.0
Affected Platforms
Runtime - iOS
Output of
npx @react-native-community/cli infoStacktrace or Logs
MANDATORY Reproducer
whatever, lost too much time already, take it or leave it, let other see at least
Screenshots and Videos
No response