Skip to content

feat(native): animations and transitions on react-native-reanimated - #1049

Merged
owjs3901 merged 48 commits into
mainfrom
feat/react-native-animations
Nov 29, 2026
Merged

owjs3901 merged 48 commits into
mainfrom
feat/react-native-animations

Conversation

@owjs3901

Copy link
Copy Markdown
Contributor

Part of #411, depends on #1048 (base: feat/react-native-states). PR 9 of the React Native plan: animations and transitions on react-native-reanimated (D6).

What it does

As decided in D6, react-native-reanimated (4 or later) runs animations and transitions, but Devup UI does not depend on it. Without it, these are build errors that tell the user to install it.

const fadeIn = keyframes({ from: { opacity: 0 }, '50%': { opacity: 0.5 }, to: { opacity: 1 } })

<Box animationName={fadeIn} animationDuration="400ms" animationIterationCount="infinite" p={2} />
<Image opacity={on ? 1 : 0.6} transition="opacity 300ms, background-color 1s" src={logo} />
<Input transitionProperty="border-color" transitionDuration={200} />
import __Animated from "react-native-reanimated";
const __AnimatedInput = __Animated.createAnimatedComponent(Input);
const fadeIn = { from: { opacity: 0 }, "50%": { opacity: .5 }, to: { opacity: 1 } };
<__Animated.View style={[__s.a, { animationName: fadeIn }]} />
<__Animated.Image source={{ uri: logo }} style={[__s.b, on ? __s.c : __s.d]} />   // transition: "opacity 300ms, backgroundColor 1s"
<__AnimatedInput style={__s.e} />                                                // transitionProperty: "borderColor", transitionDuration: 200
  • keyframes() compiles to the keyframes object Reanimated reads (its CSS animations).
    • Each keyframe's style props are converted as props are: shorthands, units, tokens that are the same in every theme, and values read at runtime.
    • A keyframe whose styles differ by theme, breakpoint, orientation, state or condition is an error, because Reanimated reads it once.
    • The keyframes import is removed.
  • Elements: an element taking any animation* or transition* prop renders Reanimated's animated component.
    • View, Text and Image use Animated.View, Animated.Text and Animated.Image.
    • TextInput and Pressable get Animated.createAnimatedComponent(...), declared once per file.
    • This works through the Themed and Focused wrappers ($c={__Animated.View}).
    • With as, the component given is kept, so the user can pass any animated component.
  • Props:
    • animationName takes the value keyframes() gives. Durations, delays and iteration counts stay as written: transitionDuration={200} stays 200 ms instead of becoming 800px.
    • transition and transitionProperty name CSS properties, which compile to React Native keys (background-color → backgroundColor). A list of properties becomes an array.
    • Directions, fill modes, play states and transitionBehavior are checked keywords.
  • styled() and css():
    • A styled() component of a Devup UI component renders the animated component.
    • css() and styled(Other) pass the styles on. The component given must be animated, such as styled(Animated.View).
  • Detecting Reanimated: withDevupUI() checks whether react-native-reanimated resolves from the project root and passes the result through the transformer settings. That way the setting is also part of Metro's cache key.

API change: codeExtractNative(…, runtime, reanimated)

codeExtractNative in WASM and NAPI takes a new boolean, reanimated, after runtime. Everything that checks the binding ABI is updated for it:

  • libs/binding ((runtime, reanimated)), the WASM export and the NAPI extractNative;
  • the adapter and index.d.cts;
  • argument validation (reanimated:b);
  • the e2e corpus, which adds a case without Reanimated, and the validation positions (55 → 56).

Everything is 0.x and unpublished (D11).

Build errors

  • keyframes imported, or an animation*/transition* prop on an element, in css() or in styled(), when the app has no react-native-reanimated. The message says to install react-native-reanimated 4 or later (npx expo install react-native-reanimated) and restart Metro.
  • animation (the shorthand): write animationName and the other longhands.
  • animationName="fade": animationName takes what keyframes() gives.
  • an animation on an element taking a press, hover or focus style. Reanimated animates a style object, and those styles make style a function. Fix: animate an element inside it.
  • keyframes() not called with one object, a spread in it, a keyframe that is not an object, and a keyframe that differs by theme, breakpoint, state or condition.

Expo example and CI

  • apps/expo adds react-native-reanimated ~4.7.1 and react-native-worklets 0.13.0, the versions Expo SDK 58 bundles. They are only the example's dependencies.
    • The card fades in with keyframes().
    • The logo's opacity has a transition.
  • check-bundle.mjs now also requires:
    • animationName;
    • transitionProperty: "opacity";
    • react-native-reanimated in both bundles.
    • Locally, expo export passes the check (949 modules on iOS).
  • bun.lock: adding the two packages moved the hoisted @babel/generator to 7.x. @babel/core keeps its 8.x under itself. No version changes otherwise.
  • CI: feat/react-native-states is added to the pull_request branches of the workflow. It will be removed when this PR is retargeted.

Tests

  • Rust (insta + rstest) covers:
    • keyframes with computed and numeric keys, runtime and responsive values, and platform blocks;
    • every animation and transition prop on Box, Text, Input, Button and Image;
    • as, Themed and Focused wrappers;
    • an element nested in a prop of a pressable element. This now keeps each element's notes apart; a nested element used to take its parent's press style.
    • styled() and css();
    • every error, with and without Reanimated.
  • cargo test --workspace passes. There are no web snapshot changes.
  • clippy -D warnings and cargo fmt are clean.
  • Local cargo llvm-cov shows every new line covered.
  • bun test for the Metro plugin passes at 100% (a new test covers detecting Reanimated).
  • test:wasm-abi passes.

#411의 일부이며 #1048에 의존합니다 (base: feat/react-native-states). React Native 계획의 9번째 PR로, react-native-reanimated 기반 애니메이션과 트랜지션(D6)입니다.

변경 내용

D6 결정대로 react-native-reanimated(4 이상)가 애니메이션과 트랜지션을 실행하지만, Devup UI는 이 패키지에 의존하지 않습니다. 앱에 Reanimated가 없으면 설치하라는 빌드 에러를 냅니다(위 예시 참고).

  • **keyframes()**는 Reanimated(CSS 애니메이션)가 읽는 keyframes 객체로 컴파일됩니다.
    • 각 keyframe의 style prop은 prop과 같은 방식으로 변환합니다: shorthand, 단위, 모든 테마에서 같은 토큰, 런타임 값.
    • Reanimated는 keyframe을 한 번만 읽습니다. 그래서 테마·breakpoint·방향·상태·조건에 따라 달라지는 keyframe은 에러입니다.
    • keyframes import는 제거됩니다.
  • 요소: animation*이나 transition* prop이 하나라도 있는 요소는 Reanimated의 animated 컴포넌트로 렌더링합니다.
    • View·Text·Image는 Animated.View·Animated.Text·Animated.Image를 씁니다.
    • TextInput·Pressable은 Animated.createAnimatedComponent(...)를 파일마다 한 번 선언해서 씁니다.
    • Themed·Focused wrapper를 거쳐도 동작합니다($c={__Animated.View}).
    • as를 쓰면 주어진 컴포넌트를 그대로 둡니다. 그래서 사용자가 원하는 animated 컴포넌트를 넘길 수 있습니다.
  • prop:
    • animationName은 keyframes() 결과를 받습니다. duration·delay·반복 횟수는 쓴 그대로 둡니다. 예를 들어 transitionDuration={200}은 800px이 아니라 200ms입니다.
    • transition과 transitionProperty는 CSS 속성 이름을 React Native 키로 바꿉니다(background-color → backgroundColor). 여러 속성은 배열이 됩니다.
    • direction·fill mode·play state·transitionBehavior는 키워드인지 검사합니다.
  • styled()와 css():
    • Devup UI 컴포넌트를 styled()한 컴포넌트는 animated 컴포넌트로 렌더링합니다.
    • css()와 styled(Other)는 스타일을 그대로 넘깁니다. 주어진 컴포넌트가 styled(Animated.View)처럼 animated여야 합니다.
  • Reanimated 감지: withDevupUI()가 프로젝트 루트에서 react-native-reanimated가 resolve되는지 확인하고, 그 결과를 transformer 설정으로 넘깁니다. 그래서 이 값도 Metro cache key에 들어갑니다.

