Skip to content

chore: merge upstream react-native-css 3.1.0-rc.1 into zeta/main - #7

Merged
kdwkr merged 26 commits into
zeta/mainfrom
daewoon/sync-upstream-3.1.0-rc.1
Nov 23, 2026
Merged

kdwkr merged 26 commits into
zeta/mainfrom
daewoon/sync-upstream-3.1.0-rc.1

Conversation

@kdwkr

@kdwkr kdwkr commented Nov 23, 2026 •

Copy link
Copy Markdown
Member

개요

상류 nativewind/react-native-css main(3.1.0-rc.1, merge-base f70c402 이후 24커밋)을 zeta/main에 merge 하고 @scatterlab/react-native-css@3.1.0-rc.1-zeta.1 로 올린다.

⚠️ "Create a merge commit"으로 머지해야 한다 (squash·rebase 금지). 상류 커밋을 조상으로 남겨야 다음 sync 때 merge-base 가 잡힌다.

상류가 가져온 것

fork 패치 처리

상류로 대체돼 제거

fork 커밋 대체한 상류 근거
d9de7bb logical padding → physical (런타임 expandLogicalPadding) 90fdbb5 (nativewind#580) 컴파일 단계에서 paddingVertical/Horizontal 로 나감
bd44e0e scale 퍼센트 → 비율 a5002c5 (nativewind#451), 572b652 (nativewind#576) scaleFactor 가 같은 변환. vendor/tailwind/transform scale 테스트 통과
f34524f + 26de234 컨테이너 attribute 조건 평가 a5002c5 (nativewind#451) 상류가 컨테이너 스냅샷으로 평가·갱신. fork 의 group - disabled attribute 테스트(자식은 리렌더 안 되고 부모 disabled 만 바뀜)가 상류 구현만으로 통과
bd3c150 문자열 "style" target 병합 1695e40 (nativewind#578) 문자열 target 경로가 filterCssVariables + 레이어([class, inline])로 바뀜. 아래 유지 패치와 합쳐 동작 보장

유지

  • 인라인 스타일 필터 (de4ee2d, e24cc4e): 상류 filterCssVariables 위에 3가지만 얹음 — src/native/styles/index.ts
    • undefined 값·빈 배열은 걸러진 것으로 취급 (className 스타일을 덮지 않음)
    • non-enumerable own property 를 가진 객체(Reanimated 4.7 animated style handle 의 styleUpdaterContainer)는 복사 없이 그대로 반환
  • 그라디언트 color interpolation 제거 (9ee1545): in oklab 등을 RN 그라디언트 문자열에서 제거 — src/native/styles/resolve.ts. 인자가 리스트로 풀릴 때와 변수 하나에서 문자열로 풀릴 때(linear-gradient(var(--g))) 모두 적용. 상류 gradient-contract 테스트의 "oklab 은 표현 불가" 계약은 fork 동작(제거 후 1개 그라디언트로 파싱)으로 바꿈
  • RN 이 지원하는데 빠졌던 CSS 속성 (6aa35ea, 1ea7364): background-size/position/repeat, transform-origin, mix-blend-mode, isolation, cursor, font-variation-settings, radial-gradient(), 접두어 없는 backgroundImage/backgroundSize/backgroundPosition/backgroundRepeat 키 — src/compiler/declarations.ts
  • react-native export condition (ad6235d): 런타임 엔트리를 dist/commonjs 한 벌로 고정. 상류 fix(native): share the :root variable registries across a dual-package split nativewind/react-native-css#410 은 :root 레지스트리만 공유할 뿐 module/commonjs 두 벌 번들(+ colorjs.io 두 벌)은 막지 않아 유지
  • 패키지 메타: 이름 @scatterlab/react-native-css, GitHub Packages publishConfig, repository, peer react-native >=0.88 (접두어 없는 background 키 때문). 나머지는 상류값. yarn.lock 은 상류 lock 에서 yarn install 로 재생성 (차이는 workspace 이름뿐)

테스트

트리 전체 통과 실패
origin/zeta/main 1124 1096 7 (@apply, spacing px-0/py-0, transform scale-* 4건)
upstream/main 1842 1842 0
이 브랜치 1899 1899 0
  • 상류 테스트 중 fork 동작과 충돌하는 기대값만 갱신: experimental_backgroundImage → backgroundImage (variable-lists, gradient-contract), metro/warnings 픽스처에서 fork 가 지원하는 3속성을 다른 미지원 속성으로 교체, oklab 계약 반전
  • 추가: className-with-style 에 ActivityIndicator·ImageBackground·KeyboardAvoidingView·기본 config 의 all-undefined 인라인 스타일 케이스
  • yarn typecheck, yarn lint, yarn build 통과

배포

이 PR 은 레지스트리 배포를 포함하지 않는다. nativewind 가 react-native-css 를 peer 정확 버전으로 핀하므로 배포 시 nativewind 도 함께 올린다.

🤖 Generated with Claude Code

https://claude.ai/code/session_01QfQGER5BSVC2yNVHk7QTQ3

danstepanov and others added 25 commits September 12, 2026 20:52
… 57 (nativewind#451)

* fix: prepare Expo 57 compatibility for RC audit

* docs: record Expo 57 engine RC verification and known limitation

* ci: fix Expo 57 builds and prepare Git dependencies
…#466)

* perf: avoid calculating ruleEffect/styleEffect twice on fresh mounts

* fix: pre-render/unmounted effects can use stale rules/styles

* chore: clean up llm comments in test

* perf: remove redundant call to stylesObs?.get

* chore: simplify comments

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
…e split (nativewind#410)

* fix(native): share the :root variable registries across a dual-package split

Re-cut onto main (a5002c5). The test reads the registries through
jest.requireActual, because main's jest runs no dynamic import.

* refactor(native): state the registry constraints in one line each

---------

Co-authored-by: dan <dan@danstepanov.com>
nativewind#390)

path.resolve separates with backslashes on Windows, so a relative import
resolved against the file never matched the forward-slash package paths
the handlers split on, and was left unrewritten.
* feat(metro): surface compiler warnings during a build

The compiler records every declaration it could not translate, but nothing
read compile().warnings() during a build, so a dropped float or
z-index: auto was silent. The Metro transformer now prints one block per CSS
file: capped in summary mode, listed in full in verbose mode, and printed
again only when the file's warnings change. The warnings option sets the
level, and none silences it.

lightningcss also warns about input it cannot parse, such as an unknown
at-rule or pseudo-element. Those warnings reach a new syntax channel, kept
apart from what React Native cannot express, and the block counts them as
syntax warnings; this package's own @nativeMapping is not reported.

Every recorded value is text, so CompilerWarnings.values is
Record<string, string[]>; the one number, a percentage line-height, is
recorded as the ratio it resolved to.

* docs: describe the syntax warnings in the compiler warnings block

The section showed only dropped declarations, while the block also counts
the warnings lightningcss gives for CSS it cannot parse and lists them
under syntax:.
…ind#431)

vars() and <VariableContextProvider /> mapped every entry of the record
they are given into the runtime's variable record, so an entry whose value
is undefined planted a key holding undefined. Variable lookup is
presence-keyed, so that key read as "set to nothing" and stopped the cascade
before the inherited value, the :root value and the var() fallback.

Both channels now build the record through toVariableRecord, which strips
the -- prefix and skips an entry with no value, the invariant the compiler
already holds. "unset" remains how a variable is deliberately cleared.
…ativewind#475)

getClassNameSelectors reversed lightningcss's selector array in place to
walk it from the subject outwards. A nested rule, such as @media,
@container or &:hover inside a rule, reads its parent's selector list
again, so it saw that selector reversed: `.group .x { @media (…) { … } }`
put the nested declarations on `.group` inside an `.x` container.

The walk now reads a reversed copy, so every rule compiles against the
selector as written.
…vewind#479)

Babel types PluginPass.filename as string | undefined and leaves it
undefined when its caller passes none, so the own-sources guard read
.startsWith off undefined and threw. Each visitor now narrows the
filename once and rewrites nothing without one.

processed.has(path) could never be true, since only the Statement nodes
the plugin generates are added; the set is typed WeakSet<Statement> and
the disjunct is gone.
* ci: add verified RC publication to the release workflow

* ci: wait for npm registry propagation during RC publication
Supersedes nativewind#434, carrying its commit and replacing its exact string key with a 53-bit mixed hash.

Co-authored-by: Yevhenii <evgeny.kotyrlo@gmail.com>
…operties (nativewind#575)

Supersedes nativewind#547.

Co-authored-by: Yevhenii <evgeny.kotyrlo@gmail.com>
…rs do (nativewind#576)

Supersedes nativewind#389.

Co-authored-by: Yevhenii <evgeny.kotyrlo@gmail.com>
…ad of copying or replacing them (nativewind#578)

Supersedes nativewind#487.

Co-authored-by: Yevhenii <evgeny.kotyrlo@gmail.com>
…ors (nativewind#579)

Supersedes nativewind#464 and nativewind#511.

Co-authored-by: Ethan <ethan@zolplay.com>
Co-authored-by: Nate I. <nate@oxy.so>
…tive draws (nativewind#581)

Based on nativewind#393.

Co-authored-by: Yevhenii <evgeny.kotyrlo@gmail.com>
Merge nativewind/react-native-css main (3.1.0-rc.1) and publish as
@scatterlab/react-native-css 3.1.0-rc.1-zeta.1.

Fork patches superseded by upstream and dropped:
- logical padding expansion: upstream compiles padding-block/-inline to
  paddingVertical/Horizontal (nativewind#580)
- percentage scale to ratio: upstream scaleFactor (nativewind#451, nativewind#576)
- container attribute conditions: upstream evaluates group attributes
  against container snapshots (nativewind#451); the fork's disabled-group test passes
- string `style` target merge: upstream layers class and inline styles for
  string targets (nativewind#578)

Fork behavior kept on top of upstream:
- filterCssVariables still drops undefined values and empty arrays and
  returns objects with non-enumerable members (Reanimated handles) as-is
- gradients drop the color interpolation method; radial-gradient support
  uses upstream's colorStop/gradientPosition runtime shape
- unprefixed backgroundImage/Size/Position/Repeat keys, transform-origin,
  mix-blend-mode, isolation, cursor, font-variation-settings
- `react-native` export condition resolving dist/commonjs
- package name, GitHub Packages publishConfig, react-native >=0.88 peer

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Essentials
  • Run ID: c90537d5-e890-4554-8ee6-5fededad1e8a

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

… variable

When a gradient's arguments resolve to a single string, as with
`linear-gradient(var(--g))`, the interpolation method was kept and React
Native dropped the gradient. Strip it on that path too.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@kdwkr
kdwkr merged commit ad45f01 into zeta/main Nov 23, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants