Repository navigation
Conversation
@react-native/normalize-colors 0.74 answered null for rgb(10 20 30 / 0.4), so the StyleSheet compiler dropped the declaration. 0.88, which 0.22-dev depends on, parses it. Cover the form in processColor and in createReactDOMStyle, where it resolves to rgba(10,20,30,0.40).
|
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit 75037e2:
|
YevheniiKotyrlo
marked this pull request as ready for review
October 18, 2026 19:21
zoontek
approved these changes
Oct 19, 2026
Collaborator
|
Thanks! Merged in |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
@react-native/normalize-colors0.74 returnsnullfor the space-separated formrgb(10 20 30 / 0.4), soprocessColoransweredundefinedand theStyleSheetcompiler dropped the declaration. #2909 moved0.22-devto a version that parses it, but no test covers the form, so a later dependency change could drop it again without a failure.Tests
processColor›should convert rgb(x y z / a)compiler/createReactDOMStyle›colors›rgb() with a slash alphaBoth fail with
@react-native/normalize-colors@0.74.89installed in place of the current dependency (Received: undefined) and pass on0.22-dev.Verification
npm run formatclean ·flow0 ·lint0 ·unit46 suites, 687 passed, 6 skippedNo open issue or PR covers it: searched the tracker for
normalize-colors,rgb slash,color level 4andrgb space separated.Related
Follow-up to #2909, as offered there.
Base
0.22-dev36c0ad78.