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

Open
#1,308 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
25/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
react-native
Domain
mobile

Research direction

Start by reviewing the linked pull request #56395, since this issue identifies it as the commit or PR to be picked. Check how Pressable's android_ripple and TouchableNativeFeedback.Ripple handle colors, and consider the work done when PlatformColor and alpha are supported without the existing JavaScript invariant.

Written by the indexing model from the issue text.

Description

Type Pick Request
Target Branch

0.85

Link to commit or PR to be picked

https://github.com/facebook/react-native/pull/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.

Dominant language
No language data
Stars
428
Forks
11
Avg merge
13m
Merged PRs (30d)
1

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from reactwg/react-native-releases

All issues in reactwg/react-native-releases

Similar issues

More Mobile Dev issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.