Skip to content

chore(release): list breaking changes since 3.0.7 - #588

Merged
danstepanov merged 1 commit into
nativewind:mainfrom
sammoore:chore/breaking-changes-4.0.0-rc.1
Nov 27, 2026
Merged

danstepanov merged 1 commit into
nativewind:mainfrom
sammoore:chore/breaking-changes-4.0.0-rc.1

Conversation

@sammoore

Copy link
Copy Markdown
Contributor

BREAKING CHANGE: (#567, affects Tailwind) Variables registered with inherits: false no longer
pass to children.

BREAKING CHANGE: (#578, affects Tailwind) Transforms (translate-*, rotate-*, scale-*,
skew-*, rotate-x/y-*, transform-*) are now combined in the order browsers use.

BREAKING CHANGE: (#580, affects Tailwind) py-* and px-* now output paddingVertical and
paddingHorizontal. On Android, a TextInput with these classes will lose additional padding it
was wrongly keeping.

BREAKING CHANGE: (#432, affects Tailwind) placeholder: and selection: no longer depend on
className order.

BREAKING CHANGE: (#457, affects Tailwind) Hex colours now always clip rather than gamut-map,
matching browser behavior. In the default Tailwind color palette, 4 of 242 colors change by 1/255.

BREAKING CHANGE: (#585) --x: initial can now override another rule's value or the parent's
value, and initial !important wins as in browsers. This means via-none and *-initial
Tailwind utilities now work with variants, e.g. md:.

BREAKING CHANGE: (#575) Lists read through var() keep their commas.

  • box-shadow: var(--a) var(--b) is now one shadow.
  • Gradient stops and rgb(var(--c) / a) held in variables now output correctly.
  • transform: var(--t) gives a flat list.

BREAKING CHANGE: (#578) Style layering is now more accurate to browser behavior:

  • An !important value on a target other than style now sits on top of the class and inline values instead of replacing them.
  • For object-form mappings, an inline value that holds only CSS variables, or an inline [] or { height: undefined }, no longer removes the class's style.

BREAKING CHANGE: (#578) Pressable callback styles are now combined with class styles instead of
being dropped.

BREAKING CHANGE: (#568, #418) styled() and types changes:

  • A mapping that isn't an object now throws a named error.
  • A nativeStyleMapping entry set to undefined is skipped instead of crashing.

BREAKING CHANGE: (nativewind#567, affects Tailwind) Variables registered with `inherits: false` no longer
  pass to children.

BREAKING CHANGE: (nativewind#578, affects Tailwind) Transforms (`translate-*`, `rotate-*`, `scale-*`,
  `skew-*`, `rotate-x/y-*`, `transform-*`) are now combined in the order browsers use.

BREAKING CHANGE: (nativewind#580, affects Tailwind) `py-*` and `px-*` now output `paddingVertical` and
  `paddingHorizontal`. On Android, a TextInput with these classes will lose additional padding it
  was wrongly keeping.

BREAKING CHANGE: (nativewind#432, affects Tailwind) `placeholder:` and `selection:` no longer depend on
  className order.

BREAKING CHANGE: (nativewind#457, affects Tailwind) Hex colours now always clip rather than gamut-map,
  matching browser behavior. In the default Tailwind color palette, 4 of 242 colors change by 1/255.

BREAKING CHANGE: (nativewind#585) `--x: initial` can now override another rule's value or the parent's
  value, and initial `!important` wins as in browsers. This means `via-none` and `*-initial`
  Tailwind utilities now work with variants, e.g. `md:`.

BREAKING CHANGE: (nativewind#575) Lists read through `var()` keep their commas.
  - `box-shadow: var(--a) var(--b)` is now one shadow.
  - Gradient stops and `rgb(var(--c) / a)` held in variables now output correctly.
  - `transform: var(--t)` gives a flat list.

BREAKING CHANGE: (nativewind#578) Style layering is now more accurate to browser behavior:
  - An `!important` value on a target other than style now sits on top of the class and inline
    values instead of replacing them.
  - For object-form mappings, an inline value that holds only CSS variables, or an inline `[]`
    or `{ height: undefined }`, no longer removes the class's style.

BREAKING CHANGE: (nativewind#578) `Pressable` callback styles are now combined with class styles instead of
  being dropped.

BREAKING CHANGE: (nativewind#568, nativewind#418) `styled()` and types changes:
  - A `mapping` that isn't an object now throws a named error.
  - A `nativeStyleMapping` entry set to undefined is skipped instead of crashing.
@danstepanov
danstepanov force-pushed the chore/breaking-changes-4.0.0-rc.1 branch from 061e2e4 to e3cda9a Compare November 27, 2026 20:44
@danstepanov
danstepanov merged commit 3f562c6 into nativewind:main Nov 27, 2026
5 of 6 checks 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.

2 participants