API 변경: codeExtractNative(…, runtime, reanimated)

WASM·NAPI의 codeExtractNative가 runtime 뒤에 boolean reanimated를 받습니다. 바인딩 ABI를 검사하는 곳은 모두 함께 갱신했습니다:

  • libs/binding((runtime, reanimated)), WASM export, NAPI extractNative;
  • adapter와 index.d.cts;
  • 인자 검증(reanimated:b);
  • e2e corpus(Reanimated가 없는 케이스 추가)와 validation position(55 → 56).

모두 0.x이며 배포되지 않았습니다(D11).

빌드 에러

  • 앱에 react-native-reanimated가 없는데 keyframes를 import하거나, 요소·css()·styled()에서 animation*/transition*을 쓴 경우. 메시지는 react-native-reanimated 4 이상을 설치하고(npx expo install react-native-reanimated) Metro를 다시 시작하라고 안내합니다.
  • shorthand animation: animationName과 다른 longhand로 쓰세요.
  • animationName="fade": animationName은 keyframes() 결과를 받습니다.
  • press·hover·focus 스타일이 있는 요소의 애니메이션. Reanimated는 style 객체를 애니메이션하는데, 이런 스타일은 style을 함수로 만듭니다. 해결: 안쪽 요소를 애니메이션하세요.
  • 객체 하나로 호출하지 않은 keyframes(), 그 안의 spread, 객체가 아닌 keyframe, 테마·breakpoint·상태·조건에 따라 달라지는 keyframe

Expo 예제와 CI

  • apps/expo에 Expo SDK 58이 번들하는 버전인 react-native-reanimated ~4.7.1과 react-native-worklets 0.13.0을 추가했습니다. 예제의 의존성일 뿐입니다.
    • 카드는 keyframes()로 fade-in합니다.
    • 로고의 opacity에는 transition이 있습니다.
  • check-bundle.mjs는 이제 다음도 확인합니다:
    • animationName;
    • transitionProperty: "opacity";
    • 두 번들 모두의 react-native-reanimated.
    • 로컬에서 expo export가 검사를 통과했습니다(iOS 949 modules).
  • bun.lock: 두 패키지를 추가하면서 hoist된 @babel/generator가 7.x로 바뀌었습니다. @babel/core는 자기 아래에 8.x를 유지합니다. 그 밖의 버전 변경은 없습니다.
  • CI: workflow의 pull_request branches에 feat/react-native-states를 추가했습니다. 이 PR의 base를 바꿀 때 제거합니다.

테스트

  • Rust (insta + rstest)가 다루는 것:
    • 계산된 키와 숫자 키, 런타임·반응형 값, 플랫폼 블록이 든 keyframes;
    • Box·Text·Input·Button·Image의 모든 animation·transition prop;
    • as, Themed·Focused wrapper;
    • pressable 요소의 prop 안에 중첩된 요소. 이제 요소마다 따로 기록하도록 고쳤습니다. 이전에는 중첩 요소가 부모의 press 스타일을 가져가는 문제가 있었습니다.
    • styled()와 css();
    • Reanimated가 있을 때와 없을 때의 모든 에러.
  • cargo test --workspace가 통과합니다. 웹 snapshot 변경은 없습니다.
  • clippy -D warnings와 cargo fmt는 깨끗합니다.
  • 로컬 cargo llvm-cov에서 새로 추가한 줄은 모두 커버됩니다.
  • Metro 플러그인 bun test는 100%로 통과합니다(Reanimated 감지 테스트 추가).
  • test:wasm-abi가 통과합니다.

🤖 Generated with Claude Code

owjs3901 and others added 27 commits November 19, 2026 22:55
Add a Native target to ExtractOption that turns Devup UI elements into
React Native components with their styles hoisted into one
StyleSheet.create per file, and expose it as codeExtractNative in the
WASM and NAPI bindings.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…tive into the ABI checks

Snapshot every supported prop shape, platform and build error of the
native target, list codeExtractNative in the binding ABI guards and the
cross-engine corpus, document it and add its changepack.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…as literals are

A dynamic length such as p={x} reached React Native unscaled, so x = 2
gave padding 2 where the web build gives 8px for the constant. Wrap
values read at runtime in a file-local function that converts them as
the build converts a literal: numbers and numeric strings take the
property's scale (four pixels a unit for lengths), px lengths become
numbers and rem/em lengths become pixels. Colors, keywords and other
text pass through as they are.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… conversion in the changepack

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Add @devup-ui/metro-plugin (experimental, private 0.x): withDevupUI()
points babelTransformerPath at a transformer that runs codeExtractNative
on files importing Devup UI and chains to the upstream transformer
(the config's, else Expo's, else React Native's). Build errors carry
loc and a code frame so Metro reports file:line:col, the upstream AST
locations are moved back to the source through the engine's map, and
the cache key covers the upstream key, devup.json, the engine version
and the options.

Add apps/expo (Expo SDK 58, RN 0.88) and a path-filtered CI job that
exports iOS and Android bundles and checks no @devup-ui/react module
or runtime placeholder is left.

Part of #411.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Resolve `$` tokens and typography of devup.json at build time for React
Native. With one theme every value is a literal and no runtime is imported;
with more, each theme's styles are precomputed and picked by the index
`useThemeIndex()` of the new `@devup-ui/react/native` runtime gives, which
follows the OS appearance and `setTheme`. `_theme*` and the theme API
compile, and `runtime: false` keeps them build errors. The Metro plugin
registers devup.json's theme, and the Expo example gains a theme toggle and
a bundle check that static files do not use the runtime.

Part of #411.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
verify-dist loads every declared entry, and `@devup-ui/react/native`
imports react-native, which is Flow source Bun cannot parse. A virtual
module stands in for it so the entry still loads and exports.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Cover a typography whose token one theme does not define, a static style
merged into a themed one, and a later style checked against a choice that
applies in one theme. A merge that leaves every theme declaring the same
styles now collapses to one static style instead of picking between equal
objects.

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

Responsive arrays, length/shadow/typography tokens with a value at each
breakpoint, responsive values in platform, theme and orientation blocks and
conditions compile to one style object for each run of breakpoints that
share their styles (by breakpoint and theme where both differ). The runtime
store of @devup-ui/react/native also tells the breakpoint of devup.json the
window is at and its orientation through one Dimensions listener that
notifies only when a breakpoint is crossed or the window turns.
_portrait/_landscape apply by orientation. With runtime: false these stay
build errors.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The React Native runtime now reads the window size through Dimensions.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
`_active` and its React Native name `_pressed` make the element a
`Pressable` whose `style` is a function of whether it is pressed:
`({ pressed }) => [styles.a, pressed && styles.b]`. A `Box`, `Flex`,
`Center` or `VStack` with a press style becomes a `Pressable`; a `Button`
already is one. Press styles combine with responsive values, themes,
platforms, orientations and conditions, and need no runtime, so they work
with `runtime: false` too. On a `Text`, an `Image` or an `Input`, and with
`as`, they are build errors.

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

On the web, `_themeDark`, `_landscape` and `_active` win over the element's
other styles whatever the order of the props, as their selectors and media
queries do. On React Native they followed the order of the props, so
`<Box _active={{ bg: 'red' }} bg="blue" />` (the order ESLint sorts props
in) never turned red, and a later `bg` dropped a `_themeDark` one. The
styles of these blocks now come after the element's other styles, at every
level of nesting. Platform blocks keep the order of the props.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts:
#	libs/extractor/src/native/element.rs
#	libs/extractor/src/native/tests.rs
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
`styled(Target)(...parts)`, `` styled(Target)`css text` `` and
`styled(Target, styles)` compile to a function component rendering its
target with the styles they describe, before the `style` it is given. The
parts are those of `css()`; a function in them is called with the props, as
a value or as a part giving what `css()` gives. A Devup UI target keeps the
styles it declares first, a styled `Box` with a press style becomes a
`Pressable`, and the hooks the styles read are called in the component.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
`_hover` and `_focus` read the `hovered` and `focused` that `Pressable`
gives its style function, and make a `Box` a `Pressable` as `_active` does.
An `Input` with `_focus` renders through the runtime's new `Focused`, which
follows its focus events. `_disabled` applies while the element's
`disabled` prop is true, or a `styled()` component's. In `css()` these are
build errors.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
`keyframes()` compiles to the keyframes object react-native-reanimated
reads, and an element taking an `animation*` or `transition*` prop
renders Reanimated's animated component. Reanimated stays out of the
dependencies: `codeExtractNative` takes a `reanimated` argument, which
the Metro plugin sets from whether the project has it, and without it
these are build errors asking to install it.

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

codecov Bot commented Nov 21, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

Files with missing lines Coverage Δ
bindings/devup-ui-binding/src/host.rs 100.00% <ø> (ø)
bindings/devup-ui-wasm/src/lib.rs 100.00% <ø> (ø)
libs/binding/src/output.rs 100.00% <ø> (ø)
libs/extractor/src/native/element.rs 100.00% <100.00%> (ø)
libs/extractor/src/native/element/animation.rs 100.00% <100.00%> (ø)
libs/extractor/src/native/element/css_call.rs 100.00% <100.00%> (ø)
libs/extractor/src/native/element/styled.rs 100.00% <100.00%> (ø)
libs/extractor/src/native/errors.rs 100.00% <ø> (ø)
libs/extractor/src/native/imports.rs 100.00% <100.00%> (ø)
libs/extractor/src/native/mod.rs 100.00% <100.00%> (ø)
... and 8 more

... and 1 file with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

* wip(native): css() and className on React Native

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

* wip(native): drop a probe test

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

* feat(native): css() as CSS text, README and changepack

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

* test(native): pass classes to style_code in the merged test

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

* test(native): cover css() parts around state blocks and empty objects

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
owjs3901 and others added 15 commits November 26, 2026 00:27
… React Native (#1044)

* feat(native): responsive values, responsive tokens and orientation on React Native

Responsive arrays, length/shadow/typography tokens with a value at each
breakpoint, responsive values in platform, theme and orientation blocks and
conditions compile to one style object for each run of breakpoints that
share their styles (by breakpoint and theme where both differ). The runtime
store of @devup-ui/react/native also tells the breakpoint of devup.json the
window is at and its orientation through one Dimensions listener that
notifies only when a breakpoint is crossed or the window turns.
_portrait/_landscape apply by orientation. With runtime: false these stay
build errors.

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

* fix(verify-dist): give the react-native stand-in Dimensions

The React Native runtime now reads the window size through Dimensions.

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Resolve the conflicts left by squash-merging #1041 against the branch's
own un-squashed metro commits, keeping #1040's shared runtime units
import (`@devup-ui/react/scale`) alongside the native runtime entry, and
drop the merged feat/react-native-metro, -responsive and -css branches
from the pull_request triggers.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Resolve the conflicts left by squash-merging #1044 against the branch's
own un-squashed responsive commits, take main's shared runtime units
import for values read at runtime, and drop the merged
feat/react-native-responsive branch from the pull_request triggers.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Resolve the conflicts left by squash-merging #1046 against the branch's
own un-squashed css commits, take main's shared runtime units import for
values read at runtime, and drop the merged feat/react-native-css branch
from the pull_request triggers.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Main now holds #1042 squashed, whose tree matches this branch's merged
feat/react-native-themes, so the merge keeps this branch's tree and only
drops the merged feat/react-native-themes branch from the pull_request
triggers.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Bring in the stack's squash-merge resolutions and main's shared runtime
units import, and drop the merged branches from the pull_request
triggers.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Bring in #1043, #1055 and #1056 from main.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Bring in main (#1042 squashed, #1043, #1055, #1056) and the stack's
squash-merge resolutions, and drop the merged branches from the
pull_request triggers.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Bring in main (#1042 squashed, #1043, #1055, #1056) and the stack's
squash-merge resolutions, and drop the merged branches from the
pull_request triggers.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Bring in main (#1042 squashed, #1043, #1055, #1056) and the stack's
squash-merge resolutions, and drop the merged branches from the
pull_request triggers.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Bring in #1057, #1058, #1061 and #1062 from main, and take #1063's
pull_request trigger, which runs the checks whatever branch a pull
request targets.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Bring in main's #1057, #1058, #1061 and #1062, and take #1063's
pull_request trigger, which runs the checks whatever branch a pull
request targets.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Bring in main's #1057, #1058, #1061 and #1062, and take #1063's
pull_request trigger, which runs the checks whatever branch a pull
request targets.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Bring in main's #1057, #1058, #1061 and #1062, and take #1063's
pull_request trigger, which runs the checks whatever branch a pull
request targets.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
`_hover` and `_focus` read the `hovered` and `focused` that `Pressable`
gives its style function, and make a `Box` a `Pressable` as `_active` does.
An `Input` with `_focus` renders through the runtime's new `Focused`, which
follows its focus events. `_disabled` applies while the element's
`disabled` prop is true, or a `styled()` component's. In `css()` these are
build errors.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Base automatically changed from feat/react-native-states to feat/react-native-styled November 28, 2026 17:40
owjs3901 and others added 3 commits November 29, 2026 02:41
…1050)

* feat(native): compile styled-components/native and @emotion/native

Their `styled` (with `styled.View` and any other `styled.Name`) and
`css` compile as Devup UI's, with numbers as pixels as those packages
read them. Function parts get `props.theme` from the runtime's new
`ThemeProvider`, and `ThemeProvider`, `useTheme` and `withTheme` import
from the React Native runtime, sharing the web compat theme context.

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

* docs(metro-plugin): fix the duplicated README of the compat section

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

* fix(native): cover the pixel conversion of compat numbers in one statement

Tarpaulin counted the deferred `let pixels;` as an uncovered line.

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Merged against the pre-squash tip 34caf28 so content that was
squash-merged does not conflict.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Merged against the pre-squash tip 0b2a16f so content that was
squash-merged does not conflict.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Base automatically changed from feat/react-native-styled to main November 29, 2026 06:39
owjs3901 and others added 2 commits November 29, 2026 15:40
* feat(native): compile styled-components/native and @emotion/native

Their `styled` (with `styled.View` and any other `styled.Name`) and
`css` compile as Devup UI's, with numbers as pixels as those packages
read them. Function parts get `props.theme` from the runtime's new
`ThemeProvider`, and `ThemeProvider`, `useTheme` and `withTheme` import
from the React Native runtime, sharing the web compat theme context.

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

* docs(metro-plugin): fix the duplicated README of the compat section

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

* feat(expo): export and check the example on the web

The Expo example exports for the web through react-native-web with the
same compiled output as iOS and Android. CI checks the web bundle as the
others and opens it in Chromium: the card's theme color and its switch,
the input's focus style and a button press.

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

* fix(native): cover the pixel conversion of compat numbers in one statement

Tarpaulin counted the deferred `let pixels;` as an uncovered line.

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

* feat(native): type the theme and React Native props of each component (#1052)

Metro writes df/theme.d.ts (the tokens of devup.json) and df/native.d.ts
when it reads the config, as the web plugins do. native.d.ts imports the
new @devup-ui/react/native/types, which fills the new DevupElementProps
augmentation point so each component takes the props of the React Native
component it renders. Web types are unchanged. The Expo example now
type-checks in CI.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>

* docs(landing): document React Native and its differences from the web (#1053)

* feat(native): type the theme and React Native props of each component

Metro writes df/theme.d.ts (the tokens of devup.json) and df/native.d.ts
when it reads the config, as the web plugins do. native.d.ts imports the
new @devup-ui/react/native/types, which fills the new DevupElementProps
augmentation point so each component takes the props of the React Native
component it renders. Web types are unchanged. The Expo example now
type-checks in CI.

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

* docs(landing): document React Native and its differences from the web

A React Native page in the docs: setup with Metro, the elements, a table of
what differs from the web (output, runtime, units, themes, breakpoints,
states, selectors, animations, compat) and Expo web.

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Merged against the pre-squash tip 5b9e58b so content that was
squash-merged does not conflict.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@owjs3901
owjs3901 merged commit 1433956 into main Nov 29, 2026
39 checks passed
@owjs3901
owjs3901 deleted the feat/react-native-animations branch November 29, 2026 07:08
owjs3901 added a commit that referenced this pull request Nov 29, 2026
Merged against the pre-squash #1049 tip 731946e so content that was
squash-merged does not conflict.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.

1 participant