Skip to content

[iOS] ColorComponents struct of Color in React-graphics are messed up when working with codegen color prop. #55219

Description

@reeywhaar

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

whatever

Stacktrace or Logs

whatever

MANDATORY Reproducer

whatever, lost too much time already, take it or leave it, let other see at least

Screenshots and Videos

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Needs: AttentionIssues where the author has responded to feedback.Needs: ReproThis issue could be improved with a clear list of steps to reproduce the issue.Platform: iOSiOS applications.StaleThere has been a lack of activity on this issue and it may be closed soon.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions