Skip to content

[0.85] feat(Pressable): add support for PlatformColor and alpha #1308

@adrcotfas

Description

@adrcotfas

Target Branch

0.85

Link to commit or PR to be picked

facebook/react-native#56395

Description

android_ripple on Pressable (and TouchableNativeFeedback.Ripple()) only
accepted numeric (pre-processed ARGB int) colors. Passing a PlatformColor
would throw an invariant in JS, making theme-aware ripple colors impossible.

This is useful for providing more flexibility when customizing ripple color.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type Pick RequestPick requests to include commits inside a React Native release

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions