Skip to content

feat(native): viewport lengths and reduced motion on React Native - #1054

Open
owjs3901 wants to merge 75 commits into
mainfrom
feat/react-native-viewport
Open

owjs3901 wants to merge 75 commits into
mainfrom
feat/react-native-viewport

Conversation

@owjs3901

Copy link
Copy Markdown
Contributor

Part of #411, depends on #1053 (base: feat/react-native-docs). PR 14 of the React Native plan: these are the follow-ups from design §8 step 9, vw/vh and _motionReduce, which the owner asked for. Tailwind stays out of scope (D7).

Viewport lengths

vw, vh, vmin and vmax compile to one multiplication of the window's size. The s/l/d forms (svh, dvh, ...) and vi/vb measure the same window, because an app window has no browser bar that comes and goes.

export function A() {
  return <Box w="50vw" h={[8, "50vh"]} minW="10vmin" />
}
export function A() {
  const __b = __useBreakpoint();
  const __vw = __useWindowWidth();
  const __vh = __useWindowHeight();
  return <Box style={[__s.a, { width: __vw * .5 }, __b >= 1 && { height: __vh * .5 }, { minWidth: Math.min(__vw, __vh) * .1 }]} />;
}
  • Selector-only: the runtime's store still has one Dimensions listener, one Appearance listener and now one AccessibilityInfo listener. Each hook reads its own value through useSyncExternalStore, so React renders a component again only when that value changes. A resize renders again only components that use a viewport length. A component reading only the breakpoint still renders again only when the window crosses a breakpoint, and the runtime tests check this. With this change, the old "layout number" bookkeeping is no longer needed.
  • Precomputed where possible: literals in the same prop or array that are not viewport lengths stay hoisted into StyleSheet.create. Only the viewport length becomes the multiplication, and it applies from its breakpoint in a responsive array.
  • Where it works:
    • responsive arrays, css() (in a component) and styled();
    • only on length props (w, p, m, lineHeight, ...); on any other prop, the text passes through as before.
  • Outside a function component: an element renders through a new Sized wrapper, which also reads the size. Themed does not read the size, so wrapped elements without viewport lengths still ignore resizes.
  • Build errors:
    • an Input with _focus outside a function component that also uses a viewport length (Focused does not read the size);
    • a viewport length in a theme token (write it in the style prop);
    • in keyframes();
    • with runtime: false.

Reduced motion

  • _motionReduce applies while the system asks apps to reduce motion, and _motionSafe applies while it does not, mirroring the web's prefers-reduced-motion shorthands.
  • The runtime reads the setting once with AccessibilityInfo.isReduceMotionEnabled() and then follows reduceMotionChanged.
  • New hook: useReducedMotion. Themed, Sized and Focused also give the style this value, after the orientation.
  • With runtime: false, both blocks are build errors.

Runtime size

Minified Minified + gzip
Before 2,373 B 1,185 B
After 2,777 B 1,302 B

Docs and example

  • The metro-plugin README adds "Viewport lengths" and "Reduced motion" sections, and the limits list is updated.
  • In the /docs/react-native table, the Units row is updated, a _motionReduce/_motionSafe row is added, and the runtime size is updated.
  • Expo example:
    • the card has minH="30vh" and a label has _motionReduce;
    • check-bundle.mjs requires useReducedMotion and useWindowHeight from App.tsx, and ignores node_modules sources, because Reanimated has its own useReducedMotion;
    • check-web.mjs checks that the card's min-height is 30% of the Chromium window.
  • Locally, export, check, check:web and typecheck all pass.

Tests

  • Rust: insta cases cover:
    • every unit;
    • responsive arrays mixed with tokens;
    • elements outside a component (Sized and Themed);
    • css() and styled();
    • the focused-input error;
    • keyframes;
    • runtime: false;
    • motion blocks, including one on an animated element;
    • a viewport token.
    • cargo test --workspace passes, and clippy (pedantic) and fmt are clean. Local llvm-cov shows no new uncovered line.
    • Reads is now a 6-flag array indexed by a Read enum. The runtime's Themed/Sized imports share one Import struct.
  • Runtime bun tests cover:
    • useReducedMotion;
    • window width and height;
    • that breakpoint-only readers do not render again on a resize inside a breakpoint;
    • Sized.
    • Coverage is 100%.
  • CI: feat/react-native-docs is added to the pull_request branches of the workflow.

#411의 일부이며 #1053에 의존합니다 (base: feat/react-native-docs). React Native 계획의 14번째 PR로, owner가 요청한 설계 §8 9단계 후속 작업인 vw/vh와 _motionReduce입니다. Tailwind는 계속 범위 밖입니다(D7).

Viewport 길이

vw·vh·vmin·vmax는 창 크기에 곱셈 한 번을 하는 코드로 컴파일됩니다. 앱 창에는 나타났다 사라지는 브라우저 바가 없으므로, s/l/d 형태(svh, dvh 등)와 vi/vb도 같은 창을 잽니다(위 예시 참고).

  • selector 방식: 런타임 store에는 여전히 Dimensions listener 하나, Appearance listener 하나가 있고, 이제 AccessibilityInfo listener 하나가 더해졌습니다. 각 hook은 useSyncExternalStore로 자기 값만 읽으므로, React는 그 값이 바뀐 컴포넌트만 다시 렌더링합니다. resize하면 viewport 길이를 쓰는 컴포넌트만 다시 렌더링합니다. breakpoint만 읽는 컴포넌트는 여전히 breakpoint를 넘을 때만 다시 렌더링하며, 런타임 테스트가 이를 확인합니다. 이 변경으로 기존의 "layout 숫자" 관리는 필요 없어졌습니다.
  • 가능한 것은 미리 계산: 같은 prop이나 배열에 있는 viewport 길이가 아닌 리터럴은 그대로 StyleSheet.create에 hoist됩니다. viewport 길이만 곱셈이 되며, 반응형 배열에서는 그 breakpoint부터 적용됩니다.
  • 쓸 수 있는 곳:
    • 반응형 배열, (컴포넌트 안의) css(), styled();
    • 길이 prop(w·p·m·lineHeight 등)에서만 적용되며, 다른 prop에서는 텍스트가 이전처럼 그대로 전달됩니다.
  • 함수 컴포넌트 바깥: 요소는 크기도 읽는 새 Sized wrapper로 렌더링됩니다. Themed는 크기를 읽지 않으므로, viewport 길이가 없는 wrapper 요소는 여전히 resize를 무시합니다.
  • 빌드 에러:
    • 함수 컴포넌트 바깥에서 _focus가 있으면서 viewport 길이도 쓰는 Input(Focused는 크기를 읽지 않음);
    • 테마 토큰 안의 viewport 길이(style prop에 직접 쓰면 됨);
    • keyframes() 안;
    • runtime: false.

Reduced motion

  • _motionReduce는 시스템이 앱에 모션을 줄이라고 요청하는 동안, _motionSafe는 그렇지 않은 동안 적용됩니다. 웹의 prefers-reduced-motion 단축 prop과 같습니다.
  • 런타임은 AccessibilityInfo.isReduceMotionEnabled()로 설정을 한 번 읽고, 이후 reduceMotionChanged를 따릅니다.
  • 새 hook: useReducedMotion. Themed·Sized·Focused도 orientation 다음 인자로 이 값을 스타일에 넘깁니다.
  • runtime: false에서는 두 블록 모두 빌드 에러입니다.

런타임 크기

minified min+gz
이전 2,373 B 1,185 B
이후 2,777 B 1,302 B

문서와 예제

  • metro-plugin README에 "Viewport lengths"와 "Reduced motion" 섹션을 추가하고, Limits 목록을 갱신했습니다.
  • /docs/react-native 표에서 단위 행을 갱신하고, _motionReduce/_motionSafe 행을 추가하고, 런타임 크기를 갱신했습니다.
  • Expo 예제:
    • 카드에 minH="30vh"를, 라벨에 _motionReduce를 추가했습니다;
    • check-bundle.mjs는 App.tsx가 useReducedMotion·useWindowHeight를 쓰는지 확인합니다. Reanimated에도 자체 useReducedMotion이 있으므로 node_modules 소스는 제외합니다;
    • check-web.mjs는 카드의 min-height가 Chromium 창 높이의 30%인지 확인합니다.
  • 로컬에서 export·check·check:web·typecheck가 모두 통과합니다.

테스트

  • Rust: insta 케이스가 다루는 것:
    • 모든 단위;
    • 토큰과 섞인 반응형 배열;
    • 컴포넌트 바깥의 요소(Sized와 Themed);
    • css()와 styled();
    • focus된 input 에러;
    • keyframes;
    • runtime: false;
    • 애니메이션 요소에 쓴 경우를 포함한 motion 블록;
    • viewport 토큰.
    • cargo test --workspace가 통과하고, clippy(pedantic)와 fmt는 깨끗합니다. 로컬 llvm-cov에서 새로 커버되지 않은 줄은 없습니다.
    • Reads는 이제 Read enum으로 인덱싱하는 6개 flag 배열입니다. 런타임의 Themed/Sized import는 Import 구조체 하나를 같이 씁니다.
  • 런타임 bun 테스트가 다루는 것:
    • useReducedMotion;
    • 창 너비와 높이;
    • breakpoint 안의 resize에서 breakpoint만 읽는 컴포넌트가 다시 렌더링되지 않는지;
    • Sized.
    • coverage는 100%입니다.
  • CI: workflow의 pull_request branches에 feat/react-native-docs를 추가했습니다.

🤖 Generated with Claude Code

owjs3901 and others added 30 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>
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>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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>
owjs3901 and others added 16 commits November 29, 2026 00:59
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: keep the viewport imports while taking main's
shared runtime units import in place of the inline converter, 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>
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>
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>
…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>
…#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>
…#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>
Base automatically changed from feat/react-native-docs to feat/react-native-web November 28, 2026 17:42
owjs3901 and others added 4 commits November 29, 2026 02:43
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 6b3fd33 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>
Merged against the pre-squash tip e7582ae so content that was
squash-merged does not conflict.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* 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>
Base automatically changed from feat/react-native-web to feat/react-native-animations November 29, 2026 06:40
owjs3901 and others added 4 commits November 29, 2026 15:40
* docs(landing): translate the React Native docs into Korean

Add page.ko.mdx for /docs/react-native, link the English page's language
alternates to it, and give the docs menu's React Native item an i18n key.

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

* style(landing): format the Korean React Native docs table

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* docs(landing): translate the React Native docs into Korean

Add page.ko.mdx for /docs/react-native, link the English page's language
alternates to it, and give the docs menu's React Native item an i18n key.

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

* style(landing): format the Korean React Native docs table

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

* feat(landing): add a React Native section to the home page

Tell readers that Devup UI now compiles to React Native: the Metro plugin,
style props hoisted into StyleSheet.create at build time, and the minimal
runtime that only theme- and window-reading styles import. Link to
/docs/react-native, in English and Korean.

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

* test(e2e): screenshot the home page's React Native section

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

* test(e2e): update the home page baselines for the React Native section

The Linux images are the actual screenshots from CI run 46177777549, identical
across the vinext, singleCss and Next.js e2e jobs. The win32 images of the new
section come from a local run.

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

* test(e2e): temporarily attach the React Native section screenshots

Reverted in the next commit once CI provides the Linux baselines.

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

* test(e2e): add the React Native section's Linux baselines

The images are the section screenshots CI run 46179259194 attached, identical
across the e2e jobs and retries. Drop the temporary attach.

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>
Merged against the pre-squash tip f33ebf0 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-animations to main November 29, 2026 07:08
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