Changelog
Generated from each package's changelog. Packages are versioned independently and published with Changesets; a release is one version PR that bumps everything affected together.
2.0.2
@knitui/media
- A playlist no longer goes deaf in React StrictMode.
useAudioPlaylistControllerkeeps its controller across an effect that React cleans up and runs again (StrictMode in development, a tree hidden and shown again), and the cleanup disposed it for good: the tracks played, whileplayingstayed false, the clock stayed at 0:00 and the queue did not advance. The controller now reconnects when the effect runs again. -
<Video>with its controls no longer fails hydration on a server-rendered page. What the browser can do (Picture in Picture, fullscreen) is read offdocument, so the server rendered the chrome without those buttons and the client rendered it with them. The first client frame now takes the server's answer and the browser's follows in the next render. - Web: pressing play on a second
<Video>now starts it. Two players share one engine, so playing the second swaps the source and plays in the same step; the load cut that play short ("The play() request was interrupted by a new load request") and nothing started it again, and after that neither player would play. A play asked for while a source is loading now starts when the source has loaded. - Updated dependencies[e992532]
- Updated dependencies[e992532]
- Updated dependencies[e992532]
- Updated dependencies[e992532]
- Updated dependencies[e992532] - @knitui/components@1.3.0 - @knitui/hooks@1.3.0 - @knitui/core@1.3.0 - @knitui/icons@1.3.0
2.0.1
@knitui/media
- Fixes for players that share one engine. - Web: a video without CORS headers played without sound when an earlier video on the same player had been sampled for a visualizer. The player now renders a new
<video>element for such a source. - iOS: playing a preloaded audio source that has to be streamed directly (a live or chunked stream) failed. It now plays, as it does without preloading. - A video'sbufferandaudioMixingModeno longer carry over to the next video that set none.buffer: nullinsetPlaybackOptionsgoes back to the player's own buffering. - With exclusive playback on, unmuting a video that started muted (or raising its volume from zero) now pauses the audio, as starting it with sound does.
2.0.0
@knitui/media
- major
@knitui/medianow ships its own native module. The audio and video players that used to come fromexpo-audioandexpo-videoare part of this package, in one module for iOS and Android, and the JavaScript API is the same on web and React Native. Migrating - Removeexpo-audioandexpo-videofrom your dependencies, and installexpo-assetif you don't have it. - Replace theexpo-audioandexpo-videoentries in yourapp.jsonpluginswith one["@knitui/media", { ... }]entry. Its options aremicrophonePermission,recordAudioAndroid,backgroundPlayback,backgroundRecordingandpictureInPicture. - Rebuild the native app. Components, hooks and controllers are unchanged. What you get - The native fixes this kit depended on are now in the package itself. They used to live in a patch that only applied inside this repository, so apps on the published package never had them: a duration and working seek for iOS audio on servers withoutAccept-Ranges, Android waveform sampling without theRECORD_AUDIOpermission, HLS behind a URL without.m3u8, and status updates that keep flowing through a stall. - iOS video gets the same byte-range handling as audio. A file on a server that ignoresRangeused to fail or play with no duration and no seeking. The player now detects that case and serves the file through the shared loader, and leaves every other source on the native path. - Android video retries a source as HLS when the URL did not reveal it, as audio already did. - Sampling is pull-based and shared by audio and video. A visualizer reads the newest decoded audio straight into aFloat32Arrayonce per drawn frame, where the players used to push a 2048-element array through the bridge at 60 Hz. The sampler does nothing while nosampleUpdatelistener is attached. - Video can be sampled.VideoControllerhassetSamplingEnabledand thesampleUpdateevent,capabilities.canSamplesays whether the platform supports it, anduseAudioSpectrumaccepts a video controller. It is also exported from@knitui/media/video. - One control point.useMediaHub()(andgetSharedMediaHub()outside React) returns a hub over both engines:focus,active,togglePlay(),pauseAll()andpreload().useMediaState()now includesfocus. - Preloading for video, to match audio.preload,clearPreloadedSource,clearAllPreloadedSourcesandgetPreloadedSourcesare exported from@knitui/media/video,preloadMedia(source)from the root picks the right one, and<Audio>and<Video>take apreloadprop. On iOS and Android a preloaded video is read back from the on-disk cache. - Video playback options:maxResolution,keepAwake,backgroundPlayback,bufferandaudioMixingMode, as<Video>props and throughcontroller.setPlaybackOptions(), with a capability for each. On webkeepAwakeholds a Screen Wake Lock. - Fixed: on iOS, playing an audio source after preloading it threw a native exception. - Fixed: on iOS, a recorder now records without the app first callingsetAudioMode({ allowsRecording: true }). It used to fail with "Recording not allowed on iOS". An audio mode you set yourself still decides. -crossOriginon a video source. It was audio-only; a CORS video on web can now be sampled, including one loaded withcontroller.replace(). - HLS in browsers that cannot play it themselves (Chrome, Firefox, Edge) goes throughhls.js, loaded on demand the first time such a source plays. The source'sheadersare sent with the playlist and every segment. Changed - Audio and video no longer play over each other by default. Audible playback starting in one pauses the other; a muted video takes nothing over. Passexclusive={false}to<MediaProvider>for the old behaviour. -sampleUpdatecarries one mono channel.channelsused to hold one array per channel on some platforms. -sampleUpdate'stimestampis the playback position in seconds on every platform. - The native modules are namedKnitAudioandKnitVideo, in thedev.knitui.mediaAndroid package, so an app that also installsexpo-audioorexpo-videofor another library builds without a clash. - @knitui/components@1.2.2
1.3.3
@knitui/carousel
- With the keyboard up on native, the first tap on a control in a teleported layer (a
Sheet,Modal,Draweror dropdown) now presses it, even when that layer was rendered inside aScrollArea,VirtualListor native-scrollCarousel. While such a layer is open, those scrollers usekeyboardShouldPersistTaps="handled"unless you set the prop yourself; before, they captured the tap only to dismiss the keyboard. New exports:useTeleportedLayerScopeandresolvePersistTapsgive a rawScrollViewof your own the same behaviour, anduseRegisterTeleportedLayermarks a custom portal layer. - Updated dependencies[e992532]
- Updated dependencies[e992532]
- Updated dependencies[e992532]
- Updated dependencies[e992532]
- Updated dependencies[e992532] - @knitui/components@1.3.0 - @knitui/hooks@1.3.0 - @knitui/core@1.3.0 - @knitui/icons@1.3.0
1.3.2
@knitui/carousel
- A change of the data's shape no longer remounts the slides around the active one. The track went back to its default position in an effect, a frame after the new data had rendered around the old centre; a slide whose index moved with the data (a controlled carousel whose list was re-sorted or cut) fell outside the window for that frame and was unmounted and mounted again, reloading its pictures and losing its state. The position now changes in the render that brings the new shape, and a moved
defaultIndexcounts as a new default position. - One wheel step per gesture on web. A trackpad swipe keeps sending wheel events for a second or more of inertia, well past the cooldown, and each stretch of it over the threshold paged again: one swipe moved two or three pages. A gesture now ends on a pause, or when the deltas grow again after decaying (a second swipe made inside the first one's tail); a mouse wheel's notches still each step. A vertical carousel also leaves a mostly sideways scroll alone, so a horizontal carousel around it (a rail of vertical stacks) receives its swipes.
1.3.1
@knitui/carousel
- Appending items no longer interrupts a drag or settle. Without
loop, a data-length change that leaves the active item in range moves nothing: an item's offset doesn't depend on the count. Before, the carousel re-seated the offset anyway, which cancelled a settle in flight and snapped the card back. Shrinking the data under the active item still clamps to the last one.
1.3.0
@knitui/components
- minor
Avatartakes afallbackSrc: an image tried whensrcfails to load, before the initials or placeholder. Changing either source starts over fromsrc. - minor Escape now closes only the topmost overlay, and focus returns to that layer's own opener. This covers a stack of
Modals andDrawers, and a modalSheetstacked with either of them; previously every open layer closed on one press. A top layer withcloseOnEscape={false}swallows Escape instead of letting it close the layer beneath. New exports:useEscapeLayerputs a custom modal layer on the same stack, andhasOpenEscapeLayerreports whether one is open. - minor With the keyboard up on native, the first tap on a control in a teleported layer (a
Sheet,Modal,Draweror dropdown) now presses it, even when that layer was rendered inside aScrollArea,VirtualListor native-scrollCarousel. While such a layer is open, those scrollers usekeyboardShouldPersistTaps="handled"unless you set the prop yourself; before, they captured the tap only to dismiss the keyboard. New exports:useTeleportedLayerScopeandresolvePersistTapsgive a rawScrollViewof your own the same behaviour, anduseRegisterTeleportedLayermarks a custom portal layer. -
ScrollArea(web) no longer turns Space, Home, End, Page Up/Down or the arrow keys into a scroll when they come from a field or widget inside it (inputs, textareas, selects, buttons, contenteditable, ARIA widgets such as sliders and listboxes). Plain content and the focused viewport still scroll. - Updated dependencies[e992532] - @knitui/hooks@1.3.0 - @knitui/core@1.3.0 - @knitui/icons@1.3.0
@knitui/hooks
- minor
useFocusTraptakes an options object. WithcontainerOnPointer: true, a trap activated right after a pointer or touch input focuses its container instead of its first control, so the browser draws no focus ring on a control the user never reached by keyboard. Tab still lands on that first control, and[data-autofocus]still wins. - @knitui/core@1.3.0
@knitui/dates
- Updated dependencies[e992532]
- Updated dependencies[e992532]
- Updated dependencies[e992532]
- Updated dependencies[e992532]
- Updated dependencies[e992532] - @knitui/components@1.3.0 - @knitui/hooks@1.3.0 - @knitui/core@1.3.0
@knitui/carousel
- minor New
invertDragprop: the carousel runs the other way round under a drag. A drag down (vertical) or right (horizontal) steps toward the end, and a fling likewise. Use it for a deck whose next card sits behind or above, pulled down like a pile. Only the main-axis drag flips: thecrossAxisdrag, the wheel, the arrow keys and the ref keep their directions.scrollMode="native"ignores it.
@knitui/graphics
- minor
AudioMeshtakestransparent. The field is then painted as light on a transparent canvas: its alpha follows the blobs (louder is more of it) and fades to nothing toward the canvas edges. Use it for a glow behind a picture or under a video. Without the prop the mesh fills its canvas as before.AudioMeshandAudioMeshPropsare exported from the package entry. They were only reachable through an internal path. - Updated dependencies[e992532]
- Updated dependencies[e992532]
- Updated dependencies[e992532]
- Updated dependencies[e992532] - @knitui/components@1.3.0 - @knitui/core@1.3.0
@knitui/sheet
- minor - New
closeOnBrowserBack(web, off by default): the browser's Back closes the open sheet, as Android's hardware back does. While open, the sheet owns one history entry and leaves the URL alone. It removes that entry when it closes any other way, and copies the router's own history state into it. - On touch web, a drag down in aSheet.ScrollVieworSheet.FlatListwhose list is at its top now moves the sheet. So does any vertical drag while the sheet isn't at its most-open snap. Before, the browser scrolled the list and the sheet never moved. - A double tap on a sheet's opener leaves the sheet open: a scrim tap in the first 400 ms after opening is ignored. - Opening a sheet by tap or click focuses the panel rather than ✕, so no focus ring shows on ✕. Opened from the keyboard, ✕ still takes focus. - Escape now closes only the topmost overlay, and focus returns to that layer's own opener. This covers a stack of
Modals andDrawers, and a modalSheetstacked with either of them; previously every open layer closed on one press. A top layer withcloseOnEscape={false}swallows Escape instead of letting it close the layer beneath. New exports:useEscapeLayerputs a custom modal layer on the same stack, andhasOpenEscapeLayerreports whether one is open. - Updated dependencies[e992532]
- Updated dependencies[e992532]
- Updated dependencies[e992532]
- Updated dependencies[e992532]
- Updated dependencies[e992532] - @knitui/components@1.3.0 - @knitui/hooks@1.3.0 - @knitui/core@1.3.0 - @knitui/icons@1.3.0
@knitui/mediaquery
- Updated dependencies[e992532] - @knitui/hooks@1.3.0 - @knitui/core@1.3.0
1.2.2
@knitui/core
- Fix sizing, layout and styling issues across controls and fields. -
Avatarkeeps a border inside its size, and the newgetAvatarSize()returns the rendered diameter of each step, so spacers can match it. -UnstyledButtonremoves the browser's button padding and margin, and honours padding and margin props. -Button,ActionIconand other controls keep their height underflex: 1 1 0in a column. Setting aheightbelow the size step now needs a matchingminHeight. -TextInputand otherInputBasefields applyflex,alignSelf,widthand margin props to the outer field, so they size as expected in a row. -Inputlets caller styles beat its focused and error states. Set afocus:clause to keep a focus colour alongside your ownborderColor. - Icons resolve theme colour names, such ascolor="blue9", as other components do. - Fix an Android crash when a numeric style key left a component using the reanimated driver, for every frame on the kit'sanimationsconfig.
@knitui/components
- Fix sizing, layout and styling issues across controls and fields. -
Avatarkeeps a border inside its size, and the newgetAvatarSize()returns the rendered diameter of each step, so spacers can match it. -UnstyledButtonremoves the browser's button padding and margin, and honours padding and margin props. -Button,ActionIconand other controls keep their height underflex: 1 1 0in a column. Setting aheightbelow the size step now needs a matchingminHeight. -TextInputand otherInputBasefields applyflex,alignSelf,widthand margin props to the outer field, so they size as expected in a row. -Inputlets caller styles beat its focused and error states. Set afocus:clause to keep a focus colour alongside your ownborderColor. - Icons resolve theme colour names, such ascolor="blue9", as other components do. - Fix an Android crash when a numeric style key left a component using the reanimated driver, for every frame on the kit'sanimationsconfig. - Updated dependencies[b3248ba] - @knitui/core@1.2.2 - @knitui/icons@1.2.2 - @knitui/hooks@1.2.2
@knitui/hooks
- Updated dependencies[b3248ba] - @knitui/core@1.2.2
@knitui/icons
- Fix sizing, layout and styling issues across controls and fields. -
Avatarkeeps a border inside its size, and the newgetAvatarSize()returns the rendered diameter of each step, so spacers can match it. -UnstyledButtonremoves the browser's button padding and margin, and honours padding and margin props. -Button,ActionIconand other controls keep their height underflex: 1 1 0in a column. Setting aheightbelow the size step now needs a matchingminHeight. -TextInputand otherInputBasefields applyflex,alignSelf,widthand margin props to the outer field, so they size as expected in a row. -Inputlets caller styles beat its focused and error states. Set afocus:clause to keep a focus colour alongside your ownborderColor. - Icons resolve theme colour names, such ascolor="blue9", as other components do. - Fix an Android crash when a numeric style key left a component using the reanimated driver, for every frame on the kit'sanimationsconfig.
@knitui/dates
- Updated dependencies[b3248ba] - @knitui/components@1.2.2 - @knitui/core@1.2.2 - @knitui/hooks@1.2.2
@knitui/graphics
- Updated dependencies[b3248ba] - @knitui/components@1.2.2 - @knitui/core@1.2.2
@knitui/mediaquery
- Updated dependencies[b3248ba] - @knitui/core@1.2.2 - @knitui/hooks@1.2.2
1.2.1
@knitui/components
- Make media playback hold up on real networks. - Fix an Android crash whenever a pressable control with an SVG icon left its
disabledorloadingstate. Media hit it every time buffering ended. -playingnow means playback was asked for, so Pause stays available and pressable through a stall. Audio and video chrome stay enabled while buffering, and video always shows its buffering overlay. -play()after the end restarts,play()after an error retries, andretry()picks up where it stopped.replay()no longer leaves iOS stopped at 0:00. - Errors no longer vanish on Android, so a dead URL shows an error instead of loading forever. A stream that dies mid-track is an error rather than a finished track, and on web a stream that stops responding fails after 30 seconds. - Web audio reports buffering, web video no longer sticks atloadingor leaves unhandledplay()rejections, and a finished playlist starts over. - The audio control row fits narrow screens. The repo'sexpo-audiopatch also gains native fixes. On iOS, remote audio no longer downloads the whole file before it starts, stalls reach JS, servers without range support play from one sequential download, and live, chunked and extension-less HLS sources play. On Android, extension-less HLS plays. These apply only to apps that carry the patch. - @knitui/core@1.2.1 - @knitui/hooks@1.2.1 - @knitui/icons@1.2.1
@knitui/hooks
- @knitui/core@1.2.1
@knitui/dates
- Updated dependencies[c40136a] - @knitui/components@1.2.1 - @knitui/core@1.2.1 - @knitui/hooks@1.2.1
@knitui/graphics
- Updated dependencies[c40136a] - @knitui/components@1.2.1 - @knitui/core@1.2.1
@knitui/sheet
- A modal sheet opened from a scrolled list now reaches the keyboard. The sheet read that list's scroll offset as a gap below its layer, so the panel stopped short of the keyboard and a composer in it sat behind the keyboard.
@knitui/mediaquery
- @knitui/core@1.2.1
- @knitui/hooks@1.2.1
1.2.0
@knitui/components
- minor Image (web): the
<img>takessrcSet,sizes,decodingandfetchPriority(which wins overpriority), and writes the source's intrinsicwidth/height(src={{ uri, width, height }}, or numericwidth/heightprops) as attributes, so the browser picks the variant for the layout width and pixel ratio and knows the aspect ratio before a byte arrives. They land on the<img>itself, never its wrapper, and are in the server HTML, ahead ofsrc, for the preload scanner. A URL ordata:placeholderis now painted as a CSS background on a layer under the photo instead of a second<img>, so a decoded ThumbHash shows in the server HTML before any script runs; it still goes once the photo loads. Native drops the four web attributes before expo-image sees them. - minor Image (web):
sources({ srcSet, type, sizes?, media? }[]) gives the<img>format alternatives — the standard<picture>fallback. Given, the<img>is wrapped in a<picture>(display: contents, so the box layout is unchanged) with one<source>per entry before it, in the server HTML too; the browser downloads the first source whosetypeit decodes, else the<img>'s ownsrc/srcSet. Sosources={[{ type: "image/avif", srcSet: avif, sizes }]}with a WebPsrc/srcSetfetches only the AVIF where it is supported and only the WebP elsewhere. The<img>keeps every attribute, the load / error events and the placeholder behaviour. After an error,fallbackSrcnow renders alone: the failedsrcSet,sizesandsourcesgo with the primary, so the browser can't keep picking them.loading("lazy"default,"eager"for the one LCP image) is now a typed web prop too. Native ignoressourcesandloading(expo-image picks its own format and loads eagerly). - @knitui/core@1.2.0
- @knitui/hooks@1.2.0
- @knitui/icons@1.2.0
@knitui/hooks
- @knitui/core@1.2.0
@knitui/dates
- Updated dependencies[1cb50bc]
- Updated dependencies[1cb50bc] - @knitui/components@1.2.0 - @knitui/core@1.2.0 - @knitui/hooks@1.2.0
@knitui/carousel
- minor Two-axis decks and stack fixes. - New
crossAxisprop: a second drag axis on the same slides,indexand callbacks. On a vertical stack, a vertical drag runs the stack and a horizontal drag pages sideways (crossAxis.mode, default"normal"). Each drag locks to its dominant axis over the first 10px. Wheel and arrow keys follow the same split.next/prev/scrollTotakeaxis: "cross"for side buttons. New types:CarouselCrossAxis,CarouselAxisandCarouselModeConfig. - NewmodeConfig.exitfor the stack modes:"back"sends a card you step past under the incoming card and to the back of the deck, instead of flying it off over the deck ("fly", the default). - Stack modes showed the wrong cards behind the front one. Every slide pastshowLengthstayed visible at the last step, all atzIndex0. They then painted in mount order, so a slide from the end of the data covered the deck. Slides past the deck now fade out and the paint order is strict. Fade, depth, flip, cube, coverflow and parallax had the samezIndextie from one page out and are fixed too. Flip also hides slides a full turn away. - Android: slides now paint in stacking order. The track renders the window in paint order and gives each slide host a settledzIndex(+elevation) prop. Reanimated's animatedzIndexnever re-sorted Android views. - The pan now activates only along the carousel's axis and fails across it (activeOffset*/failOffset*, replaced by any activation config passed ingestureConfig), so a page, map or outer carousel keeps the other axis. - A touch that never turns into a drag now settles. EachonScrollStartgets itsonScrollEnd, autoplay resumes, and an animation the touch interrupted lands on a page. - A controlledindexthat only echoes the carousel's own lastonScrollEnd, committed late, no longer snaps the deck back mid-drag. - A wheel event the carousel handles no longer reaches a parent's wheel handler, small deltas included.
@knitui/graphics
- Updated dependencies[1cb50bc]
- Updated dependencies[1cb50bc] - @knitui/components@1.2.0 - @knitui/core@1.2.0
@knitui/sheet
- minor
Sheetcan now be an app's only bottom surface. New -snapPoints="fit"hugs the content up tomaxHeight, and follows content that changes height while open. -Sheet.FlatListandrenderSheetScrollComponentgive virtualized lists the scroll handoff. -title,withCloseButton,closeButtonProps,paddedandbottomInsetcover the common chrome, wired to the panel's accessible name. -maxWidthcentres the panel on tablets and wide windows. -closeOnBackPress: Android back closes a modal sheet, topmost first. Escape now closes only the topmost modal sheet too. Fixed - An open panel re-settles when its snap points change, with nosnapTocall. - The content region ends at the resting snap, andSheet.Footerstays on screen at every snap. -moveOnKeyboardChangemoves the whole panel, footer included, tracking the keyboard frame by frame while the scroller shrinks. It works on mobile web through the visual viewport, for a sheet opened over a keyboard that is already up, and for a sheet above a tab bar or inside aKeyboardAvoidingView. - Dragging aSheet.ScrollViewmoves the panel on iOS even when the list's recognizer wins, in both directions, and two scrollers can share a panel instead of crashing. - A drag handed from the panel to the list now commits the snap it reached, and a panel returns topositionwhen a controlled parent refuses a snap. -Sheet.ScrollViewforwardsScrollViewprops on native, includingonScroll, and a plain scroller no longer reads as a list at offset 0. - The last open render stays up through the close animation. - The focus trap ends with the close request, not the close animation. - With one snap point the handle is drawn, not a focusable button. - A closed sheet creates no gestures, shared values or listeners. Behaviour changes -moveOnKeyboardChangenow defaults to the value ofmodal, so a modal sheet follows the keyboard. Passfalseto opt out. - The panel's frame is sized to its tallest snap and no longer hasflex: 1. Content sits in a new body region, so a child that relied on the frame's full height now gets the resting height. -Sheet.Footerhas the panel's background and is positioned by the sheet, so it is no longer part of the content's flow. - With a safe-area provider mounted, the footer, or the content if there is no footer, keeps the bottom inset clear. PassbottomInset={0}to opt out. - A persistent sheet (modal={false}) no longer locks page scroll on web, and the lock from stacked modal sheets now survives them closing in any order. -react-native-safe-area-contextis a new peer dependency on native, where it is imported directly. Expo projects already have it; a bare React Native app has to add it. Web does not need it. - A sheet with no scrim no longer takes touches on the page behind it on Android. The drag gesture sat on the full-cover layer, and React Native Gesture Handler records a detector's handlers for any touch inside its child,
box-noneor not, so a persistent sheet dragged itself from a swipe on the map under it. The gesture now sits on the panel when there is no scrim.
@knitui/mediaquery
- @knitui/core@1.2.0
- @knitui/hooks@1.2.0
1.1.5
@knitui/media
- A playlist no longer shows "The connection was lost before the track finished." when it moves to the next track on iOS. A track's finish report could reach the controller twice (its own listener, then the iOS status bridge); the second one arrived after the next track had loaded, and read against that track's position it looked like a stream that gave out. The player then stayed in the error state while the next track played, and the queue stopped advancing. A finish report that follows a load is now ignored until the new source has reported itself loaded. Each status object is also taken once, however many feeds deliver it, so the bridge's later copy of any status can no longer overwrite newer state. A play request the backend dropped is repeated once. On iOS a play made as a track ends can lose to AVFoundation's own pause-at-end, which left the next track of a playlist loaded but silent; when a source reports loaded, idle and not buffering while play is still wanted and was never reported as started, the controller asks again.
1.1.4
@knitui/media
- Fix a web crash in Vite-based apps,
Cannot read properties of undefined (reading 'SharedObject'), where the bundler removed the import that installsglobalThis.expo.
1.1.3
@knitui/carousel
- Updated dependencies[b3248ba] - @knitui/components@1.2.2 - @knitui/core@1.2.2 - @knitui/icons@1.2.2 - @knitui/hooks@1.2.2
@knitui/media
- Updated dependencies[b3248ba] - @knitui/components@1.2.2 - @knitui/core@1.2.2 - @knitui/icons@1.2.2 - @knitui/hooks@1.2.2
@knitui/sheet
- Updated dependencies[b3248ba] - @knitui/components@1.2.2 - @knitui/core@1.2.2 - @knitui/icons@1.2.2 - @knitui/hooks@1.2.2
1.1.2
@knitui/carousel
- Updated dependencies[c40136a] - @knitui/components@1.2.1 - @knitui/core@1.2.1 - @knitui/hooks@1.2.1 - @knitui/icons@1.2.1
@knitui/media
- Make media playback hold up on real networks. - Fix an Android crash whenever a pressable control with an SVG icon left its
disabledorloadingstate. Media hit it every time buffering ended. -playingnow means playback was asked for, so Pause stays available and pressable through a stall. Audio and video chrome stay enabled while buffering, and video always shows its buffering overlay. -play()after the end restarts,play()after an error retries, andretry()picks up where it stopped.replay()no longer leaves iOS stopped at 0:00. - Errors no longer vanish on Android, so a dead URL shows an error instead of loading forever. A stream that dies mid-track is an error rather than a finished track, and on web a stream that stops responding fails after 30 seconds. - Web audio reports buffering, web video no longer sticks atloadingor leaves unhandledplay()rejections, and a finished playlist starts over. - The audio control row fits narrow screens. The repo'sexpo-audiopatch also gains native fixes. On iOS, remote audio no longer downloads the whole file before it starts, stalls reach JS, servers without range support play from one sequential download, and live, chunked and extension-less HLS sources play. On Android, extension-less HLS plays. These apply only to apps that carry the patch. - Updated dependencies[c40136a] - @knitui/components@1.2.1 - @knitui/core@1.2.1 - @knitui/hooks@1.2.1 - @knitui/icons@1.2.1
@knitui/sheet
- Updated dependencies[c40136a] - @knitui/components@1.2.1 - @knitui/core@1.2.1 - @knitui/hooks@1.2.1 - @knitui/icons@1.2.1
1.1.1
@knitui/carousel
- Updated dependencies[1cb50bc]
- Updated dependencies[1cb50bc] - @knitui/components@1.2.0 - @knitui/core@1.2.0 - @knitui/hooks@1.2.0 - @knitui/icons@1.2.0
@knitui/media
- Updated dependencies[1cb50bc]
- Updated dependencies[1cb50bc] - @knitui/components@1.2.0 - @knitui/core@1.2.0 - @knitui/hooks@1.2.0 - @knitui/icons@1.2.0
@knitui/sheet
- Updated dependencies[1cb50bc]
- Updated dependencies[1cb50bc] - @knitui/components@1.2.0 - @knitui/core@1.2.0 - @knitui/hooks@1.2.0 - @knitui/icons@1.2.0
@knitui/plugins
- @knitui/core@1.3.0
1.1.0
@knitui/core
- minor Knit UI now targets Expo SDK 58: React Native 0.88, React 19.3, Reanimated 4.7, Worklets 0.13, React Native Gesture Handler 3.3 and Skia 2.14. Apps must be on SDK 58. Apps still on SDK 57 should pin
@knitui/*to~1.0.0until they upgrade Expo. See the "Upgrading to Knit UI 1.1" guide. Peer and dependency changes -@knitui/iconsand@knitui/emojipeer onreact@19.3.0andreact-native-svg@15.16.0. -@knitui/graphicspeers on@shopify/react-native-skia@2.14.0. -@knitui/componentsdepends onexpo-image ~58.0.15. -@knitui/mediadepends onexpo-audio ~58.0.9andexpo-video ~58.0.11. The Android playback-sampling and iOS duration patches were ported to expo-audio 58.0.9. React Native 0.88 fix in `@knitui/media`Audio,Video,AudioPlaylistandAudioRecordercrashed on native with "undefined is not a function". They detected their web DOM element by checking for anaddEventListenerkey, and React Native 0.88 elements now carry that key (set toundefined). They now check the platform instead. Skia 2.14 fix in `@knitui/graphics`AudioMeshcrashed native apps with "Incorrect uniform size for: u_points. Expected 12 got 4". React Native Skia 2.14's native recorder reads only the first 4 values of a typed-array uniform. The mesh now passes its uniforms as plain arrays, still reused across frames. Web fixes -@knitui/mediano longer crashes web apps without theexpoentry (such as Next) with "Cannot read properties of undefined (reading 'SharedObject')". expo-audio 58's web player, recorder and playlist needglobalThis.expowhen they load, as expo-video's already did. The kit now installs it before both. On SDK 58,expo-modules-coreresolves to a build entry that itssideEffectslist leaves out, so production bundlers dropped the old bare import. -@knitui/plugins/next-pluginalso maps@react-native/assets-registry/registryto react-native-web's asset registry. Its 0.88 source mixes ESM and CommonJS, which brokereact-native-svgon web with "ES Modules may not assign module.exports". Known iOS issue on SDK 58: React Native 0.88 builds React from a precompiled framework, and bothreact-native-teleport@1.2.2(used by Portal) and@maplibre/maplibre-react-native@11.5.0fail to compile because of it. They import"RCTFabricComponentsPlugins.h"instead of<React/RCTFabricComponentsPlugins.h>. Until upstream fixes land, apply the same one-line include change with a pnpm or patch-package patch, or setios.buildReactNativeFromSourcetotrue. The precompiled framework also leaves out React Native'sSampleTurboModule, whichreact-native@0.88.0still lists as a module to set up on the main queue at startup. Debug builds then show an "Unable to find module for SampleTurboModule" red box on every launch (release builds only log it). Remove theSampleTurboModuleentry fromcodegenConfig.libraries[0].ios.modulesinreact-native/package.jsonwith a patch and re-runpod install, or build React Native from source. Gesture Handler 3 Every kit gesture now uses the Gesture Handler 3 hook API (usePanGesture,useNativeGesture) instead of the deprecatedGesture.*builder. This covers Modal and Drawer drag-to-dismiss, the ScrollArea 2D pan, Sheet drag, Carousel drag and SwipeCard. Reanimated 4.7 ignores hook dependency arrays on native and logs a warning when one is passed. The kit now passes them on the web only, so apps no longer see "Dependencies should only be used on the web" from kit components. Breaking change in@knitui/carousel:gestureConfigis now a config object (the newCarouselGestureConfigtype) instead of a builder callback. Migrate like this: ``tsx // before <Carousel gestureConfig={(g) => g.activeOffsetX([-10, 10]).simultaneousWithExternalGesture(other)} /> // after <Carousel gestureConfig={{ activeOffsetX: [-10, 10], simultaneousWith: other }} />`**React Native 0.88 types** The kit's native ref types now use RN's instance types (ScrollViewInstance,ViewInstance).EffectView'srefandKeyboardAwareScrollView's forwarded ref are typed with these instance types. TheInputverticalAlignprop still works: React Native 0.88 dropped it, so the kit now maps it ontotextAlignVertical`. - minor Overlays no longer draw over the screen in front of a backgrounded stack screen. -
@knitui/core:<Provider>takes an optionaluseScreenFocushook, such as React Navigation's or Expo Router's focus state wrapped so it returnstrueoutside a navigator.useScreenFocused()reads the current value. Without the prop, every screen counts as focused and nothing changes. -@knitui/components: Popover, Menu, Tooltip, Combobox, Modal, Drawer and Affix render through the newOverlayPortal. While their screen is unfocused they stay inside that screen instead of teleporting into the shared host, and they come back, still open, when it is focused again.OverlayPortalis exported for custom overlays. -@knitui/sheet: a modalSheetfollows its screen's focus the same way. -@knitui/media: when the active player's screen is frozen in a navigation stack, the shared video surface now stays out of sight instead of drawing at the top of the app. See "Overlays in a navigation stack" on the Portal docs page for the Expo Router hook.
@knitui/components
- minor Knit UI now targets Expo SDK 58: React Native 0.88, React 19.3, Reanimated 4.7, Worklets 0.13, React Native Gesture Handler 3.3 and Skia 2.14. Apps must be on SDK 58. Apps still on SDK 57 should pin
@knitui/*to~1.0.0until they upgrade Expo. See the "Upgrading to Knit UI 1.1" guide. Peer and dependency changes -@knitui/iconsand@knitui/emojipeer onreact@19.3.0andreact-native-svg@15.16.0. -@knitui/graphicspeers on@shopify/react-native-skia@2.14.0. -@knitui/componentsdepends onexpo-image ~58.0.15. -@knitui/mediadepends onexpo-audio ~58.0.9andexpo-video ~58.0.11. The Android playback-sampling and iOS duration patches were ported to expo-audio 58.0.9. React Native 0.88 fix in `@knitui/media`Audio,Video,AudioPlaylistandAudioRecordercrashed on native with "undefined is not a function". They detected their web DOM element by checking for anaddEventListenerkey, and React Native 0.88 elements now carry that key (set toundefined). They now check the platform instead. Skia 2.14 fix in `@knitui/graphics`AudioMeshcrashed native apps with "Incorrect uniform size for: u_points. Expected 12 got 4". React Native Skia 2.14's native recorder reads only the first 4 values of a typed-array uniform. The mesh now passes its uniforms as plain arrays, still reused across frames. Web fixes -@knitui/mediano longer crashes web apps without theexpoentry (such as Next) with "Cannot read properties of undefined (reading 'SharedObject')". expo-audio 58's web player, recorder and playlist needglobalThis.expowhen they load, as expo-video's already did. The kit now installs it before both. On SDK 58,expo-modules-coreresolves to a build entry that itssideEffectslist leaves out, so production bundlers dropped the old bare import. -@knitui/plugins/next-pluginalso maps@react-native/assets-registry/registryto react-native-web's asset registry. Its 0.88 source mixes ESM and CommonJS, which brokereact-native-svgon web with "ES Modules may not assign module.exports". Known iOS issue on SDK 58: React Native 0.88 builds React from a precompiled framework, and bothreact-native-teleport@1.2.2(used by Portal) and@maplibre/maplibre-react-native@11.5.0fail to compile because of it. They import"RCTFabricComponentsPlugins.h"instead of<React/RCTFabricComponentsPlugins.h>. Until upstream fixes land, apply the same one-line include change with a pnpm or patch-package patch, or setios.buildReactNativeFromSourcetotrue. The precompiled framework also leaves out React Native'sSampleTurboModule, whichreact-native@0.88.0still lists as a module to set up on the main queue at startup. Debug builds then show an "Unable to find module for SampleTurboModule" red box on every launch (release builds only log it). Remove theSampleTurboModuleentry fromcodegenConfig.libraries[0].ios.modulesinreact-native/package.jsonwith a patch and re-runpod install, or build React Native from source. Gesture Handler 3 Every kit gesture now uses the Gesture Handler 3 hook API (usePanGesture,useNativeGesture) instead of the deprecatedGesture.*builder. This covers Modal and Drawer drag-to-dismiss, the ScrollArea 2D pan, Sheet drag, Carousel drag and SwipeCard. Reanimated 4.7 ignores hook dependency arrays on native and logs a warning when one is passed. The kit now passes them on the web only, so apps no longer see "Dependencies should only be used on the web" from kit components. Breaking change in@knitui/carousel:gestureConfigis now a config object (the newCarouselGestureConfigtype) instead of a builder callback. Migrate like this: ``tsx // before <Carousel gestureConfig={(g) => g.activeOffsetX([-10, 10]).simultaneousWithExternalGesture(other)} /> // after <Carousel gestureConfig={{ activeOffsetX: [-10, 10], simultaneousWith: other }} />`**React Native 0.88 types** The kit's native ref types now use RN's instance types (ScrollViewInstance,ViewInstance).EffectView'srefandKeyboardAwareScrollView's forwarded ref are typed with these instance types. TheInputverticalAlignprop still works: React Native 0.88 dropped it, so the kit now maps it ontotextAlignVertical`. - minor Overlays no longer draw over the screen in front of a backgrounded stack screen. -
@knitui/core:<Provider>takes an optionaluseScreenFocushook, such as React Navigation's or Expo Router's focus state wrapped so it returnstrueoutside a navigator.useScreenFocused()reads the current value. Without the prop, every screen counts as focused and nothing changes. -@knitui/components: Popover, Menu, Tooltip, Combobox, Modal, Drawer and Affix render through the newOverlayPortal. While their screen is unfocused they stay inside that screen instead of teleporting into the shared host, and they come back, still open, when it is focused again.OverlayPortalis exported for custom overlays. -@knitui/sheet: a modalSheetfollows its screen's focus the same way. -@knitui/media: when the active player's screen is frozen in a navigation stack, the shared video surface now stays out of sight instead of drawing at the top of the app. See "Overlays in a navigation stack" on the Portal docs page for the Expo Router hook. -
variant="gradient"without agradientprop now paints the theme gradient (color5tocolor9at 45°), as documented, instead of nothing. This coversActionIcon,Alert,Avatar,Badge,Button,CloseButton,PillandThemeIcon. Agradientprop still overrides it. - Updated dependencies[475f89d]
- Updated dependencies[475f89d] - @knitui/core@1.1.0 - @knitui/hooks@1.1.0 - @knitui/icons@1.1.0
@knitui/hooks
- minor Knit UI now targets Expo SDK 58: React Native 0.88, React 19.3, Reanimated 4.7, Worklets 0.13, React Native Gesture Handler 3.3 and Skia 2.14. Apps must be on SDK 58. Apps still on SDK 57 should pin
@knitui/*to~1.0.0until they upgrade Expo. See the "Upgrading to Knit UI 1.1" guide. Peer and dependency changes -@knitui/iconsand@knitui/emojipeer onreact@19.3.0andreact-native-svg@15.16.0. -@knitui/graphicspeers on@shopify/react-native-skia@2.14.0. -@knitui/componentsdepends onexpo-image ~58.0.15. -@knitui/mediadepends onexpo-audio ~58.0.9andexpo-video ~58.0.11. The Android playback-sampling and iOS duration patches were ported to expo-audio 58.0.9. React Native 0.88 fix in `@knitui/media`Audio,Video,AudioPlaylistandAudioRecordercrashed on native with "undefined is not a function". They detected their web DOM element by checking for anaddEventListenerkey, and React Native 0.88 elements now carry that key (set toundefined). They now check the platform instead. Skia 2.14 fix in `@knitui/graphics`AudioMeshcrashed native apps with "Incorrect uniform size for: u_points. Expected 12 got 4". React Native Skia 2.14's native recorder reads only the first 4 values of a typed-array uniform. The mesh now passes its uniforms as plain arrays, still reused across frames. Web fixes -@knitui/mediano longer crashes web apps without theexpoentry (such as Next) with "Cannot read properties of undefined (reading 'SharedObject')". expo-audio 58's web player, recorder and playlist needglobalThis.expowhen they load, as expo-video's already did. The kit now installs it before both. On SDK 58,expo-modules-coreresolves to a build entry that itssideEffectslist leaves out, so production bundlers dropped the old bare import. -@knitui/plugins/next-pluginalso maps@react-native/assets-registry/registryto react-native-web's asset registry. Its 0.88 source mixes ESM and CommonJS, which brokereact-native-svgon web with "ES Modules may not assign module.exports". Known iOS issue on SDK 58: React Native 0.88 builds React from a precompiled framework, and bothreact-native-teleport@1.2.2(used by Portal) and@maplibre/maplibre-react-native@11.5.0fail to compile because of it. They import"RCTFabricComponentsPlugins.h"instead of<React/RCTFabricComponentsPlugins.h>. Until upstream fixes land, apply the same one-line include change with a pnpm or patch-package patch, or setios.buildReactNativeFromSourcetotrue. The precompiled framework also leaves out React Native'sSampleTurboModule, whichreact-native@0.88.0still lists as a module to set up on the main queue at startup. Debug builds then show an "Unable to find module for SampleTurboModule" red box on every launch (release builds only log it). Remove theSampleTurboModuleentry fromcodegenConfig.libraries[0].ios.modulesinreact-native/package.jsonwith a patch and re-runpod install, or build React Native from source. Gesture Handler 3 Every kit gesture now uses the Gesture Handler 3 hook API (usePanGesture,useNativeGesture) instead of the deprecatedGesture.*builder. This covers Modal and Drawer drag-to-dismiss, the ScrollArea 2D pan, Sheet drag, Carousel drag and SwipeCard. Reanimated 4.7 ignores hook dependency arrays on native and logs a warning when one is passed. The kit now passes them on the web only, so apps no longer see "Dependencies should only be used on the web" from kit components. Breaking change in@knitui/carousel:gestureConfigis now a config object (the newCarouselGestureConfigtype) instead of a builder callback. Migrate like this: ``tsx // before <Carousel gestureConfig={(g) => g.activeOffsetX([-10, 10]).simultaneousWithExternalGesture(other)} /> // after <Carousel gestureConfig={{ activeOffsetX: [-10, 10], simultaneousWith: other }} />`**React Native 0.88 types** The kit's native ref types now use RN's instance types (ScrollViewInstance,ViewInstance).EffectView'srefandKeyboardAwareScrollView's forwarded ref are typed with these instance types. TheInputverticalAlignprop still works: React Native 0.88 dropped it, so the kit now maps it ontotextAlignVertical`. - Updated dependencies[475f89d]
- Updated dependencies[475f89d] - @knitui/core@1.1.0
@knitui/icons
- minor Knit UI now targets Expo SDK 58: React Native 0.88, React 19.3, Reanimated 4.7, Worklets 0.13, React Native Gesture Handler 3.3 and Skia 2.14. Apps must be on SDK 58. Apps still on SDK 57 should pin
@knitui/*to~1.0.0until they upgrade Expo. See the "Upgrading to Knit UI 1.1" guide. Peer and dependency changes -@knitui/iconsand@knitui/emojipeer onreact@19.3.0andreact-native-svg@15.16.0. -@knitui/graphicspeers on@shopify/react-native-skia@2.14.0. -@knitui/componentsdepends onexpo-image ~58.0.15. -@knitui/mediadepends onexpo-audio ~58.0.9andexpo-video ~58.0.11. The Android playback-sampling and iOS duration patches were ported to expo-audio 58.0.9. React Native 0.88 fix in `@knitui/media`Audio,Video,AudioPlaylistandAudioRecordercrashed on native with "undefined is not a function". They detected their web DOM element by checking for anaddEventListenerkey, and React Native 0.88 elements now carry that key (set toundefined). They now check the platform instead. Skia 2.14 fix in `@knitui/graphics`AudioMeshcrashed native apps with "Incorrect uniform size for: u_points. Expected 12 got 4". React Native Skia 2.14's native recorder reads only the first 4 values of a typed-array uniform. The mesh now passes its uniforms as plain arrays, still reused across frames. Web fixes -@knitui/mediano longer crashes web apps without theexpoentry (such as Next) with "Cannot read properties of undefined (reading 'SharedObject')". expo-audio 58's web player, recorder and playlist needglobalThis.expowhen they load, as expo-video's already did. The kit now installs it before both. On SDK 58,expo-modules-coreresolves to a build entry that itssideEffectslist leaves out, so production bundlers dropped the old bare import. -@knitui/plugins/next-pluginalso maps@react-native/assets-registry/registryto react-native-web's asset registry. Its 0.88 source mixes ESM and CommonJS, which brokereact-native-svgon web with "ES Modules may not assign module.exports". Known iOS issue on SDK 58: React Native 0.88 builds React from a precompiled framework, and bothreact-native-teleport@1.2.2(used by Portal) and@maplibre/maplibre-react-native@11.5.0fail to compile because of it. They import"RCTFabricComponentsPlugins.h"instead of<React/RCTFabricComponentsPlugins.h>. Until upstream fixes land, apply the same one-line include change with a pnpm or patch-package patch, or setios.buildReactNativeFromSourcetotrue. The precompiled framework also leaves out React Native'sSampleTurboModule, whichreact-native@0.88.0still lists as a module to set up on the main queue at startup. Debug builds then show an "Unable to find module for SampleTurboModule" red box on every launch (release builds only log it). Remove theSampleTurboModuleentry fromcodegenConfig.libraries[0].ios.modulesinreact-native/package.jsonwith a patch and re-runpod install, or build React Native from source. Gesture Handler 3 Every kit gesture now uses the Gesture Handler 3 hook API (usePanGesture,useNativeGesture) instead of the deprecatedGesture.*builder. This covers Modal and Drawer drag-to-dismiss, the ScrollArea 2D pan, Sheet drag, Carousel drag and SwipeCard. Reanimated 4.7 ignores hook dependency arrays on native and logs a warning when one is passed. The kit now passes them on the web only, so apps no longer see "Dependencies should only be used on the web" from kit components. Breaking change in@knitui/carousel:gestureConfigis now a config object (the newCarouselGestureConfigtype) instead of a builder callback. Migrate like this: ``tsx // before <Carousel gestureConfig={(g) => g.activeOffsetX([-10, 10]).simultaneousWithExternalGesture(other)} /> // after <Carousel gestureConfig={{ activeOffsetX: [-10, 10], simultaneousWith: other }} />`**React Native 0.88 types** The kit's native ref types now use RN's instance types (ScrollViewInstance,ViewInstance).EffectView'srefandKeyboardAwareScrollView's forwarded ref are typed with these instance types. TheInputverticalAlignprop still works: React Native 0.88 dropped it, so the kit now maps it ontotextAlignVertical`.
@knitui/emoji
- minor Knit UI now targets Expo SDK 58: React Native 0.88, React 19.3, Reanimated 4.7, Worklets 0.13, React Native Gesture Handler 3.3 and Skia 2.14. Apps must be on SDK 58. Apps still on SDK 57 should pin
@knitui/*to~1.0.0until they upgrade Expo. See the "Upgrading to Knit UI 1.1" guide. Peer and dependency changes -@knitui/iconsand@knitui/emojipeer onreact@19.3.0andreact-native-svg@15.16.0. -@knitui/graphicspeers on@shopify/react-native-skia@2.14.0. -@knitui/componentsdepends onexpo-image ~58.0.15. -@knitui/mediadepends onexpo-audio ~58.0.9andexpo-video ~58.0.11. The Android playback-sampling and iOS duration patches were ported to expo-audio 58.0.9. React Native 0.88 fix in `@knitui/media`Audio,Video,AudioPlaylistandAudioRecordercrashed on native with "undefined is not a function". They detected their web DOM element by checking for anaddEventListenerkey, and React Native 0.88 elements now carry that key (set toundefined). They now check the platform instead. Skia 2.14 fix in `@knitui/graphics`AudioMeshcrashed native apps with "Incorrect uniform size for: u_points. Expected 12 got 4". React Native Skia 2.14's native recorder reads only the first 4 values of a typed-array uniform. The mesh now passes its uniforms as plain arrays, still reused across frames. Web fixes -@knitui/mediano longer crashes web apps without theexpoentry (such as Next) with "Cannot read properties of undefined (reading 'SharedObject')". expo-audio 58's web player, recorder and playlist needglobalThis.expowhen they load, as expo-video's already did. The kit now installs it before both. On SDK 58,expo-modules-coreresolves to a build entry that itssideEffectslist leaves out, so production bundlers dropped the old bare import. -@knitui/plugins/next-pluginalso maps@react-native/assets-registry/registryto react-native-web's asset registry. Its 0.88 source mixes ESM and CommonJS, which brokereact-native-svgon web with "ES Modules may not assign module.exports". Known iOS issue on SDK 58: React Native 0.88 builds React from a precompiled framework, and bothreact-native-teleport@1.2.2(used by Portal) and@maplibre/maplibre-react-native@11.5.0fail to compile because of it. They import"RCTFabricComponentsPlugins.h"instead of<React/RCTFabricComponentsPlugins.h>. Until upstream fixes land, apply the same one-line include change with a pnpm or patch-package patch, or setios.buildReactNativeFromSourcetotrue. The precompiled framework also leaves out React Native'sSampleTurboModule, whichreact-native@0.88.0still lists as a module to set up on the main queue at startup. Debug builds then show an "Unable to find module for SampleTurboModule" red box on every launch (release builds only log it). Remove theSampleTurboModuleentry fromcodegenConfig.libraries[0].ios.modulesinreact-native/package.jsonwith a patch and re-runpod install, or build React Native from source. Gesture Handler 3 Every kit gesture now uses the Gesture Handler 3 hook API (usePanGesture,useNativeGesture) instead of the deprecatedGesture.*builder. This covers Modal and Drawer drag-to-dismiss, the ScrollArea 2D pan, Sheet drag, Carousel drag and SwipeCard. Reanimated 4.7 ignores hook dependency arrays on native and logs a warning when one is passed. The kit now passes them on the web only, so apps no longer see "Dependencies should only be used on the web" from kit components. Breaking change in@knitui/carousel:gestureConfigis now a config object (the newCarouselGestureConfigtype) instead of a builder callback. Migrate like this: ``tsx // before <Carousel gestureConfig={(g) => g.activeOffsetX([-10, 10]).simultaneousWithExternalGesture(other)} /> // after <Carousel gestureConfig={{ activeOffsetX: [-10, 10], simultaneousWith: other }} />`**React Native 0.88 types** The kit's native ref types now use RN's instance types (ScrollViewInstance,ViewInstance).EffectView'srefandKeyboardAwareScrollView's forwarded ref are typed with these instance types. TheInputverticalAlignprop still works: React Native 0.88 dropped it, so the kit now maps it ontotextAlignVertical`.
@knitui/dates
- minor Knit UI now targets Expo SDK 58: React Native 0.88, React 19.3, Reanimated 4.7, Worklets 0.13, React Native Gesture Handler 3.3 and Skia 2.14. Apps must be on SDK 58. Apps still on SDK 57 should pin
@knitui/*to~1.0.0until they upgrade Expo. See the "Upgrading to Knit UI 1.1" guide. Peer and dependency changes -@knitui/iconsand@knitui/emojipeer onreact@19.3.0andreact-native-svg@15.16.0. -@knitui/graphicspeers on@shopify/react-native-skia@2.14.0. -@knitui/componentsdepends onexpo-image ~58.0.15. -@knitui/mediadepends onexpo-audio ~58.0.9andexpo-video ~58.0.11. The Android playback-sampling and iOS duration patches were ported to expo-audio 58.0.9. React Native 0.88 fix in `@knitui/media`Audio,Video,AudioPlaylistandAudioRecordercrashed on native with "undefined is not a function". They detected their web DOM element by checking for anaddEventListenerkey, and React Native 0.88 elements now carry that key (set toundefined). They now check the platform instead. Skia 2.14 fix in `@knitui/graphics`AudioMeshcrashed native apps with "Incorrect uniform size for: u_points. Expected 12 got 4". React Native Skia 2.14's native recorder reads only the first 4 values of a typed-array uniform. The mesh now passes its uniforms as plain arrays, still reused across frames. Web fixes -@knitui/mediano longer crashes web apps without theexpoentry (such as Next) with "Cannot read properties of undefined (reading 'SharedObject')". expo-audio 58's web player, recorder and playlist needglobalThis.expowhen they load, as expo-video's already did. The kit now installs it before both. On SDK 58,expo-modules-coreresolves to a build entry that itssideEffectslist leaves out, so production bundlers dropped the old bare import. -@knitui/plugins/next-pluginalso maps@react-native/assets-registry/registryto react-native-web's asset registry. Its 0.88 source mixes ESM and CommonJS, which brokereact-native-svgon web with "ES Modules may not assign module.exports". Known iOS issue on SDK 58: React Native 0.88 builds React from a precompiled framework, and bothreact-native-teleport@1.2.2(used by Portal) and@maplibre/maplibre-react-native@11.5.0fail to compile because of it. They import"RCTFabricComponentsPlugins.h"instead of<React/RCTFabricComponentsPlugins.h>. Until upstream fixes land, apply the same one-line include change with a pnpm or patch-package patch, or setios.buildReactNativeFromSourcetotrue. The precompiled framework also leaves out React Native'sSampleTurboModule, whichreact-native@0.88.0still lists as a module to set up on the main queue at startup. Debug builds then show an "Unable to find module for SampleTurboModule" red box on every launch (release builds only log it). Remove theSampleTurboModuleentry fromcodegenConfig.libraries[0].ios.modulesinreact-native/package.jsonwith a patch and re-runpod install, or build React Native from source. Gesture Handler 3 Every kit gesture now uses the Gesture Handler 3 hook API (usePanGesture,useNativeGesture) instead of the deprecatedGesture.*builder. This covers Modal and Drawer drag-to-dismiss, the ScrollArea 2D pan, Sheet drag, Carousel drag and SwipeCard. Reanimated 4.7 ignores hook dependency arrays on native and logs a warning when one is passed. The kit now passes them on the web only, so apps no longer see "Dependencies should only be used on the web" from kit components. Breaking change in@knitui/carousel:gestureConfigis now a config object (the newCarouselGestureConfigtype) instead of a builder callback. Migrate like this: ``tsx // before <Carousel gestureConfig={(g) => g.activeOffsetX([-10, 10]).simultaneousWithExternalGesture(other)} /> // after <Carousel gestureConfig={{ activeOffsetX: [-10, 10], simultaneousWith: other }} />`**React Native 0.88 types** The kit's native ref types now use RN's instance types (ScrollViewInstance,ViewInstance).EffectView'srefandKeyboardAwareScrollView's forwarded ref are typed with these instance types. TheInputverticalAlignprop still works: React Native 0.88 dropped it, so the kit now maps it ontotextAlignVertical`. - Updated dependencies[475f89d]
- Updated dependencies[475f89d]
- Updated dependencies[475f89d] - @knitui/core@1.1.0 - @knitui/hooks@1.1.0 - @knitui/components@1.1.0
@knitui/carousel
- minor Knit UI now targets Expo SDK 58: React Native 0.88, React 19.3, Reanimated 4.7, Worklets 0.13, React Native Gesture Handler 3.3 and Skia 2.14. Apps must be on SDK 58. Apps still on SDK 57 should pin
@knitui/*to~1.0.0until they upgrade Expo. See the "Upgrading to Knit UI 1.1" guide. Peer and dependency changes -@knitui/iconsand@knitui/emojipeer onreact@19.3.0andreact-native-svg@15.16.0. -@knitui/graphicspeers on@shopify/react-native-skia@2.14.0. -@knitui/componentsdepends onexpo-image ~58.0.15. -@knitui/mediadepends onexpo-audio ~58.0.9andexpo-video ~58.0.11. The Android playback-sampling and iOS duration patches were ported to expo-audio 58.0.9. React Native 0.88 fix in `@knitui/media`Audio,Video,AudioPlaylistandAudioRecordercrashed on native with "undefined is not a function". They detected their web DOM element by checking for anaddEventListenerkey, and React Native 0.88 elements now carry that key (set toundefined). They now check the platform instead. Skia 2.14 fix in `@knitui/graphics`AudioMeshcrashed native apps with "Incorrect uniform size for: u_points. Expected 12 got 4". React Native Skia 2.14's native recorder reads only the first 4 values of a typed-array uniform. The mesh now passes its uniforms as plain arrays, still reused across frames. Web fixes -@knitui/mediano longer crashes web apps without theexpoentry (such as Next) with "Cannot read properties of undefined (reading 'SharedObject')". expo-audio 58's web player, recorder and playlist needglobalThis.expowhen they load, as expo-video's already did. The kit now installs it before both. On SDK 58,expo-modules-coreresolves to a build entry that itssideEffectslist leaves out, so production bundlers dropped the old bare import. -@knitui/plugins/next-pluginalso maps@react-native/assets-registry/registryto react-native-web's asset registry. Its 0.88 source mixes ESM and CommonJS, which brokereact-native-svgon web with "ES Modules may not assign module.exports". Known iOS issue on SDK 58: React Native 0.88 builds React from a precompiled framework, and bothreact-native-teleport@1.2.2(used by Portal) and@maplibre/maplibre-react-native@11.5.0fail to compile because of it. They import"RCTFabricComponentsPlugins.h"instead of<React/RCTFabricComponentsPlugins.h>. Until upstream fixes land, apply the same one-line include change with a pnpm or patch-package patch, or setios.buildReactNativeFromSourcetotrue. The precompiled framework also leaves out React Native'sSampleTurboModule, whichreact-native@0.88.0still lists as a module to set up on the main queue at startup. Debug builds then show an "Unable to find module for SampleTurboModule" red box on every launch (release builds only log it). Remove theSampleTurboModuleentry fromcodegenConfig.libraries[0].ios.modulesinreact-native/package.jsonwith a patch and re-runpod install, or build React Native from source. Gesture Handler 3 Every kit gesture now uses the Gesture Handler 3 hook API (usePanGesture,useNativeGesture) instead of the deprecatedGesture.*builder. This covers Modal and Drawer drag-to-dismiss, the ScrollArea 2D pan, Sheet drag, Carousel drag and SwipeCard. Reanimated 4.7 ignores hook dependency arrays on native and logs a warning when one is passed. The kit now passes them on the web only, so apps no longer see "Dependencies should only be used on the web" from kit components. Breaking change in@knitui/carousel:gestureConfigis now a config object (the newCarouselGestureConfigtype) instead of a builder callback. Migrate like this: ``tsx // before <Carousel gestureConfig={(g) => g.activeOffsetX([-10, 10]).simultaneousWithExternalGesture(other)} /> // after <Carousel gestureConfig={{ activeOffsetX: [-10, 10], simultaneousWith: other }} />`**React Native 0.88 types** The kit's native ref types now use RN's instance types (ScrollViewInstance,ViewInstance).EffectView'srefandKeyboardAwareScrollView's forwarded ref are typed with these instance types. TheInputverticalAlignprop still works: React Native 0.88 dropped it, so the kit now maps it ontotextAlignVertical`. - Updated dependencies[475f89d]
- Updated dependencies[475f89d]
- Updated dependencies[475f89d] - @knitui/core@1.1.0 - @knitui/hooks@1.1.0 - @knitui/components@1.1.0 - @knitui/icons@1.1.0
@knitui/media
- minor Knit UI now targets Expo SDK 58: React Native 0.88, React 19.3, Reanimated 4.7, Worklets 0.13, React Native Gesture Handler 3.3 and Skia 2.14. Apps must be on SDK 58. Apps still on SDK 57 should pin
@knitui/*to~1.0.0until they upgrade Expo. See the "Upgrading to Knit UI 1.1" guide. Peer and dependency changes -@knitui/iconsand@knitui/emojipeer onreact@19.3.0andreact-native-svg@15.16.0. -@knitui/graphicspeers on@shopify/react-native-skia@2.14.0. -@knitui/componentsdepends onexpo-image ~58.0.15. -@knitui/mediadepends onexpo-audio ~58.0.9andexpo-video ~58.0.11. The Android playback-sampling and iOS duration patches were ported to expo-audio 58.0.9. React Native 0.88 fix in `@knitui/media`Audio,Video,AudioPlaylistandAudioRecordercrashed on native with "undefined is not a function". They detected their web DOM element by checking for anaddEventListenerkey, and React Native 0.88 elements now carry that key (set toundefined). They now check the platform instead. Skia 2.14 fix in `@knitui/graphics`AudioMeshcrashed native apps with "Incorrect uniform size for: u_points. Expected 12 got 4". React Native Skia 2.14's native recorder reads only the first 4 values of a typed-array uniform. The mesh now passes its uniforms as plain arrays, still reused across frames. Web fixes -@knitui/mediano longer crashes web apps without theexpoentry (such as Next) with "Cannot read properties of undefined (reading 'SharedObject')". expo-audio 58's web player, recorder and playlist needglobalThis.expowhen they load, as expo-video's already did. The kit now installs it before both. On SDK 58,expo-modules-coreresolves to a build entry that itssideEffectslist leaves out, so production bundlers dropped the old bare import. -@knitui/plugins/next-pluginalso maps@react-native/assets-registry/registryto react-native-web's asset registry. Its 0.88 source mixes ESM and CommonJS, which brokereact-native-svgon web with "ES Modules may not assign module.exports". Known iOS issue on SDK 58: React Native 0.88 builds React from a precompiled framework, and bothreact-native-teleport@1.2.2(used by Portal) and@maplibre/maplibre-react-native@11.5.0fail to compile because of it. They import"RCTFabricComponentsPlugins.h"instead of<React/RCTFabricComponentsPlugins.h>. Until upstream fixes land, apply the same one-line include change with a pnpm or patch-package patch, or setios.buildReactNativeFromSourcetotrue. The precompiled framework also leaves out React Native'sSampleTurboModule, whichreact-native@0.88.0still lists as a module to set up on the main queue at startup. Debug builds then show an "Unable to find module for SampleTurboModule" red box on every launch (release builds only log it). Remove theSampleTurboModuleentry fromcodegenConfig.libraries[0].ios.modulesinreact-native/package.jsonwith a patch and re-runpod install, or build React Native from source. Gesture Handler 3 Every kit gesture now uses the Gesture Handler 3 hook API (usePanGesture,useNativeGesture) instead of the deprecatedGesture.*builder. This covers Modal and Drawer drag-to-dismiss, the ScrollArea 2D pan, Sheet drag, Carousel drag and SwipeCard. Reanimated 4.7 ignores hook dependency arrays on native and logs a warning when one is passed. The kit now passes them on the web only, so apps no longer see "Dependencies should only be used on the web" from kit components. Breaking change in@knitui/carousel:gestureConfigis now a config object (the newCarouselGestureConfigtype) instead of a builder callback. Migrate like this: ``tsx // before <Carousel gestureConfig={(g) => g.activeOffsetX([-10, 10]).simultaneousWithExternalGesture(other)} /> // after <Carousel gestureConfig={{ activeOffsetX: [-10, 10], simultaneousWith: other }} />`**React Native 0.88 types** The kit's native ref types now use RN's instance types (ScrollViewInstance,ViewInstance).EffectView'srefandKeyboardAwareScrollView's forwarded ref are typed with these instance types. TheInputverticalAlignprop still works: React Native 0.88 dropped it, so the kit now maps it ontotextAlignVertical`. - Overlays no longer draw over the screen in front of a backgrounded stack screen. -
@knitui/core:<Provider>takes an optionaluseScreenFocushook, such as React Navigation's or Expo Router's focus state wrapped so it returnstrueoutside a navigator.useScreenFocused()reads the current value. Without the prop, every screen counts as focused and nothing changes. -@knitui/components: Popover, Menu, Tooltip, Combobox, Modal, Drawer and Affix render through the newOverlayPortal. While their screen is unfocused they stay inside that screen instead of teleporting into the shared host, and they come back, still open, when it is focused again.OverlayPortalis exported for custom overlays. -@knitui/sheet: a modalSheetfollows its screen's focus the same way. -@knitui/media: when the active player's screen is frozen in a navigation stack, the shared video surface now stays out of sight instead of drawing at the top of the app. See "Overlays in a navigation stack" on the Portal docs page for the Expo Router hook. - Updated dependencies[475f89d]
- Updated dependencies[475f89d]
- Updated dependencies[475f89d] - @knitui/core@1.1.0 - @knitui/hooks@1.1.0 - @knitui/components@1.1.0 - @knitui/icons@1.1.0
@knitui/graphics
- minor Knit UI now targets Expo SDK 58: React Native 0.88, React 19.3, Reanimated 4.7, Worklets 0.13, React Native Gesture Handler 3.3 and Skia 2.14. Apps must be on SDK 58. Apps still on SDK 57 should pin
@knitui/*to~1.0.0until they upgrade Expo. See the "Upgrading to Knit UI 1.1" guide. Peer and dependency changes -@knitui/iconsand@knitui/emojipeer onreact@19.3.0andreact-native-svg@15.16.0. -@knitui/graphicspeers on@shopify/react-native-skia@2.14.0. -@knitui/componentsdepends onexpo-image ~58.0.15. -@knitui/mediadepends onexpo-audio ~58.0.9andexpo-video ~58.0.11. The Android playback-sampling and iOS duration patches were ported to expo-audio 58.0.9. React Native 0.88 fix in `@knitui/media`Audio,Video,AudioPlaylistandAudioRecordercrashed on native with "undefined is not a function". They detected their web DOM element by checking for anaddEventListenerkey, and React Native 0.88 elements now carry that key (set toundefined). They now check the platform instead. Skia 2.14 fix in `@knitui/graphics`AudioMeshcrashed native apps with "Incorrect uniform size for: u_points. Expected 12 got 4". React Native Skia 2.14's native recorder reads only the first 4 values of a typed-array uniform. The mesh now passes its uniforms as plain arrays, still reused across frames. Web fixes -@knitui/mediano longer crashes web apps without theexpoentry (such as Next) with "Cannot read properties of undefined (reading 'SharedObject')". expo-audio 58's web player, recorder and playlist needglobalThis.expowhen they load, as expo-video's already did. The kit now installs it before both. On SDK 58,expo-modules-coreresolves to a build entry that itssideEffectslist leaves out, so production bundlers dropped the old bare import. -@knitui/plugins/next-pluginalso maps@react-native/assets-registry/registryto react-native-web's asset registry. Its 0.88 source mixes ESM and CommonJS, which brokereact-native-svgon web with "ES Modules may not assign module.exports". Known iOS issue on SDK 58: React Native 0.88 builds React from a precompiled framework, and bothreact-native-teleport@1.2.2(used by Portal) and@maplibre/maplibre-react-native@11.5.0fail to compile because of it. They import"RCTFabricComponentsPlugins.h"instead of<React/RCTFabricComponentsPlugins.h>. Until upstream fixes land, apply the same one-line include change with a pnpm or patch-package patch, or setios.buildReactNativeFromSourcetotrue. The precompiled framework also leaves out React Native'sSampleTurboModule, whichreact-native@0.88.0still lists as a module to set up on the main queue at startup. Debug builds then show an "Unable to find module for SampleTurboModule" red box on every launch (release builds only log it). Remove theSampleTurboModuleentry fromcodegenConfig.libraries[0].ios.modulesinreact-native/package.jsonwith a patch and re-runpod install, or build React Native from source. Gesture Handler 3 Every kit gesture now uses the Gesture Handler 3 hook API (usePanGesture,useNativeGesture) instead of the deprecatedGesture.*builder. This covers Modal and Drawer drag-to-dismiss, the ScrollArea 2D pan, Sheet drag, Carousel drag and SwipeCard. Reanimated 4.7 ignores hook dependency arrays on native and logs a warning when one is passed. The kit now passes them on the web only, so apps no longer see "Dependencies should only be used on the web" from kit components. Breaking change in@knitui/carousel:gestureConfigis now a config object (the newCarouselGestureConfigtype) instead of a builder callback. Migrate like this: ``tsx // before <Carousel gestureConfig={(g) => g.activeOffsetX([-10, 10]).simultaneousWithExternalGesture(other)} /> // after <Carousel gestureConfig={{ activeOffsetX: [-10, 10], simultaneousWith: other }} />`**React Native 0.88 types** The kit's native ref types now use RN's instance types (ScrollViewInstance,ViewInstance).EffectView'srefandKeyboardAwareScrollView's forwarded ref are typed with these instance types. TheInputverticalAlignprop still works: React Native 0.88 dropped it, so the kit now maps it ontotextAlignVertical`. - Updated dependencies[475f89d]
- Updated dependencies[475f89d]
- Updated dependencies[475f89d] - @knitui/core@1.1.0 - @knitui/components@1.1.0
@knitui/sheet
- minor Knit UI now targets Expo SDK 58: React Native 0.88, React 19.3, Reanimated 4.7, Worklets 0.13, React Native Gesture Handler 3.3 and Skia 2.14. Apps must be on SDK 58. Apps still on SDK 57 should pin
@knitui/*to~1.0.0until they upgrade Expo. See the "Upgrading to Knit UI 1.1" guide. Peer and dependency changes -@knitui/iconsand@knitui/emojipeer onreact@19.3.0andreact-native-svg@15.16.0. -@knitui/graphicspeers on@shopify/react-native-skia@2.14.0. -@knitui/componentsdepends onexpo-image ~58.0.15. -@knitui/mediadepends onexpo-audio ~58.0.9andexpo-video ~58.0.11. The Android playback-sampling and iOS duration patches were ported to expo-audio 58.0.9. React Native 0.88 fix in `@knitui/media`Audio,Video,AudioPlaylistandAudioRecordercrashed on native with "undefined is not a function". They detected their web DOM element by checking for anaddEventListenerkey, and React Native 0.88 elements now carry that key (set toundefined). They now check the platform instead. Skia 2.14 fix in `@knitui/graphics`AudioMeshcrashed native apps with "Incorrect uniform size for: u_points. Expected 12 got 4". React Native Skia 2.14's native recorder reads only the first 4 values of a typed-array uniform. The mesh now passes its uniforms as plain arrays, still reused across frames. Web fixes -@knitui/mediano longer crashes web apps without theexpoentry (such as Next) with "Cannot read properties of undefined (reading 'SharedObject')". expo-audio 58's web player, recorder and playlist needglobalThis.expowhen they load, as expo-video's already did. The kit now installs it before both. On SDK 58,expo-modules-coreresolves to a build entry that itssideEffectslist leaves out, so production bundlers dropped the old bare import. -@knitui/plugins/next-pluginalso maps@react-native/assets-registry/registryto react-native-web's asset registry. Its 0.88 source mixes ESM and CommonJS, which brokereact-native-svgon web with "ES Modules may not assign module.exports". Known iOS issue on SDK 58: React Native 0.88 builds React from a precompiled framework, and bothreact-native-teleport@1.2.2(used by Portal) and@maplibre/maplibre-react-native@11.5.0fail to compile because of it. They import"RCTFabricComponentsPlugins.h"instead of<React/RCTFabricComponentsPlugins.h>. Until upstream fixes land, apply the same one-line include change with a pnpm or patch-package patch, or setios.buildReactNativeFromSourcetotrue. The precompiled framework also leaves out React Native'sSampleTurboModule, whichreact-native@0.88.0still lists as a module to set up on the main queue at startup. Debug builds then show an "Unable to find module for SampleTurboModule" red box on every launch (release builds only log it). Remove theSampleTurboModuleentry fromcodegenConfig.libraries[0].ios.modulesinreact-native/package.jsonwith a patch and re-runpod install, or build React Native from source. Gesture Handler 3 Every kit gesture now uses the Gesture Handler 3 hook API (usePanGesture,useNativeGesture) instead of the deprecatedGesture.*builder. This covers Modal and Drawer drag-to-dismiss, the ScrollArea 2D pan, Sheet drag, Carousel drag and SwipeCard. Reanimated 4.7 ignores hook dependency arrays on native and logs a warning when one is passed. The kit now passes them on the web only, so apps no longer see "Dependencies should only be used on the web" from kit components. Breaking change in@knitui/carousel:gestureConfigis now a config object (the newCarouselGestureConfigtype) instead of a builder callback. Migrate like this: ``tsx // before <Carousel gestureConfig={(g) => g.activeOffsetX([-10, 10]).simultaneousWithExternalGesture(other)} /> // after <Carousel gestureConfig={{ activeOffsetX: [-10, 10], simultaneousWith: other }} />`**React Native 0.88 types** The kit's native ref types now use RN's instance types (ScrollViewInstance,ViewInstance).EffectView'srefandKeyboardAwareScrollView's forwarded ref are typed with these instance types. TheInputverticalAlignprop still works: React Native 0.88 dropped it, so the kit now maps it ontotextAlignVertical`. - Overlays no longer draw over the screen in front of a backgrounded stack screen. -
@knitui/core:<Provider>takes an optionaluseScreenFocushook, such as React Navigation's or Expo Router's focus state wrapped so it returnstrueoutside a navigator.useScreenFocused()reads the current value. Without the prop, every screen counts as focused and nothing changes. -@knitui/components: Popover, Menu, Tooltip, Combobox, Modal, Drawer and Affix render through the newOverlayPortal. While their screen is unfocused they stay inside that screen instead of teleporting into the shared host, and they come back, still open, when it is focused again.OverlayPortalis exported for custom overlays. -@knitui/sheet: a modalSheetfollows its screen's focus the same way. -@knitui/media: when the active player's screen is frozen in a navigation stack, the shared video surface now stays out of sight instead of drawing at the top of the app. See "Overlays in a navigation stack" on the Portal docs page for the Expo Router hook. - Updated dependencies[475f89d]
- Updated dependencies[475f89d]
- Updated dependencies[475f89d] - @knitui/core@1.1.0 - @knitui/hooks@1.1.0 - @knitui/components@1.1.0 - @knitui/icons@1.1.0
@knitui/mediaquery
- minor Knit UI now targets Expo SDK 58: React Native 0.88, React 19.3, Reanimated 4.7, Worklets 0.13, React Native Gesture Handler 3.3 and Skia 2.14. Apps must be on SDK 58. Apps still on SDK 57 should pin
@knitui/*to~1.0.0until they upgrade Expo. See the "Upgrading to Knit UI 1.1" guide. Peer and dependency changes -@knitui/iconsand@knitui/emojipeer onreact@19.3.0andreact-native-svg@15.16.0. -@knitui/graphicspeers on@shopify/react-native-skia@2.14.0. -@knitui/componentsdepends onexpo-image ~58.0.15. -@knitui/mediadepends onexpo-audio ~58.0.9andexpo-video ~58.0.11. The Android playback-sampling and iOS duration patches were ported to expo-audio 58.0.9. React Native 0.88 fix in `@knitui/media`Audio,Video,AudioPlaylistandAudioRecordercrashed on native with "undefined is not a function". They detected their web DOM element by checking for anaddEventListenerkey, and React Native 0.88 elements now carry that key (set toundefined). They now check the platform instead. Skia 2.14 fix in `@knitui/graphics`AudioMeshcrashed native apps with "Incorrect uniform size for: u_points. Expected 12 got 4". React Native Skia 2.14's native recorder reads only the first 4 values of a typed-array uniform. The mesh now passes its uniforms as plain arrays, still reused across frames. Web fixes -@knitui/mediano longer crashes web apps without theexpoentry (such as Next) with "Cannot read properties of undefined (reading 'SharedObject')". expo-audio 58's web player, recorder and playlist needglobalThis.expowhen they load, as expo-video's already did. The kit now installs it before both. On SDK 58,expo-modules-coreresolves to a build entry that itssideEffectslist leaves out, so production bundlers dropped the old bare import. -@knitui/plugins/next-pluginalso maps@react-native/assets-registry/registryto react-native-web's asset registry. Its 0.88 source mixes ESM and CommonJS, which brokereact-native-svgon web with "ES Modules may not assign module.exports". Known iOS issue on SDK 58: React Native 0.88 builds React from a precompiled framework, and bothreact-native-teleport@1.2.2(used by Portal) and@maplibre/maplibre-react-native@11.5.0fail to compile because of it. They import"RCTFabricComponentsPlugins.h"instead of<React/RCTFabricComponentsPlugins.h>. Until upstream fixes land, apply the same one-line include change with a pnpm or patch-package patch, or setios.buildReactNativeFromSourcetotrue. The precompiled framework also leaves out React Native'sSampleTurboModule, whichreact-native@0.88.0still lists as a module to set up on the main queue at startup. Debug builds then show an "Unable to find module for SampleTurboModule" red box on every launch (release builds only log it). Remove theSampleTurboModuleentry fromcodegenConfig.libraries[0].ios.modulesinreact-native/package.jsonwith a patch and re-runpod install, or build React Native from source. Gesture Handler 3 Every kit gesture now uses the Gesture Handler 3 hook API (usePanGesture,useNativeGesture) instead of the deprecatedGesture.*builder. This covers Modal and Drawer drag-to-dismiss, the ScrollArea 2D pan, Sheet drag, Carousel drag and SwipeCard. Reanimated 4.7 ignores hook dependency arrays on native and logs a warning when one is passed. The kit now passes them on the web only, so apps no longer see "Dependencies should only be used on the web" from kit components. Breaking change in@knitui/carousel:gestureConfigis now a config object (the newCarouselGestureConfigtype) instead of a builder callback. Migrate like this: ``tsx // before <Carousel gestureConfig={(g) => g.activeOffsetX([-10, 10]).simultaneousWithExternalGesture(other)} /> // after <Carousel gestureConfig={{ activeOffsetX: [-10, 10], simultaneousWith: other }} />`**React Native 0.88 types** The kit's native ref types now use RN's instance types (ScrollViewInstance,ViewInstance).EffectView'srefandKeyboardAwareScrollView's forwarded ref are typed with these instance types. TheInputverticalAlignprop still works: React Native 0.88 dropped it, so the kit now maps it ontotextAlignVertical`. - Updated dependencies[475f89d]
- Updated dependencies[475f89d] - @knitui/core@1.1.0 - @knitui/hooks@1.1.0
@knitui/plugins
- minor The Tamagui compiler presets now leave
@knitui/media/native/audioand@knitui/media/native/videoout of static evaluation, in place ofexpo-audioandexpo-video.@knitui/media2.0 carries its own native players behind those two subpaths, and they cannot run in Node. Update this package together with@knitui/media2.0.
1.0.4
@knitui/plugins
- Updated dependencies[b3248ba] - @knitui/core@1.2.2
1.0.3
@knitui/plugins
- @knitui/core@1.2.1
1.0.2
@knitui/plugins
- @knitui/core@1.2.0
1.0.1
@knitui/plugins
- Knit UI now targets Expo SDK 58: React Native 0.88, React 19.3, Reanimated 4.7, Worklets 0.13, React Native Gesture Handler 3.3 and Skia 2.14. Apps must be on SDK 58. Apps still on SDK 57 should pin
@knitui/*to~1.0.0until they upgrade Expo. See the "Upgrading to Knit UI 1.1" guide. Peer and dependency changes -@knitui/iconsand@knitui/emojipeer onreact@19.3.0andreact-native-svg@15.16.0. -@knitui/graphicspeers on@shopify/react-native-skia@2.14.0. -@knitui/componentsdepends onexpo-image ~58.0.15. -@knitui/mediadepends onexpo-audio ~58.0.9andexpo-video ~58.0.11. The Android playback-sampling and iOS duration patches were ported to expo-audio 58.0.9. React Native 0.88 fix in `@knitui/media`Audio,Video,AudioPlaylistandAudioRecordercrashed on native with "undefined is not a function". They detected their web DOM element by checking for anaddEventListenerkey, and React Native 0.88 elements now carry that key (set toundefined). They now check the platform instead. Skia 2.14 fix in `@knitui/graphics`AudioMeshcrashed native apps with "Incorrect uniform size for: u_points. Expected 12 got 4". React Native Skia 2.14's native recorder reads only the first 4 values of a typed-array uniform. The mesh now passes its uniforms as plain arrays, still reused across frames. Web fixes -@knitui/mediano longer crashes web apps without theexpoentry (such as Next) with "Cannot read properties of undefined (reading 'SharedObject')". expo-audio 58's web player, recorder and playlist needglobalThis.expowhen they load, as expo-video's already did. The kit now installs it before both. On SDK 58,expo-modules-coreresolves to a build entry that itssideEffectslist leaves out, so production bundlers dropped the old bare import. -@knitui/plugins/next-pluginalso maps@react-native/assets-registry/registryto react-native-web's asset registry. Its 0.88 source mixes ESM and CommonJS, which brokereact-native-svgon web with "ES Modules may not assign module.exports". Known iOS issue on SDK 58: React Native 0.88 builds React from a precompiled framework, and bothreact-native-teleport@1.2.2(used by Portal) and@maplibre/maplibre-react-native@11.5.0fail to compile because of it. They import"RCTFabricComponentsPlugins.h"instead of<React/RCTFabricComponentsPlugins.h>. Until upstream fixes land, apply the same one-line include change with a pnpm or patch-package patch, or setios.buildReactNativeFromSourcetotrue. The precompiled framework also leaves out React Native'sSampleTurboModule, whichreact-native@0.88.0still lists as a module to set up on the main queue at startup. Debug builds then show an "Unable to find module for SampleTurboModule" red box on every launch (release builds only log it). Remove theSampleTurboModuleentry fromcodegenConfig.libraries[0].ios.modulesinreact-native/package.jsonwith a patch and re-runpod install, or build React Native from source. Gesture Handler 3 Every kit gesture now uses the Gesture Handler 3 hook API (usePanGesture,useNativeGesture) instead of the deprecatedGesture.*builder. This covers Modal and Drawer drag-to-dismiss, the ScrollArea 2D pan, Sheet drag, Carousel drag and SwipeCard. Reanimated 4.7 ignores hook dependency arrays on native and logs a warning when one is passed. The kit now passes them on the web only, so apps no longer see "Dependencies should only be used on the web" from kit components. Breaking change in@knitui/carousel:gestureConfigis now a config object (the newCarouselGestureConfigtype) instead of a builder callback. Migrate like this: ``tsx // before <Carousel gestureConfig={(g) => g.activeOffsetX([-10, 10]).simultaneousWithExternalGesture(other)} /> // after <Carousel gestureConfig={{ activeOffsetX: [-10, 10], simultaneousWith: other }} />`**React Native 0.88 types** The kit's native ref types now use RN's instance types (ScrollViewInstance,ViewInstance).EffectView'srefandKeyboardAwareScrollView's forwarded ref are typed with these instance types. TheInputverticalAlignprop still works: React Native 0.88 dropped it, so the kit now maps it ontotextAlignVertical`. - Updated dependencies[475f89d]
- Updated dependencies[475f89d] - @knitui/core@1.1.0
1.0.0
@knitui/core
- major Knit UI 1.0 now runs on Tamagui v3 (3.0.18). This is a breaking release: every style prop uses the v3 value syntax. Run the codemod first, then follow the upgrade guide at
/docs/guides/upgrading-to-v1. Styling syntax - Bare tokens.$is gone: writep="md"andbg="color3". A string is always a token; a number is a raw value. - Conditions live inside the value.hoverStyle,pressStyle,focusStyle,focusVisibleStyle,disabledStyle,enterStyleandexitStyleare removed. Writebg="color2 hover:color3 press:color4"instead, or the object form{ default, hover }. Media props become media clauses:p="sm gtSm:lg". - Transitions. Usetransition="fast"or the object form{ preset, properties, enter, exit }.animateOnlyis removed; usetransition.properties. Motion presets are now unified across web and native, so some timings change, most noticeablybouncy. - Line height. A numericlineHeightis now a ratio of the font size. Use"24px"for an absolute value. Component authoring -X.styleable(fn)is replaced bystyleable(X, fn)from@knitui/core. It is memoized and supports chaining. - Prefer plainstyled()with variants,styled.dynamicor.resolve. The compiler can flatten these; a styleable HOC can never be flattened. - Many layout and typography primitives (Flex, Container, Spacer, AspectRatio, Paragraph, Kbd, Mark, VisuallyHidden, …) are now plain styled components. - Variant precedence follows the order props are passed. An explicitundefinedpassed to a style prop clears the base value. Core - Themes.@tamagui/theme-builderis replaced by@tamagui/config-v5/builder. Default themes are precomputed at build time. - Tokens. Thetrueandtransparenttokens are removed. - New helpers:resolveToken,isToken,splitStyleProps,ThemeUpdate, andfocusRingColorplus focus-ring variables. - Removed:usePropsandusePropsAndStyle. Tooling (`@knitui/plugins`) - Native compilation now goes through the Metro plugin (@tamagui/cli/metro). The babel plugin entry is a deprecated no-op. - Vite now uses@tamagui/cli/vite. - The Next and webpack adapters are on v3. Fixes made along the way - Hover now works on web. - Noname="…"attributes leak into the DOM or FormData. - Overlay styles that were being wiped are restored: Modal max-width, Popover and Tooltip radius. - Image radius and size now resolve. - Text fields now show an accent focus border. - The@knitui/mediasideEffectssetting no longer drops the expo-video web global. - ARIA is improved in Menu, Combobox, Tree, Tabs and Stepper. Map: dependency bump only.
@knitui/components
- major Knit UI 1.0 now runs on Tamagui v3 (3.0.18). This is a breaking release: every style prop uses the v3 value syntax. Run the codemod first, then follow the upgrade guide at
/docs/guides/upgrading-to-v1. Styling syntax - Bare tokens.$is gone: writep="md"andbg="color3". A string is always a token; a number is a raw value. - Conditions live inside the value.hoverStyle,pressStyle,focusStyle,focusVisibleStyle,disabledStyle,enterStyleandexitStyleare removed. Writebg="color2 hover:color3 press:color4"instead, or the object form{ default, hover }. Media props become media clauses:p="sm gtSm:lg". - Transitions. Usetransition="fast"or the object form{ preset, properties, enter, exit }.animateOnlyis removed; usetransition.properties. Motion presets are now unified across web and native, so some timings change, most noticeablybouncy. - Line height. A numericlineHeightis now a ratio of the font size. Use"24px"for an absolute value. Component authoring -X.styleable(fn)is replaced bystyleable(X, fn)from@knitui/core. It is memoized and supports chaining. - Prefer plainstyled()with variants,styled.dynamicor.resolve. The compiler can flatten these; a styleable HOC can never be flattened. - Many layout and typography primitives (Flex, Container, Spacer, AspectRatio, Paragraph, Kbd, Mark, VisuallyHidden, …) are now plain styled components. - Variant precedence follows the order props are passed. An explicitundefinedpassed to a style prop clears the base value. Core - Themes.@tamagui/theme-builderis replaced by@tamagui/config-v5/builder. Default themes are precomputed at build time. - Tokens. Thetrueandtransparenttokens are removed. - New helpers:resolveToken,isToken,splitStyleProps,ThemeUpdate, andfocusRingColorplus focus-ring variables. - Removed:usePropsandusePropsAndStyle. Tooling (`@knitui/plugins`) - Native compilation now goes through the Metro plugin (@tamagui/cli/metro). The babel plugin entry is a deprecated no-op. - Vite now uses@tamagui/cli/vite. - The Next and webpack adapters are on v3. Fixes made along the way - Hover now works on web. - Noname="…"attributes leak into the DOM or FormData. - Overlay styles that were being wiped are restored: Modal max-width, Popover and Tooltip radius. - Image radius and size now resolve. - Text fields now show an accent focus border. - The@knitui/mediasideEffectssetting no longer drops the expo-video web global. - ARIA is improved in Menu, Combobox, Tree, Tabs and Stepper. Map: dependency bump only. - Updated dependencies[af39617] - @knitui/core@1.0.0 - @knitui/hooks@1.0.0 - @knitui/icons@1.0.0
@knitui/hooks
- major Knit UI 1.0 now runs on Tamagui v3 (3.0.18). This is a breaking release: every style prop uses the v3 value syntax. Run the codemod first, then follow the upgrade guide at
/docs/guides/upgrading-to-v1. Styling syntax - Bare tokens.$is gone: writep="md"andbg="color3". A string is always a token; a number is a raw value. - Conditions live inside the value.hoverStyle,pressStyle,focusStyle,focusVisibleStyle,disabledStyle,enterStyleandexitStyleare removed. Writebg="color2 hover:color3 press:color4"instead, or the object form{ default, hover }. Media props become media clauses:p="sm gtSm:lg". - Transitions. Usetransition="fast"or the object form{ preset, properties, enter, exit }.animateOnlyis removed; usetransition.properties. Motion presets are now unified across web and native, so some timings change, most noticeablybouncy. - Line height. A numericlineHeightis now a ratio of the font size. Use"24px"for an absolute value. Component authoring -X.styleable(fn)is replaced bystyleable(X, fn)from@knitui/core. It is memoized and supports chaining. - Prefer plainstyled()with variants,styled.dynamicor.resolve. The compiler can flatten these; a styleable HOC can never be flattened. - Many layout and typography primitives (Flex, Container, Spacer, AspectRatio, Paragraph, Kbd, Mark, VisuallyHidden, …) are now plain styled components. - Variant precedence follows the order props are passed. An explicitundefinedpassed to a style prop clears the base value. Core - Themes.@tamagui/theme-builderis replaced by@tamagui/config-v5/builder. Default themes are precomputed at build time. - Tokens. Thetrueandtransparenttokens are removed. - New helpers:resolveToken,isToken,splitStyleProps,ThemeUpdate, andfocusRingColorplus focus-ring variables. - Removed:usePropsandusePropsAndStyle. Tooling (`@knitui/plugins`) - Native compilation now goes through the Metro plugin (@tamagui/cli/metro). The babel plugin entry is a deprecated no-op. - Vite now uses@tamagui/cli/vite. - The Next and webpack adapters are on v3. Fixes made along the way - Hover now works on web. - Noname="…"attributes leak into the DOM or FormData. - Overlay styles that were being wiped are restored: Modal max-width, Popover and Tooltip radius. - Image radius and size now resolve. - Text fields now show an accent focus border. - The@knitui/mediasideEffectssetting no longer drops the expo-video web global. - ARIA is improved in Menu, Combobox, Tree, Tabs and Stepper. Map: dependency bump only. - Updated dependencies[af39617] - @knitui/core@1.0.0
@knitui/icons
- major Knit UI 1.0 now runs on Tamagui v3 (3.0.18). This is a breaking release: every style prop uses the v3 value syntax. Run the codemod first, then follow the upgrade guide at
/docs/guides/upgrading-to-v1. Styling syntax - Bare tokens.$is gone: writep="md"andbg="color3". A string is always a token; a number is a raw value. - Conditions live inside the value.hoverStyle,pressStyle,focusStyle,focusVisibleStyle,disabledStyle,enterStyleandexitStyleare removed. Writebg="color2 hover:color3 press:color4"instead, or the object form{ default, hover }. Media props become media clauses:p="sm gtSm:lg". - Transitions. Usetransition="fast"or the object form{ preset, properties, enter, exit }.animateOnlyis removed; usetransition.properties. Motion presets are now unified across web and native, so some timings change, most noticeablybouncy. - Line height. A numericlineHeightis now a ratio of the font size. Use"24px"for an absolute value. Component authoring -X.styleable(fn)is replaced bystyleable(X, fn)from@knitui/core. It is memoized and supports chaining. - Prefer plainstyled()with variants,styled.dynamicor.resolve. The compiler can flatten these; a styleable HOC can never be flattened. - Many layout and typography primitives (Flex, Container, Spacer, AspectRatio, Paragraph, Kbd, Mark, VisuallyHidden, …) are now plain styled components. - Variant precedence follows the order props are passed. An explicitundefinedpassed to a style prop clears the base value. Core - Themes.@tamagui/theme-builderis replaced by@tamagui/config-v5/builder. Default themes are precomputed at build time. - Tokens. Thetrueandtransparenttokens are removed. - New helpers:resolveToken,isToken,splitStyleProps,ThemeUpdate, andfocusRingColorplus focus-ring variables. - Removed:usePropsandusePropsAndStyle. Tooling (`@knitui/plugins`) - Native compilation now goes through the Metro plugin (@tamagui/cli/metro). The babel plugin entry is a deprecated no-op. - Vite now uses@tamagui/cli/vite. - The Next and webpack adapters are on v3. Fixes made along the way - Hover now works on web. - Noname="…"attributes leak into the DOM or FormData. - Overlay styles that were being wiped are restored: Modal max-width, Popover and Tooltip radius. - Image radius and size now resolve. - Text fields now show an accent focus border. - The@knitui/mediasideEffectssetting no longer drops the expo-video web global. - ARIA is improved in Menu, Combobox, Tree, Tabs and Stepper. Map: dependency bump only.
@knitui/emoji
- major Knit UI 1.0 now runs on Tamagui v3 (3.0.18). This is a breaking release: every style prop uses the v3 value syntax. Run the codemod first, then follow the upgrade guide at
/docs/guides/upgrading-to-v1. Styling syntax - Bare tokens.$is gone: writep="md"andbg="color3". A string is always a token; a number is a raw value. - Conditions live inside the value.hoverStyle,pressStyle,focusStyle,focusVisibleStyle,disabledStyle,enterStyleandexitStyleare removed. Writebg="color2 hover:color3 press:color4"instead, or the object form{ default, hover }. Media props become media clauses:p="sm gtSm:lg". - Transitions. Usetransition="fast"or the object form{ preset, properties, enter, exit }.animateOnlyis removed; usetransition.properties. Motion presets are now unified across web and native, so some timings change, most noticeablybouncy. - Line height. A numericlineHeightis now a ratio of the font size. Use"24px"for an absolute value. Component authoring -X.styleable(fn)is replaced bystyleable(X, fn)from@knitui/core. It is memoized and supports chaining. - Prefer plainstyled()with variants,styled.dynamicor.resolve. The compiler can flatten these; a styleable HOC can never be flattened. - Many layout and typography primitives (Flex, Container, Spacer, AspectRatio, Paragraph, Kbd, Mark, VisuallyHidden, …) are now plain styled components. - Variant precedence follows the order props are passed. An explicitundefinedpassed to a style prop clears the base value. Core - Themes.@tamagui/theme-builderis replaced by@tamagui/config-v5/builder. Default themes are precomputed at build time. - Tokens. Thetrueandtransparenttokens are removed. - New helpers:resolveToken,isToken,splitStyleProps,ThemeUpdate, andfocusRingColorplus focus-ring variables. - Removed:usePropsandusePropsAndStyle. Tooling (`@knitui/plugins`) - Native compilation now goes through the Metro plugin (@tamagui/cli/metro). The babel plugin entry is a deprecated no-op. - Vite now uses@tamagui/cli/vite. - The Next and webpack adapters are on v3. Fixes made along the way - Hover now works on web. - Noname="…"attributes leak into the DOM or FormData. - Overlay styles that were being wiped are restored: Modal max-width, Popover and Tooltip radius. - Image radius and size now resolve. - Text fields now show an accent focus border. - The@knitui/mediasideEffectssetting no longer drops the expo-video web global. - ARIA is improved in Menu, Combobox, Tree, Tabs and Stepper. Map: dependency bump only.
@knitui/dates
- major Knit UI 1.0 now runs on Tamagui v3 (3.0.18). This is a breaking release: every style prop uses the v3 value syntax. Run the codemod first, then follow the upgrade guide at
/docs/guides/upgrading-to-v1. Styling syntax - Bare tokens.$is gone: writep="md"andbg="color3". A string is always a token; a number is a raw value. - Conditions live inside the value.hoverStyle,pressStyle,focusStyle,focusVisibleStyle,disabledStyle,enterStyleandexitStyleare removed. Writebg="color2 hover:color3 press:color4"instead, or the object form{ default, hover }. Media props become media clauses:p="sm gtSm:lg". - Transitions. Usetransition="fast"or the object form{ preset, properties, enter, exit }.animateOnlyis removed; usetransition.properties. Motion presets are now unified across web and native, so some timings change, most noticeablybouncy. - Line height. A numericlineHeightis now a ratio of the font size. Use"24px"for an absolute value. Component authoring -X.styleable(fn)is replaced bystyleable(X, fn)from@knitui/core. It is memoized and supports chaining. - Prefer plainstyled()with variants,styled.dynamicor.resolve. The compiler can flatten these; a styleable HOC can never be flattened. - Many layout and typography primitives (Flex, Container, Spacer, AspectRatio, Paragraph, Kbd, Mark, VisuallyHidden, …) are now plain styled components. - Variant precedence follows the order props are passed. An explicitundefinedpassed to a style prop clears the base value. Core - Themes.@tamagui/theme-builderis replaced by@tamagui/config-v5/builder. Default themes are precomputed at build time. - Tokens. Thetrueandtransparenttokens are removed. - New helpers:resolveToken,isToken,splitStyleProps,ThemeUpdate, andfocusRingColorplus focus-ring variables. - Removed:usePropsandusePropsAndStyle. Tooling (`@knitui/plugins`) - Native compilation now goes through the Metro plugin (@tamagui/cli/metro). The babel plugin entry is a deprecated no-op. - Vite now uses@tamagui/cli/vite. - The Next and webpack adapters are on v3. Fixes made along the way - Hover now works on web. - Noname="…"attributes leak into the DOM or FormData. - Overlay styles that were being wiped are restored: Modal max-width, Popover and Tooltip radius. - Image radius and size now resolve. - Text fields now show an accent focus border. - The@knitui/mediasideEffectssetting no longer drops the expo-video web global. - ARIA is improved in Menu, Combobox, Tree, Tabs and Stepper. Map: dependency bump only. - Updated dependencies[af39617] - @knitui/core@1.0.0 - @knitui/hooks@1.0.0 - @knitui/components@1.0.0
@knitui/carousel
- major Knit UI 1.0 now runs on Tamagui v3 (3.0.18). This is a breaking release: every style prop uses the v3 value syntax. Run the codemod first, then follow the upgrade guide at
/docs/guides/upgrading-to-v1. Styling syntax - Bare tokens.$is gone: writep="md"andbg="color3". A string is always a token; a number is a raw value. - Conditions live inside the value.hoverStyle,pressStyle,focusStyle,focusVisibleStyle,disabledStyle,enterStyleandexitStyleare removed. Writebg="color2 hover:color3 press:color4"instead, or the object form{ default, hover }. Media props become media clauses:p="sm gtSm:lg". - Transitions. Usetransition="fast"or the object form{ preset, properties, enter, exit }.animateOnlyis removed; usetransition.properties. Motion presets are now unified across web and native, so some timings change, most noticeablybouncy. - Line height. A numericlineHeightis now a ratio of the font size. Use"24px"for an absolute value. Component authoring -X.styleable(fn)is replaced bystyleable(X, fn)from@knitui/core. It is memoized and supports chaining. - Prefer plainstyled()with variants,styled.dynamicor.resolve. The compiler can flatten these; a styleable HOC can never be flattened. - Many layout and typography primitives (Flex, Container, Spacer, AspectRatio, Paragraph, Kbd, Mark, VisuallyHidden, …) are now plain styled components. - Variant precedence follows the order props are passed. An explicitundefinedpassed to a style prop clears the base value. Core - Themes.@tamagui/theme-builderis replaced by@tamagui/config-v5/builder. Default themes are precomputed at build time. - Tokens. Thetrueandtransparenttokens are removed. - New helpers:resolveToken,isToken,splitStyleProps,ThemeUpdate, andfocusRingColorplus focus-ring variables. - Removed:usePropsandusePropsAndStyle. Tooling (`@knitui/plugins`) - Native compilation now goes through the Metro plugin (@tamagui/cli/metro). The babel plugin entry is a deprecated no-op. - Vite now uses@tamagui/cli/vite. - The Next and webpack adapters are on v3. Fixes made along the way - Hover now works on web. - Noname="…"attributes leak into the DOM or FormData. - Overlay styles that were being wiped are restored: Modal max-width, Popover and Tooltip radius. - Image radius and size now resolve. - Text fields now show an accent focus border. - The@knitui/mediasideEffectssetting no longer drops the expo-video web global. - ARIA is improved in Menu, Combobox, Tree, Tabs and Stepper. Map: dependency bump only. - Updated dependencies[af39617] - @knitui/core@1.0.0 - @knitui/hooks@1.0.0 - @knitui/components@1.0.0 - @knitui/icons@1.0.0
@knitui/media
- major Knit UI 1.0 now runs on Tamagui v3 (3.0.18). This is a breaking release: every style prop uses the v3 value syntax. Run the codemod first, then follow the upgrade guide at
/docs/guides/upgrading-to-v1. Styling syntax - Bare tokens.$is gone: writep="md"andbg="color3". A string is always a token; a number is a raw value. - Conditions live inside the value.hoverStyle,pressStyle,focusStyle,focusVisibleStyle,disabledStyle,enterStyleandexitStyleare removed. Writebg="color2 hover:color3 press:color4"instead, or the object form{ default, hover }. Media props become media clauses:p="sm gtSm:lg". - Transitions. Usetransition="fast"or the object form{ preset, properties, enter, exit }.animateOnlyis removed; usetransition.properties. Motion presets are now unified across web and native, so some timings change, most noticeablybouncy. - Line height. A numericlineHeightis now a ratio of the font size. Use"24px"for an absolute value. Component authoring -X.styleable(fn)is replaced bystyleable(X, fn)from@knitui/core. It is memoized and supports chaining. - Prefer plainstyled()with variants,styled.dynamicor.resolve. The compiler can flatten these; a styleable HOC can never be flattened. - Many layout and typography primitives (Flex, Container, Spacer, AspectRatio, Paragraph, Kbd, Mark, VisuallyHidden, …) are now plain styled components. - Variant precedence follows the order props are passed. An explicitundefinedpassed to a style prop clears the base value. Core - Themes.@tamagui/theme-builderis replaced by@tamagui/config-v5/builder. Default themes are precomputed at build time. - Tokens. Thetrueandtransparenttokens are removed. - New helpers:resolveToken,isToken,splitStyleProps,ThemeUpdate, andfocusRingColorplus focus-ring variables. - Removed:usePropsandusePropsAndStyle. Tooling (`@knitui/plugins`) - Native compilation now goes through the Metro plugin (@tamagui/cli/metro). The babel plugin entry is a deprecated no-op. - Vite now uses@tamagui/cli/vite. - The Next and webpack adapters are on v3. Fixes made along the way - Hover now works on web. - Noname="…"attributes leak into the DOM or FormData. - Overlay styles that were being wiped are restored: Modal max-width, Popover and Tooltip radius. - Image radius and size now resolve. - Text fields now show an accent focus border. - The@knitui/mediasideEffectssetting no longer drops the expo-video web global. - ARIA is improved in Menu, Combobox, Tree, Tabs and Stepper. Map: dependency bump only. - Updated dependencies[af39617] - @knitui/core@1.0.0 - @knitui/hooks@1.0.0 - @knitui/components@1.0.0 - @knitui/icons@1.0.0
@knitui/graphics
- major Knit UI 1.0 now runs on Tamagui v3 (3.0.18). This is a breaking release: every style prop uses the v3 value syntax. Run the codemod first, then follow the upgrade guide at
/docs/guides/upgrading-to-v1. Styling syntax - Bare tokens.$is gone: writep="md"andbg="color3". A string is always a token; a number is a raw value. - Conditions live inside the value.hoverStyle,pressStyle,focusStyle,focusVisibleStyle,disabledStyle,enterStyleandexitStyleare removed. Writebg="color2 hover:color3 press:color4"instead, or the object form{ default, hover }. Media props become media clauses:p="sm gtSm:lg". - Transitions. Usetransition="fast"or the object form{ preset, properties, enter, exit }.animateOnlyis removed; usetransition.properties. Motion presets are now unified across web and native, so some timings change, most noticeablybouncy. - Line height. A numericlineHeightis now a ratio of the font size. Use"24px"for an absolute value. Component authoring -X.styleable(fn)is replaced bystyleable(X, fn)from@knitui/core. It is memoized and supports chaining. - Prefer plainstyled()with variants,styled.dynamicor.resolve. The compiler can flatten these; a styleable HOC can never be flattened. - Many layout and typography primitives (Flex, Container, Spacer, AspectRatio, Paragraph, Kbd, Mark, VisuallyHidden, …) are now plain styled components. - Variant precedence follows the order props are passed. An explicitundefinedpassed to a style prop clears the base value. Core - Themes.@tamagui/theme-builderis replaced by@tamagui/config-v5/builder. Default themes are precomputed at build time. - Tokens. Thetrueandtransparenttokens are removed. - New helpers:resolveToken,isToken,splitStyleProps,ThemeUpdate, andfocusRingColorplus focus-ring variables. - Removed:usePropsandusePropsAndStyle. Tooling (`@knitui/plugins`) - Native compilation now goes through the Metro plugin (@tamagui/cli/metro). The babel plugin entry is a deprecated no-op. - Vite now uses@tamagui/cli/vite. - The Next and webpack adapters are on v3. Fixes made along the way - Hover now works on web. - Noname="…"attributes leak into the DOM or FormData. - Overlay styles that were being wiped are restored: Modal max-width, Popover and Tooltip radius. - Image radius and size now resolve. - Text fields now show an accent focus border. - The@knitui/mediasideEffectssetting no longer drops the expo-video web global. - ARIA is improved in Menu, Combobox, Tree, Tabs and Stepper. Map: dependency bump only. - Updated dependencies[af39617] - @knitui/core@1.0.0 - @knitui/components@1.0.0
@knitui/sheet
- major Knit UI 1.0 now runs on Tamagui v3 (3.0.18). This is a breaking release: every style prop uses the v3 value syntax. Run the codemod first, then follow the upgrade guide at
/docs/guides/upgrading-to-v1. Styling syntax - Bare tokens.$is gone: writep="md"andbg="color3". A string is always a token; a number is a raw value. - Conditions live inside the value.hoverStyle,pressStyle,focusStyle,focusVisibleStyle,disabledStyle,enterStyleandexitStyleare removed. Writebg="color2 hover:color3 press:color4"instead, or the object form{ default, hover }. Media props become media clauses:p="sm gtSm:lg". - Transitions. Usetransition="fast"or the object form{ preset, properties, enter, exit }.animateOnlyis removed; usetransition.properties. Motion presets are now unified across web and native, so some timings change, most noticeablybouncy. - Line height. A numericlineHeightis now a ratio of the font size. Use"24px"for an absolute value. Component authoring -X.styleable(fn)is replaced bystyleable(X, fn)from@knitui/core. It is memoized and supports chaining. - Prefer plainstyled()with variants,styled.dynamicor.resolve. The compiler can flatten these; a styleable HOC can never be flattened. - Many layout and typography primitives (Flex, Container, Spacer, AspectRatio, Paragraph, Kbd, Mark, VisuallyHidden, …) are now plain styled components. - Variant precedence follows the order props are passed. An explicitundefinedpassed to a style prop clears the base value. Core - Themes.@tamagui/theme-builderis replaced by@tamagui/config-v5/builder. Default themes are precomputed at build time. - Tokens. Thetrueandtransparenttokens are removed. - New helpers:resolveToken,isToken,splitStyleProps,ThemeUpdate, andfocusRingColorplus focus-ring variables. - Removed:usePropsandusePropsAndStyle. Tooling (`@knitui/plugins`) - Native compilation now goes through the Metro plugin (@tamagui/cli/metro). The babel plugin entry is a deprecated no-op. - Vite now uses@tamagui/cli/vite. - The Next and webpack adapters are on v3. Fixes made along the way - Hover now works on web. - Noname="…"attributes leak into the DOM or FormData. - Overlay styles that were being wiped are restored: Modal max-width, Popover and Tooltip radius. - Image radius and size now resolve. - Text fields now show an accent focus border. - The@knitui/mediasideEffectssetting no longer drops the expo-video web global. - ARIA is improved in Menu, Combobox, Tree, Tabs and Stepper. Map: dependency bump only. - Updated dependencies[af39617] - @knitui/core@1.0.0 - @knitui/hooks@1.0.0 - @knitui/components@1.0.0 - @knitui/icons@1.0.0
@knitui/mediaquery
- major Knit UI 1.0 now runs on Tamagui v3 (3.0.18). This is a breaking release: every style prop uses the v3 value syntax. Run the codemod first, then follow the upgrade guide at
/docs/guides/upgrading-to-v1. Styling syntax - Bare tokens.$is gone: writep="md"andbg="color3". A string is always a token; a number is a raw value. - Conditions live inside the value.hoverStyle,pressStyle,focusStyle,focusVisibleStyle,disabledStyle,enterStyleandexitStyleare removed. Writebg="color2 hover:color3 press:color4"instead, or the object form{ default, hover }. Media props become media clauses:p="sm gtSm:lg". - Transitions. Usetransition="fast"or the object form{ preset, properties, enter, exit }.animateOnlyis removed; usetransition.properties. Motion presets are now unified across web and native, so some timings change, most noticeablybouncy. - Line height. A numericlineHeightis now a ratio of the font size. Use"24px"for an absolute value. Component authoring -X.styleable(fn)is replaced bystyleable(X, fn)from@knitui/core. It is memoized and supports chaining. - Prefer plainstyled()with variants,styled.dynamicor.resolve. The compiler can flatten these; a styleable HOC can never be flattened. - Many layout and typography primitives (Flex, Container, Spacer, AspectRatio, Paragraph, Kbd, Mark, VisuallyHidden, …) are now plain styled components. - Variant precedence follows the order props are passed. An explicitundefinedpassed to a style prop clears the base value. Core - Themes.@tamagui/theme-builderis replaced by@tamagui/config-v5/builder. Default themes are precomputed at build time. - Tokens. Thetrueandtransparenttokens are removed. - New helpers:resolveToken,isToken,splitStyleProps,ThemeUpdate, andfocusRingColorplus focus-ring variables. - Removed:usePropsandusePropsAndStyle. Tooling (`@knitui/plugins`) - Native compilation now goes through the Metro plugin (@tamagui/cli/metro). The babel plugin entry is a deprecated no-op. - Vite now uses@tamagui/cli/vite. - The Next and webpack adapters are on v3. Fixes made along the way - Hover now works on web. - Noname="…"attributes leak into the DOM or FormData. - Overlay styles that were being wiped are restored: Modal max-width, Popover and Tooltip radius. - Image radius and size now resolve. - Text fields now show an accent focus border. - The@knitui/mediasideEffectssetting no longer drops the expo-video web global. - ARIA is improved in Menu, Combobox, Tree, Tabs and Stepper. Map: dependency bump only. - Updated dependencies[af39617] - @knitui/core@1.0.0 - @knitui/hooks@1.0.0
@knitui/plugins
- major Knit UI 1.0 now runs on Tamagui v3 (3.0.18). This is a breaking release: every style prop uses the v3 value syntax. Run the codemod first, then follow the upgrade guide at
/docs/guides/upgrading-to-v1. Styling syntax - Bare tokens.$is gone: writep="md"andbg="color3". A string is always a token; a number is a raw value. - Conditions live inside the value.hoverStyle,pressStyle,focusStyle,focusVisibleStyle,disabledStyle,enterStyleandexitStyleare removed. Writebg="color2 hover:color3 press:color4"instead, or the object form{ default, hover }. Media props become media clauses:p="sm gtSm:lg". - Transitions. Usetransition="fast"or the object form{ preset, properties, enter, exit }.animateOnlyis removed; usetransition.properties. Motion presets are now unified across web and native, so some timings change, most noticeablybouncy. - Line height. A numericlineHeightis now a ratio of the font size. Use"24px"for an absolute value. Component authoring -X.styleable(fn)is replaced bystyleable(X, fn)from@knitui/core. It is memoized and supports chaining. - Prefer plainstyled()with variants,styled.dynamicor.resolve. The compiler can flatten these; a styleable HOC can never be flattened. - Many layout and typography primitives (Flex, Container, Spacer, AspectRatio, Paragraph, Kbd, Mark, VisuallyHidden, …) are now plain styled components. - Variant precedence follows the order props are passed. An explicitundefinedpassed to a style prop clears the base value. Core - Themes.@tamagui/theme-builderis replaced by@tamagui/config-v5/builder. Default themes are precomputed at build time. - Tokens. Thetrueandtransparenttokens are removed. - New helpers:resolveToken,isToken,splitStyleProps,ThemeUpdate, andfocusRingColorplus focus-ring variables. - Removed:usePropsandusePropsAndStyle. Tooling (`@knitui/plugins`) - Native compilation now goes through the Metro plugin (@tamagui/cli/metro). The babel plugin entry is a deprecated no-op. - Vite now uses@tamagui/cli/vite. - The Next and webpack adapters are on v3. Fixes made along the way - Hover now works on web. - Noname="…"attributes leak into the DOM or FormData. - Overlay styles that were being wiped are restored: Modal max-width, Popover and Tooltip radius. - Image radius and size now resolve. - Text fields now show an accent focus border. - The@knitui/mediasideEffectssetting no longer drops the expo-video web global. - ARIA is improved in Menu, Combobox, Tree, Tabs and Stepper. Map: dependency bump only. - Updated dependencies[af39617] - @knitui/core@1.0.0
0.14.0
@knitui/components
- minor Image (web): the kit renders its own
<img>on the web instead of expo-image's web build, so an image shows as soon as the browser can. expo-image added its<img>from an effect (a blank frame on every mount, an empty box in server-rendered HTML) and started each mount's fade atopacity: 0, cached or not; a virtualized list, a revisited page or a hydrating one remounts images all the time, so they blinked. The<img>is now in the first render and in the SSR markup, never held hidden, lazy-loaded by default (loading,priority→fetchpriority), withcontentFit/contentPosition,blurRadius, URLplaceholders and expo-image's load / error / display payloads as before.Image.prefetchwarms the browser cache. Native is unchanged (expo-image,Image.native.tsx). Behaviour change (web):transitionno longer fades on the web; it stays a native fade. BlurHash / ThumbHash placeholders andtintColordo not render on the web, and the cache-management statics (clearMemoryCache,clearDiskCache,getCachePathAsync,generateBlurhashAsync,loadAsync) are no-ops there. - @knitui/core@0.14.0
- @knitui/hooks@0.14.0
- @knitui/icons@0.14.0
@knitui/hooks
- @knitui/core@0.14.0
@knitui/dates
- Updated dependencies[9955de3] - @knitui/components@0.14.0 - @knitui/core@0.14.0 - @knitui/hooks@0.14.0
@knitui/graphics
- Updated dependencies[9955de3] - @knitui/components@0.14.0 - @knitui/core@0.14.0
@knitui/mediaquery
- @knitui/core@0.14.0
- @knitui/hooks@0.14.0
0.13.0
@knitui/core
- minor Font tokens are
remon the web, so browser text-only zoom and a raised default font size now scale the kit's text (WCAG 1.4.4). ThesizeandlineHeightsections of every font — the stockfontsand everythingcreateThemebuilds, includingfontSizesand per-fontfonts.*.size/lineHeightpx overrides — are emitted aspx / 16rem on the web ($md→1.125rem, its line height →1.625rem); native keeps numbers. With the default 16px root every size renders the same px as before. The Textarea's per-size line height is now the matching line-height token instead of a px number, so its rows grow with the text. Behaviour change (web): reading a font token's value from the config (config.fonts.body.size.md,getVariableValueon a font token) now returns a rem string instead of a number. For px math usegetFontSize/getLineHeight, which stay numeric on every platform. Raw numericfontSize/lineHeightprops are untouched and stay px. No new public API; nothing to migrate for apps that only use$tokens.
@knitui/components
- Avatar: the photo gets
alt="". The frame already carriesrole="img"and thearia-label; without an alt some screen readers announced the image file name (WCAG 1.1.1). - Card: importing the module no longer reads a token. The context default resolved
$lgat module scope, which threw whenCardwas evaluated before the Tamagui config was registered (e.g. an SSR chunk loading ahead of the config). ACard.Sectionoutside anyCardnow resolves the default padding on render. - Font tokens are
remon the web, so browser text-only zoom and a raised default font size now scale the kit's text (WCAG 1.4.4). ThesizeandlineHeightsections of every font — the stockfontsand everythingcreateThemebuilds, includingfontSizesand per-fontfonts.*.size/lineHeightpx overrides — are emitted aspx / 16rem on the web ($md→1.125rem, its line height →1.625rem); native keeps numbers. With the default 16px root every size renders the same px as before. The Textarea's per-size line height is now the matching line-height token instead of a px number, so its rows grow with the text. Behaviour change (web): reading a font token's value from the config (config.fonts.body.size.md,getVariableValueon a font token) now returns a rem string instead of a number. For px math usegetFontSize/getLineHeight, which stay numeric on every platform. Raw numericfontSize/lineHeightprops are untouched and stay px. No new public API; nothing to migrate for apps that only use$tokens. - Image (web): an image the browser already had is shown. A cached image fires
loadas soon as its<img>is created, which in a concurrent render can land before the commit; React drops the event and expo-image's fade held the image atopacity: 0for good. After mount (and on each new source) a committed<img>that iscompletewith anaturalWidthand never reportedloadnow gets it re-dispatched, so the fade runs andonLoadfires once. - PinInput: new
nameandformprops (web only). With aname, one<input type="hidden">carries the joined code, so a surrounding form submits it as a single field (what password managers and one-time-code autofill look for). The per-character boxes stay nameless; native ignores both props. - Sheet: new
aria-label/aria-labelledbyprops name the panel, on the element that carries its role (native:aria-labelbecomes the panel'saccessibilityLabel). A modal sheet stays a dialog (role="dialog",aria-modal="true"). A non-modal sheet (modal={false}, a persistent panel such as a browse sheet over a map) is no longer a dialog: it is arole="region"landmark when named, and has no role when not. Before, every sheet wasrole="dialog"with no way to name it (axearia-dialog-name). Behaviour change (web): amodal={false}sheet losesrole="dialog"andaria-modal="false". If you relied on the dialog role for a non-modal sheet, setrolethroughstyles.root(it still wins). Tabs: aTabs.Tabsetsaria-controlsonly while itsTabs.Panelis mounted (panels register with theTabsroot), so a tab strip without panels, or a panel unmounted bykeepMounted={false}, no longer points at a missing id (axearia-valid-attr-value). A caller's ownaria-controlsonTabs.Tabnow wins over the generated one. - SimpleGrid: the gutter no longer overflows the parent. The grid used a negative-margin track, so inside a fixed-width scrolling column it reached half a gap past each edge and scrolled sideways. Rows now use
rowGap; incolsmode the column gap is split across each cell's inline padding by column index (equal column widths, outer columns flush);minColWidthmode usescolumnGap. The API and the visual spacing are unchanged. - Updated dependencies[633e669] - @knitui/core@0.13.0 - @knitui/hooks@0.13.0 - @knitui/icons@0.13.0
@knitui/hooks
- Updated dependencies[633e669] - @knitui/core@0.13.0
@knitui/dates
- Updated dependencies[069938f]
- Updated dependencies[8626180]
- Updated dependencies[633e669]
- Updated dependencies[5991b24]
- Updated dependencies[326ce54]
- Updated dependencies[e282fbd]
- Updated dependencies[574ac98] - @knitui/components@0.13.0 - @knitui/core@0.13.0 - @knitui/hooks@0.13.0
@knitui/graphics
- Updated dependencies[069938f]
- Updated dependencies[8626180]
- Updated dependencies[633e669]
- Updated dependencies[5991b24]
- Updated dependencies[326ce54]
- Updated dependencies[e282fbd]
- Updated dependencies[574ac98] - @knitui/components@0.13.0 - @knitui/core@0.13.0
@knitui/mediaquery
- Updated dependencies[633e669] - @knitui/core@0.13.0 - @knitui/hooks@0.13.0
0.12.2
@knitui/components
- Input / NativeSelect: the text no longer sits too far from a
leftSection/rightSection. A section is a control-height square that already holds the gap around its icon, but the host still added its own horizontal padding on that side (26px icon→text vs 10px border→icon atmd). The host padding is now dropped on any side carrying a section, loader, clear button or chevron — on web and native. A padding prop passed to the input still wins. - Transition (native): a
keepMountedchild no longer crashes with "Rendered more hooks than during the previous render" whenmountedturns true. The hidden frame was returned without the Tamaguitransitionprop and got it a render later, which changes an animated view's hook order. Every element the native Transition returns now carries thetransitionkey (nullwhen there is nothing to animate, e.g. under reduced motion). - PinInput: Backspace in an empty field works on Android. Soft keyboards (Gboard) send neither a key event nor a text change for it, so a wrong digit could not be walked back to from the keyboard. The focused empty field now holds a zero-width space on Android; deleting it steps back and clears the previous character. Also, an
onFocus/onBlurpassed throughgetInputPropsis now called alongside the row's own handlers instead of replacing them (replacing them broke the focused-field tracking the placeholder relies on). - @knitui/core@0.12.2 - @knitui/hooks@0.12.2 - @knitui/icons@0.12.2
@knitui/hooks
- @knitui/core@0.12.2
@knitui/dates
- Updated dependencies[10b4ce3]
- Updated dependencies[784af02]
- Updated dependencies[e6492e4] - @knitui/components@0.12.2 - @knitui/core@0.12.2 - @knitui/hooks@0.12.2
@knitui/graphics
- Updated dependencies[10b4ce3]
- Updated dependencies[784af02]
- Updated dependencies[e6492e4] - @knitui/components@0.12.2 - @knitui/core@0.12.2
@knitui/mediaquery
- @knitui/core@0.12.2
- @knitui/hooks@0.12.2
0.12.1
@knitui/components
- Input (web):
placeholderTextColorno longer leaks onto the DOM<input>as an unknown attribute (React "does not recognize theplaceholderTextColorprop" warning). It now sets the placeholder color through--t_placeholderColor, matching native. - @knitui/core@0.12.1 - @knitui/hooks@0.12.1 - @knitui/icons@0.12.1
@knitui/hooks
- @knitui/core@0.12.1
@knitui/dates
- Updated dependencies[c372c5d] - @knitui/components@0.12.1 - @knitui/core@0.12.1 - @knitui/hooks@0.12.1
@knitui/graphics
- Updated dependencies[c372c5d] - @knitui/components@0.12.1 - @knitui/core@0.12.1
@knitui/mediaquery
- @knitui/core@0.12.1
- @knitui/hooks@0.12.1
0.12.0
@knitui/components
- minor Add
SkeletonGroup: a loading silhouette animated as ONE. It holds invisible fordelayMs(default 150ms) so a fast load never flashes, fades in, then pulses every grouped block in phase — one compositor animation (web) / one reanimated shared value (native) for the whole layout instead of one loop perSkeleton. GroupedSkeletons schedule no loop of their own and are hidden from assistive tech; the group is the singlearia-busyregion (role="progressbar",label). Reduced motion keeps the hold and drops the fade and pulse. - @knitui/core@0.12.0
- @knitui/hooks@0.12.0
- @knitui/icons@0.12.0
@knitui/hooks
- @knitui/core@0.12.0
@knitui/dates
- Updated dependencies[8b4d429] - @knitui/components@0.12.0 - @knitui/core@0.12.0 - @knitui/hooks@0.12.0
@knitui/graphics
- Updated dependencies[8b4d429] - @knitui/components@0.12.0 - @knitui/core@0.12.0
@knitui/mediaquery
- @knitui/core@0.12.0
- @knitui/hooks@0.12.0
0.11.0
@knitui/core
- minor Platform services, so apps never import
react-nativefor them. -@knitui/core:isIos/isAndroidalongsideisWeb; a structuralPressEventtype (likeLayoutChangeEvent). -@knitui/hooks:getAppState()/subscribeAppState()(the imperative half ofuseAppState, which now runs on them viauseSyncExternalStore; web also reportspagehideasbackground),getViewportSize(),openURL()/canOpenURL()/openAppSettings(),share()(nativeShare/ Web Share API, per-platform URL handling), andannounce()(VoiceOver/TalkBack on native, a lazily mounted live region on web). WebopenURLdetaches the new tab by hand instead ofnoopener, which makeswindow.openreturnnulleven on success. -@knitui/plugins/next:NextTamaguiProvidertakesconfigandexclude, for apps that build their config at runtime.
@knitui/components
- minor ScrollArea + VirtualList: pull-to-refresh. New
onRefresh,refreshingandrefreshColor(theme token or concrete colour, default$color10) props mount a theme-tinted RNRefreshControlon the native single-axis scroller (andScrollArea.Autosize), so consumers no longer importRefreshControlfromreact-nativeor cast it throughviewportProps. VirtualList accepts the same three props and forwards them to its ScrollArea. Web accepts and ignores them (an inner web scroller has no pull gesture); the two-axis Pan engine has no native scroller, so it ignores them too. - Updated dependencies[c843078] - @knitui/core@0.11.0 - @knitui/hooks@0.11.0 - @knitui/icons@0.11.0
@knitui/hooks
- minor Platform services, so apps never import
react-nativefor them. -@knitui/core:isIos/isAndroidalongsideisWeb; a structuralPressEventtype (likeLayoutChangeEvent). -@knitui/hooks:getAppState()/subscribeAppState()(the imperative half ofuseAppState, which now runs on them viauseSyncExternalStore; web also reportspagehideasbackground),getViewportSize(),openURL()/canOpenURL()/openAppSettings(),share()(nativeShare/ Web Share API, per-platform URL handling), andannounce()(VoiceOver/TalkBack on native, a lazily mounted live region on web). WebopenURLdetaches the new tab by hand instead ofnoopener, which makeswindow.openreturnnulleven on success. -@knitui/plugins/next:NextTamaguiProvidertakesconfigandexclude, for apps that build their config at runtime. - Updated dependencies[c843078] - @knitui/core@0.11.0
@knitui/dates
- Updated dependencies[c843078]
- Updated dependencies[c843078] - @knitui/core@0.11.0 - @knitui/hooks@0.11.0 - @knitui/components@0.11.0
@knitui/graphics
- Updated dependencies[c843078]
- Updated dependencies[c843078] - @knitui/core@0.11.0 - @knitui/components@0.11.0
@knitui/mediaquery
- Updated dependencies[c843078] - @knitui/core@0.11.0 - @knitui/hooks@0.11.0
0.10.0
@knitui/components
- minor Button consistency pass (from a consumer-app button audit): -
ButtonandActionIcontakehref: on web they render a real<a href>withrole="link"(middle-click / ⌘-click / URL preview work); ignored on native and while disabled/loading. -CloseButtonis now a real, keyboard-focusable<button>on web (it was a<div role="button">, so its focus ring never fired) and setsaria-disabled. - Control label atmdis 16px (was 18px), closing the 14 → 18 gap; thecontrolMetricsdocblock table is regenerated fromscales.ts. -ActionIcon/ThemeIconcorners fromsmtoxlare$md(8), matchingButton(were 4 at sm/md). - Disabled opacity is 0.6 everywhere (Tabs were 0.4, Pill 0.5, SegmentedControl items 0.45). -Tabs.TabandSegmentedControlsegments get the shared press dip. - A loadingButtonwith no left section keeps its width: the loader overlays the (invisible, still-announced) label instead of being prepended. -controlIconSizeresolves size tokens ("$sm") like bare keys — Pill's remove ✕ now scales with the pill instead of always drawing at 20px. - minor Scoped overlay hosts + a carousel
scrollsToToppass-through (for native modal screens and the iOS status-bar tap): - NewOverlayHost(name,children): mounts a scopedPortalHostover its subtree, and every kit overlay inside it —Popover(and soMenu/Combobox/date-picker dropdowns),Tooltip,Modal/Drawer,Affix, and a modal@knitui/sheetSheet— teleports there instead of"root". Wrap an iOSformSheet/fullScreenModalscreen in it so its overlays stop drawing behind the modal. Outside anOverlayHostnothing changes. -useOverlayHost()returns the host overlays should use at that point in the tree ("root"by default);useTopmostOverlayHost()returns the top-most mounted scoped host app-wide, for global layers (toasts) that live outside every scope.ROOT_OVERLAY_HOSTnames the default. - Native floating positioning measures a scoped host's window origin, so a dropdown inside aformSheetlands on its trigger. -CarouseltakesscrollsToTop(iOS,scrollMode="native"): passfalseon a rail so the page's own scroller keeps the status-bar tap. - @knitui/core@0.10.0
- @knitui/hooks@0.10.0
- @knitui/icons@0.10.0
@knitui/hooks
- @knitui/core@0.10.0
@knitui/dates
- Updated dependencies[26d50da]
- Updated dependencies[26d50da] - @knitui/components@0.10.0 - @knitui/core@0.10.0 - @knitui/hooks@0.10.0
@knitui/graphics
- Updated dependencies[26d50da]
- Updated dependencies[26d50da] - @knitui/components@0.10.0 - @knitui/core@0.10.0
@knitui/mediaquery
- @knitui/core@0.10.0
- @knitui/hooks@0.10.0
0.9.0
@knitui/core
- minor Refresh dependencies to the latest Expo SDK 57 releases. - core / components / plugins: Tamagui 2.4.6 → 2.7.7 (pinned exactly, so the babel plugin and runtime always match) and
react-native-teleport1.1.7 → 1.2.2. The teleport AndroidprepareToRecycleViewfix is now upstream, so the local patch is gone.expo-image→ ~57.0.5. - map: now targetsmaplibre-glv6 on web (peer^6, was^5) and@maplibre/maplibre-react-native^11.4.0 on native. Both use@maplibre/maplibre-gl-style-spec26. maplibre v6 is ESM-only and has no default export; the map package now imports it as a namespace. If your web app importsmaplibre-glitself, update it to v6. The canvas-leave handlers now listen tomouseout: v6 only firesmouseleavefor layer-scoped listeners, so the long-press/cursor reset on leaving the map never ran. - media:expo-audio→ ~57.0.5,expo-video→ ~57.0.4.
@knitui/components
- minor Refresh dependencies to the latest Expo SDK 57 releases. - core / components / plugins: Tamagui 2.4.6 → 2.7.7 (pinned exactly, so the babel plugin and runtime always match) and
react-native-teleport1.1.7 → 1.2.2. The teleport AndroidprepareToRecycleViewfix is now upstream, so the local patch is gone.expo-image→ ~57.0.5. - map: now targetsmaplibre-glv6 on web (peer^6, was^5) and@maplibre/maplibre-react-native^11.4.0 on native. Both use@maplibre/maplibre-gl-style-spec26. maplibre v6 is ESM-only and has no default export; the map package now imports it as a namespace. If your web app importsmaplibre-glitself, update it to v6. The canvas-leave handlers now listen tomouseout: v6 only firesmouseleavefor layer-scoped listeners, so the long-press/cursor reset on leaving the map never ran. - media:expo-audio→ ~57.0.5,expo-video→ ~57.0.4. - Updated dependencies[bf9eeb1] - @knitui/core@0.9.0 - @knitui/hooks@0.9.0 - @knitui/icons@0.9.0
@knitui/hooks
- Updated dependencies[bf9eeb1] - @knitui/core@0.9.0
@knitui/dates
- Updated dependencies[bf9eeb1] - @knitui/core@0.9.0 - @knitui/components@0.9.0 - @knitui/hooks@0.9.0
@knitui/graphics
- Updated dependencies[bf9eeb1] - @knitui/core@0.9.0 - @knitui/components@0.9.0
@knitui/mediaquery
- Updated dependencies[bf9eeb1] - @knitui/core@0.9.0 - @knitui/hooks@0.9.0
0.8.1
@knitui/components
-
Menuis now operable from the keyboard: Arrow-key roving focus, focus moved into the dropdown on open, and focus returned to the trigger on close.Menurenderedrole="menu"withrole="menuitem"children but had no key handling at all, andmenuItemTabIndexdefaulted to-1— so every item was out of the tab order with nothing to put focus on them. An open menu could not be reached, navigated or activated with a keyboard, which for arole="menu"is worse than shipping no role: assistive technology announces a menu whose items cannot be got to. The items also carriedfocusRingStylewhile being unfocusable — a dead ring, the exact invariantsrc/__tests__/focus-ring.test.tsxexists to catch, andMenuwas missing from its case list, which is how this survived. What changed: - Roving focus. <kbd>↓</kbd>/<kbd>↑</kbd> move between enabled items (wrapping, unlessloop={false}), <kbd>Home</kbd>/<kbd>End</kbd> jump to the ends. Disabled items are skipped. Items are enumerated from the DOM ([role="menuitem"]) rather than from cloned children, because a menu's children are arbitrary — items interleaved with labels, dividers and the consumer's own fragments. - Opening from the trigger. <kbd>↓</kbd> opens the menu focusing the first item, <kbd>↑</kbd> the last. This is also the only way to open a _hover_ menu from the keyboard without pressing it. - Focus management.trapFocusandreturnFocusare now forwarded to the underlyingPopover, which already implemented both. They default totruefortrigger="click"andfalsefor hover triggers: a menu opened by pointing at something never held focus, so taking it on hover-in — and pushing it onto the trigger on hover-out — would move the caret out of whatever the user was actually doing. Both are overridable per menu.menuItemTabIndexkeeps its-1default and its meaning; it is no longer the only way to reach an item, and the docs now say so. Behaviour for pointer users is unchanged.Menujoins the focus-ring guardrail, along withColorPicker,StepperandTreeSelect— three more ring-bearing components the contract test never covered. - @knitui/core@0.8.1 - @knitui/hooks@0.8.1 - @knitui/icons@0.8.1
@knitui/hooks
- @knitui/core@0.8.1
@knitui/dates
- Updated dependencies[c25c51f] - @knitui/components@0.8.1 - @knitui/core@0.8.1 - @knitui/hooks@0.8.1
@knitui/graphics
- Updated dependencies[c25c51f] - @knitui/components@0.8.1 - @knitui/core@0.8.1
@knitui/mediaquery
- @knitui/core@0.8.1
- @knitui/hooks@0.8.1
0.8.0
@knitui/core
- minor
ProvideracceptsbackgroundColorfor the full-screen layer it paints behind every route. It still defaults to the theme's$background; hosts that paint their own page background (a web page with CSS gradients or custom properties) can now pass"transparent"so that background is not covered. -
<Provider>now registers the config it is handed as the active Tamagui config, andsetConfigjoinsgetConfigin the@knitui/coresurface. Tamagui keeps one config per process andcreateTamaguiregisters its result as a side effect of being called, but<TamaguiProvider config={…}>does not register what it is passed — it only readsgetCSS()andanimations. So an app that built its own config withcreateThemewas in a two-writer race with the kit's built-in config (theconfigprop's default), and which one ended up resolving$tokens was decided by module evaluation order: - webpack evaluates the built-in config eagerly, so in a Next app the app's config could win during SSR and lose on the client — raw colour tokens resolved in the server HTML and silently stopped resolving after hydration. - Metro'sinlineRequiresdefers that import to its first use, so any code that merely touched the built-in config (a diagnostic comparing it againstgetConfig(), say) evaluated it at that moment and clobbered the app's config mid-render. Only raw tokens were affected, which is what made it hard to spot: theme values ($background,$color10,$borderColor) resolve through the theme and both configs ship the same theme names, so the app looked correct while every custom$brandColorresolved to nothing. The provider is where a consumer states which config is theirs, so it is now where that becomes true; it also re-asserts on later renders, so a stray latecreateTamaguino longer poisons the session.
@knitui/components
- Updated dependencies[8de27f7]
- Updated dependencies[85594a1] - @knitui/core@0.8.0 - @knitui/hooks@0.8.0 - @knitui/icons@0.8.0
@knitui/hooks
- Updated dependencies[8de27f7]
- Updated dependencies[85594a1] - @knitui/core@0.8.0
@knitui/dates
- Updated dependencies[8de27f7]
- Updated dependencies[85594a1] - @knitui/core@0.8.0 - @knitui/components@0.8.0 - @knitui/hooks@0.8.0
@knitui/graphics
- Updated dependencies[8de27f7]
- Updated dependencies[85594a1] - @knitui/core@0.8.0 - @knitui/components@0.8.0
@knitui/mediaquery
- Updated dependencies[8de27f7]
- Updated dependencies[85594a1] - @knitui/core@0.8.0 - @knitui/hooks@0.8.0
0.7.0
@knitui/core
- Dependency refresh, all within the current majors and validated against Expo SDK 57 (
expo install --checkreports the workspace aligned): -react-native0.86.0 → 0.86.2 (and@react-native/metro-configto match; both stay pinned as singletons in the rootpnpm.overrides) -react-native-reanimated4.5.0 → 4.5.1 andreact-native-worklets0.10.0 → 0.10.1 — the versions Expo SDK 57 expects -expo57.0.7 → 57.0.9 and the SDK-managed modules along with it (expo-router,expo-constants,expo-linking,expo-system-ui,expo-video,@expo/metro-runtime,expo-build-properties) -babel-preset-expo57.0.3 → 57.0.5, Storybook 10.5.3 → 10.5.5,@vitejs/plugin-react6.0.3 → 6.0.4,next16.2.10 → 16.2.12,@react-navigation/*patch bumps The vendoredexpo-modules-corepatch was re-pointed from 57.0.6 to 57.0.8 and still applies cleanly.expo-audiodeliberately stays on 57.0.2, where our native sampling patch is pinned. Peer requirements for consumers are unchanged.
@knitui/components
- minor
VirtualListcan page backwards and hold the reading position while it doesVirtualListshipped withonEndReachedonly, which covers the ordinary infinite feed but not the list whose history grows at the HEAD — a chat thread loading older messages, a log tailing backwards. Two new props close that: - `onStartReached` (+onStartReachedThreshold, default0.5viewports) — the mirror ofonEndReached, measured from offset 0, with the same one-shot latch: it re-arms only once the list has scrolled back out of the threshold band, so a caller whose page lands while still near the top is asked once rather than every frame. LikeonEndReachedon a short list it fires on mount at rest, because the list genuinely IS at the start. - `maintainVisibleContentPosition` — holds the reading position across a layout change instead of letting the rows slide. Off by default: it takes over the scroll offset, which a list that only grows at the tail has no reason to hand over. Backwards pagination needs the second prop to be usable at all, because an insert at the head moves every row already on screen. With it on, a prepend has its inserted height added to the scroll offset in the same frame — pre-paint, in a layout effect, since a passive effect would show one frame of the content having dropped by a page's worth of height. The anchor is re-derived on every layout bump, because the inserted rows start on the ESTIMATE and each real measurement above the anchor moves it again; against a 25-row page, a few px of per-row error is a visible drift. It is released once nothing above the anchor can still move, or the moment the user's own gesture arrives — correcting through a live gesture would fight it. Two fixes fall out of the same work: - The size model mis-attributed a prepend.resizeLayoutStatepreserves measurements by INDEX, which is right for an append or a pop and wrong for an insert at the head: row 0's measured height stayed on row 0, now a different row, and every other measurement read off by the number of rows inserted. The list then reflowed for the entire first scroll back up, re-learning heights in slots that already claimed to know them. With akeyExtractor, measurements are now keyed by item rather than by slot, so a prepend carries each one to its row's new index — see the keyed size model in the same release. - `scrollToEnd` landed short on unmeasured content. The destination comes from the total height, and on a list opening deep into content it has never measured that total is mostly estimate — so hitting it once leaves the last rows short of the bottom by the accumulated error (25 chat bubbles a dozen px under their estimate is a third of a screen). UndermaintainVisibleContentPositiona non-animatedscrollToEndnow HOLDS the end and re-derives it as those rows measure. Animated calls stay one-shot: an animated scroll reports a stream of intermediate positions, and this cannot tell those apart from the user grabbing the list mid-flight. Both props needkeyExtractor: a prepend is recognised by finding the previous head row at its new index (one key comparison, not a diff), and index keys carry no identity to recognise it by.scrollToIndex/scrollToOffset/scrollToTopdrop any held anchor — an explicit destination outranks whatever the list was holding on to. - minor VirtualList: `keepMounted`, keyed identity, and cheaper re-renders.
VirtualListgained akeepMountedprop — an escalating ladder for how much stays mounted beyond the live window, so rows can keep their own state (a half-typed input, a playing video, in-flight work) instead of losing it the moment they scroll out: -false(default, unchanged) — pure virtualization; leaving the window unmounts. - a number — keep at most that many already-seen rows outside the window, evicting the least-recently-visible first (a bounded LRU warm pool). -true— keep every row that has ever mounted; unbounded, but still lazy. -"all"— no windowing at all: every row indatais mounted immediately, whether or not it has been on screen. Mount cost is O(data), so keep it to lists you would have rendered with.map()anyway. Supplying akeyExtractornow makes the list's caches follow items instead of slots: measured heights live in a per-key cache, so a prepend, insert, removal, sort or filter moves each row's height (and its retained mount) with its item rather than shifting them onto the wrong row. Without akeyExtractorthe index remains the identity, which is only correct for append/pop — as before. This subsumes the index-shifting prepend the backwards-pagination work added earlier in this release: a prepend is one shape of data change among many, so it now goes through the same keyed re-sync, andprependLayoutStateis gone.maintainVisibleContentPositionstill detects the prepend by key — it needs to know how much height went in at the head to absorb it into the scroll offset — it just no longer moves the measurements itself. Rows now sit behind two memo boundaries instead of one. The inner boundary depends only on{ item, index, renderItem, extraData }, so a shifted row offset — which happens on every measurement in a variable-height list — or an inlineItemSeparatorComponent/styles.itemliteral re-renders only the cheap positioned wrapper and no longer re-runs yourrenderItem.styles.itemis also identity- stabilised internally, so writing it inline is now free. Fixes a crash whendatashrank below the current window (a filter, a reset, a page rollback): the mounted window is clamped to the data, where it previously indexed past the end of the array and handedrenderItemanundefineditem. - Dependency refresh, all within the current majors and validated against Expo SDK 57 (
expo install --checkreports the workspace aligned): -react-native0.86.0 → 0.86.2 (and@react-native/metro-configto match; both stay pinned as singletons in the rootpnpm.overrides) -react-native-reanimated4.5.0 → 4.5.1 andreact-native-worklets0.10.0 → 0.10.1 — the versions Expo SDK 57 expects -expo57.0.7 → 57.0.9 and the SDK-managed modules along with it (expo-router,expo-constants,expo-linking,expo-system-ui,expo-video,@expo/metro-runtime,expo-build-properties) -babel-preset-expo57.0.3 → 57.0.5, Storybook 10.5.3 → 10.5.5,@vitejs/plugin-react6.0.3 → 6.0.4,next16.2.10 → 16.2.12,@react-navigation/*patch bumps The vendoredexpo-modules-corepatch was re-pointed from 57.0.6 to 57.0.8 and still applies cleanly.expo-audiodeliberately stays on 57.0.2, where our native sampling patch is pinned. Peer requirements for consumers are unchanged. - Updated dependencies[59d065b] - @knitui/core@0.7.0 - @knitui/hooks@0.7.0 - @knitui/icons@0.7.0
@knitui/hooks
- Dependency refresh, all within the current majors and validated against Expo SDK 57 (
expo install --checkreports the workspace aligned): -react-native0.86.0 → 0.86.2 (and@react-native/metro-configto match; both stay pinned as singletons in the rootpnpm.overrides) -react-native-reanimated4.5.0 → 4.5.1 andreact-native-worklets0.10.0 → 0.10.1 — the versions Expo SDK 57 expects -expo57.0.7 → 57.0.9 and the SDK-managed modules along with it (expo-router,expo-constants,expo-linking,expo-system-ui,expo-video,@expo/metro-runtime,expo-build-properties) -babel-preset-expo57.0.3 → 57.0.5, Storybook 10.5.3 → 10.5.5,@vitejs/plugin-react6.0.3 → 6.0.4,next16.2.10 → 16.2.12,@react-navigation/*patch bumps The vendoredexpo-modules-corepatch was re-pointed from 57.0.6 to 57.0.8 and still applies cleanly.expo-audiodeliberately stays on 57.0.2, where our native sampling patch is pinned. Peer requirements for consumers are unchanged. - Updated dependencies[59d065b] - @knitui/core@0.7.0
@knitui/icons
- Dependency refresh, all within the current majors and validated against Expo SDK 57 (
expo install --checkreports the workspace aligned): -react-native0.86.0 → 0.86.2 (and@react-native/metro-configto match; both stay pinned as singletons in the rootpnpm.overrides) -react-native-reanimated4.5.0 → 4.5.1 andreact-native-worklets0.10.0 → 0.10.1 — the versions Expo SDK 57 expects -expo57.0.7 → 57.0.9 and the SDK-managed modules along with it (expo-router,expo-constants,expo-linking,expo-system-ui,expo-video,@expo/metro-runtime,expo-build-properties) -babel-preset-expo57.0.3 → 57.0.5, Storybook 10.5.3 → 10.5.5,@vitejs/plugin-react6.0.3 → 6.0.4,next16.2.10 → 16.2.12,@react-navigation/*patch bumps The vendoredexpo-modules-corepatch was re-pointed from 57.0.6 to 57.0.8 and still applies cleanly.expo-audiodeliberately stays on 57.0.2, where our native sampling patch is pinned. Peer requirements for consumers are unchanged.
@knitui/emoji
- Dependency refresh, all within the current majors and validated against Expo SDK 57 (
expo install --checkreports the workspace aligned): -react-native0.86.0 → 0.86.2 (and@react-native/metro-configto match; both stay pinned as singletons in the rootpnpm.overrides) -react-native-reanimated4.5.0 → 4.5.1 andreact-native-worklets0.10.0 → 0.10.1 — the versions Expo SDK 57 expects -expo57.0.7 → 57.0.9 and the SDK-managed modules along with it (expo-router,expo-constants,expo-linking,expo-system-ui,expo-video,@expo/metro-runtime,expo-build-properties) -babel-preset-expo57.0.3 → 57.0.5, Storybook 10.5.3 → 10.5.5,@vitejs/plugin-react6.0.3 → 6.0.4,next16.2.10 → 16.2.12,@react-navigation/*patch bumps The vendoredexpo-modules-corepatch was re-pointed from 57.0.6 to 57.0.8 and still applies cleanly.expo-audiodeliberately stays on 57.0.2, where our native sampling patch is pinned. Peer requirements for consumers are unchanged.
@knitui/dates
- Dependency refresh, all within the current majors and validated against Expo SDK 57 (
expo install --checkreports the workspace aligned): -react-native0.86.0 → 0.86.2 (and@react-native/metro-configto match; both stay pinned as singletons in the rootpnpm.overrides) -react-native-reanimated4.5.0 → 4.5.1 andreact-native-worklets0.10.0 → 0.10.1 — the versions Expo SDK 57 expects -expo57.0.7 → 57.0.9 and the SDK-managed modules along with it (expo-router,expo-constants,expo-linking,expo-system-ui,expo-video,@expo/metro-runtime,expo-build-properties) -babel-preset-expo57.0.3 → 57.0.5, Storybook 10.5.3 → 10.5.5,@vitejs/plugin-react6.0.3 → 6.0.4,next16.2.10 → 16.2.12,@react-navigation/*patch bumps The vendoredexpo-modules-corepatch was re-pointed from 57.0.6 to 57.0.8 and still applies cleanly.expo-audiodeliberately stays on 57.0.2, where our native sampling patch is pinned. Peer requirements for consumers are unchanged. - Updated dependencies[edcec97]
- Updated dependencies[15a329c]
- Updated dependencies[59d065b] - @knitui/components@0.7.0 - @knitui/core@0.7.0 - @knitui/hooks@0.7.0
@knitui/graphics
- Dependency refresh, all within the current majors and validated against Expo SDK 57 (
expo install --checkreports the workspace aligned): -react-native0.86.0 → 0.86.2 (and@react-native/metro-configto match; both stay pinned as singletons in the rootpnpm.overrides) -react-native-reanimated4.5.0 → 4.5.1 andreact-native-worklets0.10.0 → 0.10.1 — the versions Expo SDK 57 expects -expo57.0.7 → 57.0.9 and the SDK-managed modules along with it (expo-router,expo-constants,expo-linking,expo-system-ui,expo-video,@expo/metro-runtime,expo-build-properties) -babel-preset-expo57.0.3 → 57.0.5, Storybook 10.5.3 → 10.5.5,@vitejs/plugin-react6.0.3 → 6.0.4,next16.2.10 → 16.2.12,@react-navigation/*patch bumps The vendoredexpo-modules-corepatch was re-pointed from 57.0.6 to 57.0.8 and still applies cleanly.expo-audiodeliberately stays on 57.0.2, where our native sampling patch is pinned. Peer requirements for consumers are unchanged. - Updated dependencies[edcec97]
- Updated dependencies[15a329c]
- Updated dependencies[59d065b] - @knitui/components@0.7.0 - @knitui/core@0.7.0
@knitui/mediaquery
- Dependency refresh, all within the current majors and validated against Expo SDK 57 (
expo install --checkreports the workspace aligned): -react-native0.86.0 → 0.86.2 (and@react-native/metro-configto match; both stay pinned as singletons in the rootpnpm.overrides) -react-native-reanimated4.5.0 → 4.5.1 andreact-native-worklets0.10.0 → 0.10.1 — the versions Expo SDK 57 expects -expo57.0.7 → 57.0.9 and the SDK-managed modules along with it (expo-router,expo-constants,expo-linking,expo-system-ui,expo-video,@expo/metro-runtime,expo-build-properties) -babel-preset-expo57.0.3 → 57.0.5, Storybook 10.5.3 → 10.5.5,@vitejs/plugin-react6.0.3 → 6.0.4,next16.2.10 → 16.2.12,@react-navigation/*patch bumps The vendoredexpo-modules-corepatch was re-pointed from 57.0.6 to 57.0.8 and still applies cleanly.expo-audiodeliberately stays on 57.0.2, where our native sampling patch is pinned. Peer requirements for consumers are unchanged. - Updated dependencies[59d065b] - @knitui/core@0.7.0 - @knitui/hooks@0.7.0
0.6.3
@knitui/map
- -
ShapeSourcenow passesclusterPropertiesto the nativeGeoJSONSource, so native clusters aggregate point properties as web clusters do. The style spec's shorthand form, such as["+", ["get", "count"]], is expanded to the explicit reduce form the native SDKs read; on iOS the bare operator previously came through as the string"+". An inline object no longer reaches the native source as a change on every render. -SvgImageno longer stalls on a capture the native side never answers, e.g. when the map's screen is left mid-rasterization on iOS. Each attempt now has a watchdog and is retried. A late answer is still used, and a capture that throws is retried too.
0.6.2
@knitui/map
- The SVG raster store wakes its subscribers once per tick, not once per change. A map that mounts ~200 icons in one commit woke the host and every
useRasterizedSvgonce per icon, for each acquire and again for each capture that landed. The cache of finished bitmaps also holds 512 entries (was 64), so a map with a full marker sheet no longer rasterizes most of it again on a remount.
0.6.1
@knitui/core
- Keep the Tamagui module augmentation reachable from the built declarations.
config/config.tscarries thedeclare module "@tamagui/core"augmentation that teaches Tamagui this kit's token and shorthand vocabulary (maw, the$tokenunions). Nothing else on the barrel imported that module, so once consumers resolve the package by its builtindex.d.tsthe augmentation was unreachable and every shorthand silently disappeared. A type-only re-export pulls it back in without eagerly evaluating the config at module load. - Point every
typesentry at the built declarations (lib/typescript/*.d.ts) instead of at the shipped TypeScript source. These packages ship their source and resolve it at runtime (source,react-nativeanddefaultall still point intosrc), buttypespointed there too — so a consumer'stsctypechecked the kit's raw source as part of their own build. That is slow, and it surfaces errors that depend on the consumer's own compiler settings, sinceskipLibCheckdoes not apply to.tssource files. Resolvingtypesto real.d.tsfiles makes declaration handling both faster and inert.@knitui/iconsalso addslib/typescripttofiles; its declarations were previously built but never published, so the newtypespath would not have existed in the tarball.@knitui/emojideliberately keepstypeson its source: its per-emoji modules ship as pre-generated.js/.d.tspairs insidesrc, whichtscdoes not re-emit, so its built barrel cannot resolve them.
@knitui/components
- Fix
NaNcolour channels for an out-of-range hue.hsvaToRgbaObjectpicks one of six channel tuples byhue / 60and never normalised the hue first, so a negative one indexed off the front of those tuples and producedNaNfor red, green and blue.ColorPickerreaches this on every hue change — it passes the hue straight through as a plain number — which madeconvertHsvaToserialisergb(NaN, NaN, NaN). Hues now wrap by Euclidean remainder, so-60resolves as300and420as60. Colour _strings_ were never affected: a negative hue fails validation and resolves to black, as before. - Point every
typesentry at the built declarations (lib/typescript/*.d.ts) instead of at the shipped TypeScript source. These packages ship their source and resolve it at runtime (source,react-nativeanddefaultall still point intosrc), buttypespointed there too — so a consumer'stsctypechecked the kit's raw source as part of their own build. That is slow, and it surfaces errors that depend on the consumer's own compiler settings, sinceskipLibCheckdoes not apply to.tssource files. Resolvingtypesto real.d.tsfiles makes declaration handling both faster and inert.@knitui/iconsalso addslib/typescripttofiles; its declarations were previously built but never published, so the newtypespath would not have existed in the tarball.@knitui/emojideliberately keepstypeson its source: its per-emoji modules ship as pre-generated.js/.d.tspairs insidesrc, whichtscdoes not re-emit, so its built barrel cannot resolve them. - Updated dependencies[ffc254e]
- Updated dependencies[ffb4133]
- Updated dependencies[caa2d7e] - @knitui/core@0.6.1 - @knitui/hooks@0.6.1 - @knitui/icons@0.6.1
@knitui/hooks
- Stop
useListStatecorrupting the list on an out-of-range index.reorderdestructured the spliced-out item, so afrombeyond the end inserted a literalundefinedinto the list.swapwroteundefinedover a real row when either index was out of range, andsetItemPropspread a missing row into a bare{ [prop]: value }object masquerading as aT. All three now leave the list untouched when an index does not resolve. - Updated dependencies[ffc254e]
- Updated dependencies[caa2d7e] - @knitui/core@0.6.1
@knitui/icons
- Point every
typesentry at the built declarations (lib/typescript/*.d.ts) instead of at the shipped TypeScript source. These packages ship their source and resolve it at runtime (source,react-nativeanddefaultall still point intosrc), buttypespointed there too — so a consumer'stsctypechecked the kit's raw source as part of their own build. That is slow, and it surfaces errors that depend on the consumer's own compiler settings, sinceskipLibCheckdoes not apply to.tssource files. Resolvingtypesto real.d.tsfiles makes declaration handling both faster and inert.@knitui/iconsalso addslib/typescripttofiles; its declarations were previously built but never published, so the newtypespath would not have existed in the tarball.@knitui/emojideliberately keepstypeson its source: its per-emoji modules ship as pre-generated.js/.d.tspairs insidesrc, whichtscdoes not re-emit, so its built barrel cannot resolve them.
@knitui/dates
- Point every
typesentry at the built declarations (lib/typescript/*.d.ts) instead of at the shipped TypeScript source. These packages ship their source and resolve it at runtime (source,react-nativeanddefaultall still point intosrc), buttypespointed there too — so a consumer'stsctypechecked the kit's raw source as part of their own build. That is slow, and it surfaces errors that depend on the consumer's own compiler settings, sinceskipLibCheckdoes not apply to.tssource files. Resolvingtypesto real.d.tsfiles makes declaration handling both faster and inert.@knitui/iconsalso addslib/typescripttofiles; its declarations were previously built but never published, so the newtypespath would not have existed in the tarball.@knitui/emojideliberately keepstypeson its source: its per-emoji modules ship as pre-generated.js/.d.tspairs insidesrc, whichtscdoes not re-emit, so its built barrel cannot resolve them. - Updated dependencies[487dce4]
- Updated dependencies[ffc254e]
- Updated dependencies[ffb4133]
- Updated dependencies[caa2d7e] - @knitui/components@0.6.1 - @knitui/core@0.6.1 - @knitui/hooks@0.6.1
@knitui/map
-
SvgImageon native: each offscreen raster surface is memoised. The host re-renders on every store change (each icon acquired or resolved), and every pending surface re-drew its<SvgXml>each time. With hundreds of icons that was quadratic, about 1.5 s of JS per second for the first seconds of a map on Android.
@knitui/graphics
- Point every
typesentry at the built declarations (lib/typescript/*.d.ts) instead of at the shipped TypeScript source. These packages ship their source and resolve it at runtime (source,react-nativeanddefaultall still point intosrc), buttypespointed there too — so a consumer'stsctypechecked the kit's raw source as part of their own build. That is slow, and it surfaces errors that depend on the consumer's own compiler settings, sinceskipLibCheckdoes not apply to.tssource files. Resolvingtypesto real.d.tsfiles makes declaration handling both faster and inert.@knitui/iconsalso addslib/typescripttofiles; its declarations were previously built but never published, so the newtypespath would not have existed in the tarball.@knitui/emojideliberately keepstypeson its source: its per-emoji modules ship as pre-generated.js/.d.tspairs insidesrc, whichtscdoes not re-emit, so its built barrel cannot resolve them. - Updated dependencies[487dce4]
- Updated dependencies[ffc254e]
- Updated dependencies[caa2d7e] - @knitui/components@0.6.1 - @knitui/core@0.6.1
@knitui/mediaquery
- Updated dependencies[ffc254e]
- Updated dependencies[ffb4133]
- Updated dependencies[caa2d7e] - @knitui/core@0.6.1 - @knitui/hooks@0.6.1
0.6.0
@knitui/core
- minor Cut the shipped theme suite from 440 themes to 22, and stop the mediaquery hooks re-parsing / re-rendering per frame ##
@knitui/core— 418 generated themes removedconfig/themes.tscalledcreateThemes(...)without acomponentThemesargument, so it inherited Tamagui'sdefaultComponentThemes— a 19-entry map that is itself@deprecatedupstream ("component themes are no longer recommended"). Those entries cross-multiply with every scheme × palette, so the kit shipped 2 × 11 × 20 = 440 themes, all built eagerly at module scope on every app start and again by the Tamagui babel/static compiler. Measured against the kit's real inputs (interpreter-only,node --jitless): | | themes | theme keys | resolvedVariables | heap | build | | ------ | ------ | ---------- | --------------------- | -------- | ------- | | before | 440 | 37,708 | 37,708 (2,822 unique) | 2,513 KB | 12.1 ms | | after | 22 | 1,870 | 1,870 (1,010 unique) | 208 KB | 2.8 ms |componentThemes: falseis set both in the stockconfig/themes.tsand increateTheme(), so a consumer-built config has the same theme set as the shipped one (24 names there — the stock 22 plus thebrandalias in both schemes). ### BREAKING for anyone naming a component theme Themes named<scheme>[_<palette>]_<Component>no longer exist. If you reference one by name —<Theme name="light_Button">, athemesoverride keyeddark_gray_Card, or acreateTheme({ themeBuilder: { componentThemes: … } })extension — it will no longer resolve and the nearest parent theme is used instead. The removed names are the 20 Tamagui defaults (Button,Card,Checkbox,Input,ListItem,Progress,ProgressIndicator,RadioGroupItem,SelectItem,SelectTrigger,SliderThumb,SliderTrack,SliderTrackActive,Switch,SwitchThumb,TextArea,Tooltip,TooltipArrow,TooltipContent) × 22 scheme/palette combinations. To get them back, pass your own map: ``ts createTheme({ themeBuilder: { componentThemes: { Card: { template: "surface1" } } } });`###@knitui/components— offsets that were implicit are now explicit Nine of the kit'sstyled()names collided with that default map and were silently receiving a template offset. Every one of them has been PINNED so the rendered colour is unchanged — verified value-by-value acrosslight,dark,light_blueanddark_red(100 probes, 0 differences): | component | template | change | | ------------- | -------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------- | |ListItem| surface1 | none — the frame paints nothing, andsurface*leaves$color1…$color12and$coloralone | |Progress| surface1 | none — already explicit$colorN| |Button| surface3 |variant="default"border pinned$borderColor→$color7(the only variant reading$borderColor) | |Card| surface1 | frame +Card.Sectionborder pinned to$color2/$color5| |Checkbox| surface2 | unchecked box pinned to$color3/$color6| |SliderTrack| inverse | ramp steps written pre-mirrored ($color3→$color10; childSliderBar$color9→$color4) | |SliderThumb| inverse | pre-mirrored ($color1→$color12,$color9→$color4, hover$color10→$color3; childSliderLabelBubbletoo) | |SwitchThumb| inverse | childSwitchThumbIndicatorpre-mirrored ($color5→$color8, on$color9→$color4). The thumb itself uses$white, a token, so it was never inverted | |Tooltip| inverse | frame$color9→$color4,Tooltip.Text$color1→$color12| Two things worth flagging to whoever owns the visual design: 1. The fourinversecollisions were **reversing the entire$color1…$color12ramp** under those subtrees, not offsetting one step. SoTooltipwas authored$color9fill +$color1label (the kit's canonical filled pairing) and actually painted step 4 + step 12; the slider's track/bar/thumb were likewise inverted. The pins preserve the shipped pixels, but they codify an appearance that came from a deprecated Tamagui default rather than a design decision. Un-mirroring them (back to$color9/$color1etc.) is a deliberate follow-up. 2. **Descendants** of those nine frames no longer inherit the offset theme. A component placed inside aCardused to resolve$backgroundone ramp step up ($color2); it now gets the page value ($color1). Only the nine frames' own painted surfaces are pinned — arbitrary user content inside them shifts by one step (or un-inverts, inside the Slider/Tooltip parts).config/OVER_MEDIAalso moved to its own module (config/over-media.ts) so importing those five scrim literals no longer drags in the whole theme generation. No export surface change. ##@knitui/mediaquery— no per-render parsing, 3N listeners → 3 - **matchesQueryno longer re-parses on every call.** The nativeuseMediaQueryevaluated its query on the render path, and a string query re-ran the full parser each time: for"(min-width: 768px) and (orientation: landscape)"that is ~6 regex executions plus ~10 allocations, per render, per hook instance — so a 50-row list did ~300 regex ops per render pass to produce 50 identical booleans. Parses are now memoised in a bounded module-level cache (parseMediaQueryhands out copies, so a caller can't poison it). - **One shared environment store on native.** Each call site used to register THREE native subscriptions (Dimensions,Appearance,AccessibilityInfo.reduceMotionChanged) plus anisReduceMotionEnabled()promise — 20 call sites meant 60 live listeners. Worse, every handler didsetEnv(prev => ({ ...prev, … })), always a NEW object, so one rotation re-rendered every instance even though the boolean each derives almost never flips. There is now one store with three listeners total, read throughuseSyncExternalStorewhose snapshot is the resolved **boolean**, so React bails per component unless that component's answer actually changed. - **useBreakpointrenders on band crossings, not resize pixels.** It was backed byuseViewportSize, whose untreatedresizelistener allocates a fresh{ width, height }~60×/s during a window drag, forcing a re-render at every call site before the band was even derived — thoughresolveBreakpointyields only 8 values across 7 thresholds.mediaquerynow owns a viewport store that wakes subscribers only when the band changes, and the hook's snapshot is theBreakpointKeystring. (@knitui/hooks'useViewportSizeis untouched — it has other consumers that want the pixel width.) - **useSystemColorScheme** builds itsMediaQueryListonce at module scope instead of constructing a live, document-registered query object insidegetSnapshot(which React calls per render and per store-change check, twice over in StrictMode) and again insubscribe. No public API change in@knitui/mediaquery;useBreakpointkeeps its SSR contract (the server snapshot and first hydrating render both resolve theMediaQueryProvider` seed). - minor Memoize
.styleable()output so a parent render stops re-rendering the whole kit Tamagui memoizes the componentstyled()returns unconditionally (createComponent.tsx:res = React.memo(res)). It does not memoize the component.styleable()returns — that is gated behind a flag: ``js // @tamagui/web/src/createComponent.tsx:1906 if (extendedConfig.memo || process.env.TAMAGUI_MEMOIZE_STYLEABLE) { out = React.memo(out); }`Every public component in this kit isstyled(...).styleable(...), and the.styleable()HOC **is** the exported component — 155 sites across@knitui/components(139) and@knitui/dates(16). The kit passed neithermemonor the env var, so the kit's own layer was the only unmemoized layer in the stack: any parent state change re-rendered every kit component in the subtree even when not one of its props had changed. Measured in jsdom on a 300-instance tree (100 rows ×Button+Badge+Text), one parentsetStatewith **identical** child props, median of 21 runs: | | median update | | ------ | ------------- | | before | 86.9 ms | | after | 3.8 ms | ≈23× on that shape. With props that genuinely change every render (an inlineonPressper row) the win narrows to the low tens of percent — memo then pays for a comparison it cannot skip on. It is not meaningfully negative in either case, because the inner frame is _already_ memoized, so prop-equality skipping is already how this stack behaves. **@knitui/corenow exports its ownstyled** (src/styled.ts), which is Tamagui's factory plusstaticConfig.memo = trueon the frame it returns.styleable()reads the flag offextendStyledConfig(), which spreads the frame's ownstaticConfigfirst and the per-calloptions.staticConfigsecond — so setting it on the frame reaches every.styleable()call from one place, including components added later, and a call site can still opt out explicitly with.styleable(render, { staticConfig: { memo: false } })because its spread wins.styled()does not forward amemokey intostaticConfig(verified), so this is a post-hoc assignment rather than an option passed through, andsrc/essentials.tsno longer re-exports the raw Tamaguistyled— there is onestyledon the@knitui/coresurface.memois read in exactly **one** place in all of@tamagui/web— the branch quoted above — so setting it has precisely that one effect and no other behavioural change. The env var in the same condition is not a shipping option: it is read at module scope in the consumer's bundle, and neither Metro nor webpack reliably defines it. Verified: the full suite is green (27/27 packages;@knitui/components120 suites / 1606 tests,@knitui/dates` 49 / 853), the Next production build succeeds, and the extracted CSS is byte-identical to before (69,935 B) — so the Tamagui compiler treats the wrapped factory exactly as it did the raw one. - minor Retune the line-height ladder so leading tracks font size consistently
lineHeightRatiosclimbed with font size (1.35 → 1.65), so the largest text got the loosest leading and the smallest got the tightest — the opposite of what typography needs.$xxlheadings rendered a 46px line box at 28px, reading as double-spaced, while several steps landed on odd pixel values (23px, 31px). The ladder is now a hump — 1.35 at the caption end, peaking at 1.5 for body, tapering to 1.3 for display — which matches the shape Mantine (bodylineHeightsplusheadings.sizes) and Tailwind both use. Derived line heights per font step: | token | font | before | after | | ----- | ---- | ------ | ----- | | xxs | 12 | 16 | 16 | | xs | 14 | 20 | 20 | | sm | 16 | 23 | 24 | | md | 18 | 27 | 26 | | lg | 20 | 31 | 28 | | xl | 24 | 38 | 32 | | xxl | 28 | 46 | 36 | Every value is now even, so a(height − lineHeight) / 2centering gap stays on whole pixels, and each one matches the leading Tailwind or Mantine gives that same font size. Also fixed:getLineHeight()multiplied a raw numeric size by themdratio regardless of the number, sofontSize={28}andfontSize="$xxl"(also 28) produced different line heights. A number now takes the ratio of the nearest step on the font scale, so both resolve to 36.TableOfContentshardcoded its ownvalue * 1.4for numeric sizes and now goes through the same ladder. This shifts rendered text metrics across the kit — anything measuring or pinning line boxes (notablyTextarearow heights, which derive fromrows × lineHeight) will lay out slightly differently. Consumers on^0.5.xopt in explicitly rather than picking it up as a patch. - Stop the shared per-render path from doing work no component asked for These paths run for every one of the ~103 components on every render, so the waste multiplied. None of it is behavioural — the rendered output is unchanged. `useGradient` read the theme for a feature that was off.
useTheme()was called before theif (!gradient) returnbail, soButton,ActionIcon,Badge,Avatar,CloseButton,ThemeIcon,PillandAlerteach paid a fulluseThemeWithState—useId+useRef+useReducer+ a dependency-lessuseEffectthat fires after every render + snapshot bookkeeping — unless the caller actually passedvariant="gradient". On web the theme was never needed at all: a$tokenresolves to its CSS custom property by pure string transform, so there is now a theme-freetheme-color-web.tsand the web path reads no context. On native the theme read moved into<GradientLayer>, which only mounts when a gradient exists. The bail path returns a frozen constant instead of two fresh objects. `ControlIconProvider` made every icon-bearing control a theme subscriber. It resolved its icon colour throughuseTheme()once per control _section_, so aButtonwith both a left and a right section instantiated two on top of its own frame. On native that read trips Tamagui'strack(), which registers the instance in the global theme-listener map — 100 icon sites meant 100 listener entries and 100 dependency-less effect fires per render pass. Web now resolves the token tovar(--…)with no hook; native keeps the theme read, behind a newuse-icon-colorsplit. `renderTextChild` cloned every child to answer a question it already knew.React.Children.toArrayflattens _and clones_ each element child, and the common branch then discarded the whole cloned array — for containers with element children (Center,Modal.Body,Card) that was pure waste on every render, and for a single string child it allocated an array to learn whattypeof childrenalready told it. Now: string/number, single-element and nullish children take fast paths beforetoArray, and the array scan is one loop instead ofsome+every. 28 call sites. `slotStyles` allocated for the case where there is nothing to do. Called at ~105 sites, several of them per item (Tree's memoizedTreeNode,TreeSelect, and 6× each inTagsInput/MultiSelect/ColorPicker), it built an object plus two closures on every call even when nostylesprop was passed. The empty case now returns one shared frozen accessor, andmergeonly builds a new object when both sides are present — which also means the props spread onto a part keep a stable identity, so downstreamReact.memoand Tamagui prop comparisons can bail out. (Verified safe: no call site mutates an accessor result.) The dev-only known-slotSetis cached in aWeakMapkeyed by the*_SLOT_KEYSconstant instead of being rebuilt per render. `Button`'s slot collection re-walked its children every render. An inline options literal, avisitclosure, a per-child linear scan of the slot registry and a rest-spread per marker child — and because the pooled array became the label's children, the label'schildrenidentity changed on every render even for<Button>Save</Button>. Marker matching is now aMapbuilt once indefineSlots, the options object is a module constant, and a non-array child with no marker skips collection entirely. `useSlotTextWrapper` was remounting the text it exists to keep mounted. The memo keyed onslotProps_identity_, but the documented usage is an inlinestyles={{ label: { … } }}— a fresh object every render. So the wrapper was a new element _type_ each render and React unmounted and remounted the wrapped text, which is precisely the failure the hook was written to prevent, affecting only the callers who used the feature. Slot props are now compared by shallow value. Objects that never varied are now module constants.webButton(),webButtonTextReset()andButton's native id props were rebuilt per render even thoughisWebis fixed at build time;UnstyledButtonalso built a fresh style _array_ every render, which defeated Tamagui's style caching.Group'sgrowstyle and theTooltip/HoverCardtrigger-clone handler bundles are memoized, so cloning a child no longer hands it a new style object and break itsReact.memo— which is what was re-rendering memoized icons inside a<Group grow>. `Paper` and `Typography` dropped a component layer each. Both were.styleablewrappers that added zero or one prop, so they are now plainstyled()exports.
@knitui/components
- minor Cut the shipped theme suite from 440 themes to 22, and stop the mediaquery hooks re-parsing / re-rendering per frame ##
@knitui/core— 418 generated themes removedconfig/themes.tscalledcreateThemes(...)without acomponentThemesargument, so it inherited Tamagui'sdefaultComponentThemes— a 19-entry map that is itself@deprecatedupstream ("component themes are no longer recommended"). Those entries cross-multiply with every scheme × palette, so the kit shipped 2 × 11 × 20 = 440 themes, all built eagerly at module scope on every app start and again by the Tamagui babel/static compiler. Measured against the kit's real inputs (interpreter-only,node --jitless): | | themes | theme keys | resolvedVariables | heap | build | | ------ | ------ | ---------- | --------------------- | -------- | ------- | | before | 440 | 37,708 | 37,708 (2,822 unique) | 2,513 KB | 12.1 ms | | after | 22 | 1,870 | 1,870 (1,010 unique) | 208 KB | 2.8 ms |componentThemes: falseis set both in the stockconfig/themes.tsand increateTheme(), so a consumer-built config has the same theme set as the shipped one (24 names there — the stock 22 plus thebrandalias in both schemes). ### BREAKING for anyone naming a component theme Themes named<scheme>[_<palette>]_<Component>no longer exist. If you reference one by name —<Theme name="light_Button">, athemesoverride keyeddark_gray_Card, or acreateTheme({ themeBuilder: { componentThemes: … } })extension — it will no longer resolve and the nearest parent theme is used instead. The removed names are the 20 Tamagui defaults (Button,Card,Checkbox,Input,ListItem,Progress,ProgressIndicator,RadioGroupItem,SelectItem,SelectTrigger,SliderThumb,SliderTrack,SliderTrackActive,Switch,SwitchThumb,TextArea,Tooltip,TooltipArrow,TooltipContent) × 22 scheme/palette combinations. To get them back, pass your own map: ``ts createTheme({ themeBuilder: { componentThemes: { Card: { template: "surface1" } } } });`###@knitui/components— offsets that were implicit are now explicit Nine of the kit'sstyled()names collided with that default map and were silently receiving a template offset. Every one of them has been PINNED so the rendered colour is unchanged — verified value-by-value acrosslight,dark,light_blueanddark_red(100 probes, 0 differences): | component | template | change | | ------------- | -------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------- | |ListItem| surface1 | none — the frame paints nothing, andsurface*leaves$color1…$color12and$coloralone | |Progress| surface1 | none — already explicit$colorN| |Button| surface3 |variant="default"border pinned$borderColor→$color7(the only variant reading$borderColor) | |Card| surface1 | frame +Card.Sectionborder pinned to$color2/$color5| |Checkbox| surface2 | unchecked box pinned to$color3/$color6| |SliderTrack| inverse | ramp steps written pre-mirrored ($color3→$color10; childSliderBar$color9→$color4) | |SliderThumb| inverse | pre-mirrored ($color1→$color12,$color9→$color4, hover$color10→$color3; childSliderLabelBubbletoo) | |SwitchThumb| inverse | childSwitchThumbIndicatorpre-mirrored ($color5→$color8, on$color9→$color4). The thumb itself uses$white, a token, so it was never inverted | |Tooltip| inverse | frame$color9→$color4,Tooltip.Text$color1→$color12| Two things worth flagging to whoever owns the visual design: 1. The fourinversecollisions were **reversing the entire$color1…$color12ramp** under those subtrees, not offsetting one step. SoTooltipwas authored$color9fill +$color1label (the kit's canonical filled pairing) and actually painted step 4 + step 12; the slider's track/bar/thumb were likewise inverted. The pins preserve the shipped pixels, but they codify an appearance that came from a deprecated Tamagui default rather than a design decision. Un-mirroring them (back to$color9/$color1etc.) is a deliberate follow-up. 2. **Descendants** of those nine frames no longer inherit the offset theme. A component placed inside aCardused to resolve$backgroundone ramp step up ($color2); it now gets the page value ($color1). Only the nine frames' own painted surfaces are pinned — arbitrary user content inside them shifts by one step (or un-inverts, inside the Slider/Tooltip parts).config/OVER_MEDIAalso moved to its own module (config/over-media.ts) so importing those five scrim literals no longer drags in the whole theme generation. No export surface change. ##@knitui/mediaquery— no per-render parsing, 3N listeners → 3 - **matchesQueryno longer re-parses on every call.** The nativeuseMediaQueryevaluated its query on the render path, and a string query re-ran the full parser each time: for"(min-width: 768px) and (orientation: landscape)"that is ~6 regex executions plus ~10 allocations, per render, per hook instance — so a 50-row list did ~300 regex ops per render pass to produce 50 identical booleans. Parses are now memoised in a bounded module-level cache (parseMediaQueryhands out copies, so a caller can't poison it). - **One shared environment store on native.** Each call site used to register THREE native subscriptions (Dimensions,Appearance,AccessibilityInfo.reduceMotionChanged) plus anisReduceMotionEnabled()promise — 20 call sites meant 60 live listeners. Worse, every handler didsetEnv(prev => ({ ...prev, … })), always a NEW object, so one rotation re-rendered every instance even though the boolean each derives almost never flips. There is now one store with three listeners total, read throughuseSyncExternalStorewhose snapshot is the resolved **boolean**, so React bails per component unless that component's answer actually changed. - **useBreakpointrenders on band crossings, not resize pixels.** It was backed byuseViewportSize, whose untreatedresizelistener allocates a fresh{ width, height }~60×/s during a window drag, forcing a re-render at every call site before the band was even derived — thoughresolveBreakpointyields only 8 values across 7 thresholds.mediaquerynow owns a viewport store that wakes subscribers only when the band changes, and the hook's snapshot is theBreakpointKeystring. (@knitui/hooks'useViewportSizeis untouched — it has other consumers that want the pixel width.) - **useSystemColorScheme** builds itsMediaQueryListonce at module scope instead of constructing a live, document-registered query object insidegetSnapshot(which React calls per render and per store-change check, twice over in StrictMode) and again insubscribe. No public API change in@knitui/mediaquery;useBreakpointkeeps its SSR contract (the server snapshot and first hydrating render both resolve theMediaQueryProvider` seed). - minor Retune the line-height ladder so leading tracks font size consistently
lineHeightRatiosclimbed with font size (1.35 → 1.65), so the largest text got the loosest leading and the smallest got the tightest — the opposite of what typography needs.$xxlheadings rendered a 46px line box at 28px, reading as double-spaced, while several steps landed on odd pixel values (23px, 31px). The ladder is now a hump — 1.35 at the caption end, peaking at 1.5 for body, tapering to 1.3 for display — which matches the shape Mantine (bodylineHeightsplusheadings.sizes) and Tailwind both use. Derived line heights per font step: | token | font | before | after | | ----- | ---- | ------ | ----- | | xxs | 12 | 16 | 16 | | xs | 14 | 20 | 20 | | sm | 16 | 23 | 24 | | md | 18 | 27 | 26 | | lg | 20 | 31 | 28 | | xl | 24 | 38 | 32 | | xxl | 28 | 46 | 36 | Every value is now even, so a(height − lineHeight) / 2centering gap stays on whole pixels, and each one matches the leading Tailwind or Mantine gives that same font size. Also fixed:getLineHeight()multiplied a raw numeric size by themdratio regardless of the number, sofontSize={28}andfontSize="$xxl"(also 28) produced different line heights. A number now takes the ratio of the nearest step on the font scale, so both resolve to 36.TableOfContentshardcoded its ownvalue * 1.4for numeric sizes and now goes through the same ladder. This shifts rendered text metrics across the kit — anything measuring or pinning line boxes (notablyTextarearow heights, which derive fromrows × lineHeight) will lay out slightly differently. Consumers on^0.5.xopt in explicitly rather than picking it up as a patch. - Stop hot components re-rendering their whole subtree on every keystroke, drag frame and scroll sample A pass over the components whose cost scaled with the wrong thing — the number of options, marks, pills, rows or tree nodes rather than the number that actually changed. All of these are the same shape of defect: a memo that could never hit, or a derivation re-run per node instead of once. The select family (`Select`, `MultiSelect`, `TagsInput`, `TreeSelect`, `Autocomplete`) — each Root listed
__triggerPropsin its contextuseMemodep array, but the sugar wrapper assembles that object fresh on every render from a rest spread (...inputProps), so its identity can never be preserved. The context value was therefore new every render and every consumer re-rendered — including the deliberately memoized option row, because context propagation walks _past_React.memo. A comment claimed the churn was intentional; it was self-inflicted.__triggerPropsnow rides its own context, read by the one node that consumes it (Select.Trigger), while the option rows keep subscribing to the behaviour context. Removing it from the deps only helps if the memo can then be trusted, so every Root handler isuseCallbackRef-stable (fixed identity, latest closure) and each dep array is now complete with theeslint-disablegone — previously a hitting memo would have served a staleonSearchChangeor a stale__triggerPropscallback.handleSubmitmatters twice over: it lands on<Combobox onOptionSubmit>, a dep of Combobox's own context memo, so churn there reached everyCombobox.Optionregardless. `MultiSelect` / `TagsInput` pills — the pills were mapped un-memoized, each one subscribing to the context that also carriessearch, so typing one character re-rendered every chip (aPill+CloseButton+ icon SVG each), and each got a freshonRemoveclosure becauseremoveValue/removeTagdepended on the current value array. Keystroke latency scaled with the number of selected values. The chips now subscribe to a search-free context slice and areReact.memo'd, with a stable remove callback, so a keystroke re-renders the field and skips the pills. `Tree` —isNodeCheckedandisNodeIndeterminateeach ran a full recursive traversal that allocated a status object per node and didcheckedState.includes(…)per leaf. The documented pattern calls both for every node, so a render was two full traversals _per node_: for 200 nodes with 50 checked, roughly 80k object allocations and 2M string compares.useTreenow builds oneMap<value, status>per(data, checkedState)in a single pass (with aSetfor membership) and both helpers are O(1) lookups. The exported pure helpers keep their signatures and semantics. `Table` —Table.Tbodycloned every row to inject an index andTable.Trcloned every cell to mark the first one, so a 500×8 composed table allocated ~4,500 extra element objects and re-walked its children twice per render, with no memo on the context-consuming rows and cells. Both walks are replaced by small internal contexts, and each is skipped entirely when the feature that needs it is off: zero child walking for a default table, 500 provider elements (not 4,000 clones) with column dividers on. Rows are no longer cloned, so a memoized row can finally bail out. One incidental fix: first-cell marking usedChildren.map's index, which countsnull/falseslots, so a conditionally-rendered leading cell drew a divider on the wrong cell. `VirtualList` —slots.get("item") ?? {}allocated a fresh object every render and handed it to the memoizedRow, so every mounted row re-rendered on every windowing render and every measurement-driven layout bump; scroll jank scaled with the window size instead of with rows entering and leaving. Now a module-level constant. Fixing the memo exposed thatextraData— documented as the re-render trigger forrenderItem— was never passed to the row and only "worked" because the memo was broken; it is now a real row prop. Separately,handleScrollchanged identity every render (throughheaderH/footerHstate and inline range/end-reached callbacks) and lands onScrollArea'sonScrollPositionChange, which is a dep of the nativeuseAnimatedScrollHandler— so the Reanimated worklet scroll handler was rebuilt on every windowing render, i.e. mid-fling. The scroll callbacks are nowuseCallbackRef-stable with the chrome heights mirrored into refs (written synchronously alongside the state, so windowing can't read a stale header height between a chrome commit and the effect flush). `ColorPicker` — the saturation area and both sliders mirrored their position into state via an effect keyed on values that change every drag frame, always with a new object, so each pointermove cost two renders of the whole picker subtree.positionis now derived during render from the parsed colour that was already the source of truth. The[]-depshandleChangeworkaround is gone with it: the stale-setter hazard it papered over is fixed inuseUncontrolled, and an honest dep list keeps its identity stable — which matters, because it is a dep of theColorPickerContextmemo. `Slider` / `RangeSlider` / `AngleSlider` — marks were re-mapped inline in the render body, 2–3 styled components each with no memo, so a 20-mark slider rebuilt ~45 Tamagui frames per pointermove. Marks moved into a memoized layer:Slidermemoizes per mark with the filled span passed as two numbers (so no unstable function prop breaks equality) and only the 0–1 marks whose filled state actually flips re-render;AngleSliderhas no value-dependent mark styling, so its whole mark subtree is skipped. A parent re-render that doesn't touch the value (hover, focus, label bubble) now skips the marks entirely. The per-moveonChangecontract is unchanged. Smaller ones —Combobox.OptionsDropdownbuilt aSetfor the selected values instead ofvalue.includes(…)per option (500 options × 50 selected: 25k string compares per recompute → 500 hash lookups); the single-select path still uses a scalar compare and allocates nothing.Accordionmemoized its per-item context value, which was an inline object literal and so re-rendered everyAccordion.Control/Panelon any item render.SegmentedControlcompares the measured layout before setting state, so anonLayoutre-fire from a parent reflow or a font change no longer re-renders the root and every segment with an identical value. No public API changes.Table's internal__index/__firstprops are gone (no test or consumer asserted on them) andTreegained an exportedgetCheckedNodesMaphelper. - Stop the icon barrel from being pulled into every component
@knitui/componentsdragged all ~6.1k icon modules into any app that imported a single component. The kit SRC-SHIPS, so Metro compiles what it resolves and does NOT tree-shake: one line ininternal/ControlIconProvider.tsx—import { IconProvider } from "@knitui/icons"— resolved the root barrel (packages/icons/src/index.ts, 378 KB / 6,153 export lines), and because that module is reachable fromButton,Chip,Accordionand friends, every glyph became part of the graph. Walking the import graph from each package entry, honouringexportsconditions and.web/.nativeorder: | entry | before | after | | -------------------- | ------------------------ | ---------------------- | |@knitui/components| 6,490 modules / 4,896 KB | 344 modules / 1,635 KB | |@knitui/sheet| 6,506 modules / 4,960 KB | 360 modules / 1,700 KB | |@knitui/carousel| 6,541 modules / 5,068 KB | 398 modules / 1,808 KB | |@knitui/media| 6,530 modules / 5,056 KB | 384 modules / 1,796 KB | That is −94.7% modules and −3,261 KB of source off the components graph, and it lands on Metro cold start, on every clear-cache rebuild, and on the JS bundle itself for consumers whose bundler cannot shake a src-shipped barrel. `@knitui/icons` gains two subpath exports (the minor): -@knitui/icons/context—IconProvider,useIconContextand their types -@knitui/icons/types—IconProps,IconNode,IconComponent,IconTypePer-glyph deep imports (@knitui/icons/IconCheck) already resolved through the existing./Icon*wildcard; the provider was the one thing that had no subpath and therefore forced the barrel. Nothing was removed — the root barrel still exports everything it did. Internal import rewrites (patch, no API change) across the shipped source of@knitui/components(ControlIconProvider,Accordion,Checkbox/CheckIcon,Chip,CloseButton,Combobox,Stepper),@knitui/carousel(Carousel) and@knitui/media(the audio/video chrome +LiveAudioMeter), each now naming the glyph module it actually uses. An ESLintno-restricted-importsguardrail ineslint.config.base.mjsblocks the bare@knitui/icons/@knitui/emojispecifier in shippedsrc/**so this cannot regress; stories, tests and the private@knitui/demogalleries (which render the whole registry on purpose) are exempt. Bundler hygiene, same theme: -sideEffectswas missing from@knitui/media,@knitui/sheetand@knitui/plugins, so webpack/Next had to keep every module of those packages even when nothing referenced it.mediaandsheetare declaredsideEffects: false(audited: their only module-scope statements are pure const initialisers and adisplayNameassignment — the oneregisterProcessor()call inmedialives inside an AudioWorklet source string, not in the module).pluginslists just itsbabel-pluginentry, which really does mutateprocess.env.TAMAGUI_IGNORE_BUNDLE_ERRORSon load. -@knitui/plugins/next-pluginnow setsexperimental.optimizePackageImportsfor@knitui/icons,@knitui/emoji,@knitui/components,@knitui/datesand@knitui/map, so every Next consumer inherits it instead of having to know. Next has to build a barrel's full module graph before it can shake it, andtranspilePackagesmeans it compiles the kit's source to do so — with this, a bare-barrel glyph import in app code is rewritten to that glyph's own module and the other 6,145 files are never compiled. Anyexperimentalthe app already set is merged, not replaced, and its ownoptimizePackageImportsentries are kept. - Stop the shared per-render path from doing work no component asked for These paths run for every one of the ~103 components on every render, so the waste multiplied. None of it is behavioural — the rendered output is unchanged. `useGradient` read the theme for a feature that was off.
useTheme()was called before theif (!gradient) returnbail, soButton,ActionIcon,Badge,Avatar,CloseButton,ThemeIcon,PillandAlerteach paid a fulluseThemeWithState—useId+useRef+useReducer+ a dependency-lessuseEffectthat fires after every render + snapshot bookkeeping — unless the caller actually passedvariant="gradient". On web the theme was never needed at all: a$tokenresolves to its CSS custom property by pure string transform, so there is now a theme-freetheme-color-web.tsand the web path reads no context. On native the theme read moved into<GradientLayer>, which only mounts when a gradient exists. The bail path returns a frozen constant instead of two fresh objects. `ControlIconProvider` made every icon-bearing control a theme subscriber. It resolved its icon colour throughuseTheme()once per control _section_, so aButtonwith both a left and a right section instantiated two on top of its own frame. On native that read trips Tamagui'strack(), which registers the instance in the global theme-listener map — 100 icon sites meant 100 listener entries and 100 dependency-less effect fires per render pass. Web now resolves the token tovar(--…)with no hook; native keeps the theme read, behind a newuse-icon-colorsplit. `renderTextChild` cloned every child to answer a question it already knew.React.Children.toArrayflattens _and clones_ each element child, and the common branch then discarded the whole cloned array — for containers with element children (Center,Modal.Body,Card) that was pure waste on every render, and for a single string child it allocated an array to learn whattypeof childrenalready told it. Now: string/number, single-element and nullish children take fast paths beforetoArray, and the array scan is one loop instead ofsome+every. 28 call sites. `slotStyles` allocated for the case where there is nothing to do. Called at ~105 sites, several of them per item (Tree's memoizedTreeNode,TreeSelect, and 6× each inTagsInput/MultiSelect/ColorPicker), it built an object plus two closures on every call even when nostylesprop was passed. The empty case now returns one shared frozen accessor, andmergeonly builds a new object when both sides are present — which also means the props spread onto a part keep a stable identity, so downstreamReact.memoand Tamagui prop comparisons can bail out. (Verified safe: no call site mutates an accessor result.) The dev-only known-slotSetis cached in aWeakMapkeyed by the*_SLOT_KEYSconstant instead of being rebuilt per render. `Button`'s slot collection re-walked its children every render. An inline options literal, avisitclosure, a per-child linear scan of the slot registry and a rest-spread per marker child — and because the pooled array became the label's children, the label'schildrenidentity changed on every render even for<Button>Save</Button>. Marker matching is now aMapbuilt once indefineSlots, the options object is a module constant, and a non-array child with no marker skips collection entirely. `useSlotTextWrapper` was remounting the text it exists to keep mounted. The memo keyed onslotProps_identity_, but the documented usage is an inlinestyles={{ label: { … } }}— a fresh object every render. So the wrapper was a new element _type_ each render and React unmounted and remounted the wrapped text, which is precisely the failure the hook was written to prevent, affecting only the callers who used the feature. Slot props are now compared by shallow value. Objects that never varied are now module constants.webButton(),webButtonTextReset()andButton's native id props were rebuilt per render even thoughisWebis fixed at build time;UnstyledButtonalso built a fresh style _array_ every render, which defeated Tamagui's style caching.Group'sgrowstyle and theTooltip/HoverCardtrigger-clone handler bundles are memoized, so cloning a child no longer hands it a new style object and break itsReact.memo— which is what was re-rendering memoized icons inside a<Group grow>. `Paper` and `Typography` dropped a component layer each. Both were.styleablewrappers that added zero or one prop, so they are now plainstyled()exports. - Stop overlays, scrolling and looping animations from doing per-frame work A pass over every hot path that runs while something is moving — a scroll, a drag, an open/close animation — removing work that ran once per frame and did not need to. Floating overlays (web) —
autoUpdate's scroll/resize/element-resize triggers are now coalesced into onerequestAnimationFrame. The capture-phasescrolllistener fires for every scrollable ancestor in the app, and each trigger ran a fullgetBoundingClientRect→computePosition→setStatecycle: layout reads interleaved with the previous pass's style writes, i.e. a forced synchronous reflow per event, several per frame. The first position is still computed synchronously, so nothing flashes at an un-positioned origin. The repositioning bail-out also stoppedJSON.stringify-ing both middleware-data bags (twice per pass, per open overlay) in favour of a shallow compare. `ScrollArea` — the scrollbar auto-hide no longer crosses the JS/UI boundary every frame on native:type="hover"/"scroll"(the default) needs only a boolean plus a trailing timer, so itsrunOnJShop is rate-limited on the UI thread, while a real consumer (onScrollPositionChange,onScrollEnd, the reach callbacks,stickToBottom,shadows) still gets every sample. The thumb's per-frame animated style carries a transform ONLY — the hover-grow inset moved into its own style — so a scroll no longer pushes layout props (left/right/height) through Yoga on every frame. Edge fades (shadows) keep four booleans in state instead of mirroring the raw offset, so a fling re-renders at most once per edge crossing rather than once per frame. The webResizeObserveris created once and its observations reconciled per commit, instead of being torn down and rebuilt over every child whenever the child count changed — which, for a windowed list inside aScrollArea, happened mid-fling on every window advance. Looping animations —Skeleton,Loader,ProgressandIndicatordeclare their loops unconditionally for stable hook order but render only some of them; every undisplayed loop was still scheduled, as a live compositor animation on web and awithRepeatre-evaluating a worklet every frame on native. ALoaderpaid for four, a staticIndicatorand a non-animateSkeletonfor one each. Loops are now scheduled only when they actually animate. `useReducedMotion` — one shared subscription per app instead of onematchMedia/AccessibilityInfolistener per component (nearly every animated part in the kit calls it), and the correct value on first render, removing a mount-time re-render per instance. `useElementSize` — bails when a re-measure reports the size it already had, so aResizeObserver/onLayoutre-fire from a visibility flip or a sibling's reflow no longer re-rendersCollapse/Spoiler/Marqueecontent. `Sheet` — the close watcher's gate is evaluated on the UI thread, so a dragging or springing panel stops waking the JS thread on every frame with an offset the subscriber immediately discards. `Sheet`'s pan gesture was rebuilt on every render.animationConfigis a flat record that every call site writes inline, and it is a dependency ofuseSheetDrag'suseMemo— so a fresh identity rebuilt theGesture.Pan()object each render, and RNGH responds by tearing down and re-attaching the native gesture handler. Mid-drag, that is a dropped gesture. It is now collapsed to a stable reference while its values are unchanged, via a new internaluseStableRecord(with tests) — the sibling of carousel'smodeConfigstabilisation and map'suseStableStyleValue.withAnimation/gestureConfigare deliberately left alone: they are functions consumed inside worklets, where a JS-thread ref wrapper would break worklet semantics. No public API changes;useLoopingAnimation(internal) gained anenabledoption. - Updated dependencies[5f44d20]
- Updated dependencies[5f44d20]
- Updated dependencies[5f44d20]
- Updated dependencies[5f44d20]
- Updated dependencies[5f44d20]
- Updated dependencies[5f44d20]
- Updated dependencies[5f44d20]
- Updated dependencies[5c6d758] - @knitui/icons@0.6.0 - @knitui/core@0.6.0 - @knitui/hooks@0.6.0
@knitui/hooks
- Stop overlays, scrolling and looping animations from doing per-frame work A pass over every hot path that runs while something is moving — a scroll, a drag, an open/close animation — removing work that ran once per frame and did not need to. Floating overlays (web) —
autoUpdate's scroll/resize/element-resize triggers are now coalesced into onerequestAnimationFrame. The capture-phasescrolllistener fires for every scrollable ancestor in the app, and each trigger ran a fullgetBoundingClientRect→computePosition→setStatecycle: layout reads interleaved with the previous pass's style writes, i.e. a forced synchronous reflow per event, several per frame. The first position is still computed synchronously, so nothing flashes at an un-positioned origin. The repositioning bail-out also stoppedJSON.stringify-ing both middleware-data bags (twice per pass, per open overlay) in favour of a shallow compare. `ScrollArea` — the scrollbar auto-hide no longer crosses the JS/UI boundary every frame on native:type="hover"/"scroll"(the default) needs only a boolean plus a trailing timer, so itsrunOnJShop is rate-limited on the UI thread, while a real consumer (onScrollPositionChange,onScrollEnd, the reach callbacks,stickToBottom,shadows) still gets every sample. The thumb's per-frame animated style carries a transform ONLY — the hover-grow inset moved into its own style — so a scroll no longer pushes layout props (left/right/height) through Yoga on every frame. Edge fades (shadows) keep four booleans in state instead of mirroring the raw offset, so a fling re-renders at most once per edge crossing rather than once per frame. The webResizeObserveris created once and its observations reconciled per commit, instead of being torn down and rebuilt over every child whenever the child count changed — which, for a windowed list inside aScrollArea, happened mid-fling on every window advance. Looping animations —Skeleton,Loader,ProgressandIndicatordeclare their loops unconditionally for stable hook order but render only some of them; every undisplayed loop was still scheduled, as a live compositor animation on web and awithRepeatre-evaluating a worklet every frame on native. ALoaderpaid for four, a staticIndicatorand a non-animateSkeletonfor one each. Loops are now scheduled only when they actually animate. `useReducedMotion` — one shared subscription per app instead of onematchMedia/AccessibilityInfolistener per component (nearly every animated part in the kit calls it), and the correct value on first render, removing a mount-time re-render per instance. `useElementSize` — bails when a re-measure reports the size it already had, so aResizeObserver/onLayoutre-fire from a visibility flip or a sibling's reflow no longer re-rendersCollapse/Spoiler/Marqueecontent. `Sheet` — the close watcher's gate is evaluated on the UI thread, so a dragging or springing panel stops waking the JS thread on every frame with an offset the subscriber immediately discards. `Sheet`'s pan gesture was rebuilt on every render.animationConfigis a flat record that every call site writes inline, and it is a dependency ofuseSheetDrag'suseMemo— so a fresh identity rebuilt theGesture.Pan()object each render, and RNGH responds by tearing down and re-attaching the native gesture handler. Mid-drag, that is a dropped gesture. It is now collapsed to a stable reference while its values are unchanged, via a new internaluseStableRecord(with tests) — the sibling of carousel'smodeConfigstabilisation and map'suseStableStyleValue.withAnimation/gestureConfigare deliberately left alone: they are functions consumed inside worklets, where a JS-thread ref wrapper would break worklet semantics. No public API changes;useLoopingAnimation(internal) gained anenabledoption. - Give
useUncontrolleda referentially stable setterhandleUncontrolledChangewas a plain function declaration, so the setter had a new identity on every render — and the controlled branch handed back the caller's rawonChange, which callers almost always pass as an inline arrow. Either way, every consumer got a fresh setter every render. Around 48 files acrosscomponents,datesandsheetcall this hook and pass that setter straight into a child, a context value, or auseMemo/useEffectdependency list, so the churn cascaded. The clearest case wasCombobox: a newsetOpenmadeuse-combobox'suseMemostore a new object, which made theComboboxContextvalue a new object — and because context propagation walks _past_React.memo, the deliberately memoized option row re-rendered anyway. Typing one character re-resolved every option frame in an open dropdown, with the cost scaling in the option count.NumberInput's handler-assignment effect re-ran on every render for the same reason. Both branches now return one stable setter, with the latestonChangeread through a ref (useCallbackRef) rather than closed over. That second half fixes a class of stale-closure bug as well: a consumer that memoized a handler with[]deps around the setter previously kept calling theonChangefrom its first render —ColorPicker'shandleChangedid exactly that — and now always invokes the current one. Behaviour is otherwise unchanged: the controlled branch still never tracks its own state,defaultValuestill wins overfinalValue, and a missingonChangeis still a no-op. Added a test suite covering the value semantics, the setter's identity across re-renders and state changes in both branches, and the always-latest-onChangeguarantee. - Updated dependencies[5f44d20]
- Updated dependencies[5f44d20]
- Updated dependencies[5f44d20]
- Updated dependencies[5c6d758] - @knitui/core@0.6.0
@knitui/icons
- minor Stop the icon barrel from being pulled into every component
@knitui/componentsdragged all ~6.1k icon modules into any app that imported a single component. The kit SRC-SHIPS, so Metro compiles what it resolves and does NOT tree-shake: one line ininternal/ControlIconProvider.tsx—import { IconProvider } from "@knitui/icons"— resolved the root barrel (packages/icons/src/index.ts, 378 KB / 6,153 export lines), and because that module is reachable fromButton,Chip,Accordionand friends, every glyph became part of the graph. Walking the import graph from each package entry, honouringexportsconditions and.web/.nativeorder: | entry | before | after | | -------------------- | ------------------------ | ---------------------- | |@knitui/components| 6,490 modules / 4,896 KB | 344 modules / 1,635 KB | |@knitui/sheet| 6,506 modules / 4,960 KB | 360 modules / 1,700 KB | |@knitui/carousel| 6,541 modules / 5,068 KB | 398 modules / 1,808 KB | |@knitui/media| 6,530 modules / 5,056 KB | 384 modules / 1,796 KB | That is −94.7% modules and −3,261 KB of source off the components graph, and it lands on Metro cold start, on every clear-cache rebuild, and on the JS bundle itself for consumers whose bundler cannot shake a src-shipped barrel. `@knitui/icons` gains two subpath exports (the minor): -@knitui/icons/context—IconProvider,useIconContextand their types -@knitui/icons/types—IconProps,IconNode,IconComponent,IconTypePer-glyph deep imports (@knitui/icons/IconCheck) already resolved through the existing./Icon*wildcard; the provider was the one thing that had no subpath and therefore forced the barrel. Nothing was removed — the root barrel still exports everything it did. Internal import rewrites (patch, no API change) across the shipped source of@knitui/components(ControlIconProvider,Accordion,Checkbox/CheckIcon,Chip,CloseButton,Combobox,Stepper),@knitui/carousel(Carousel) and@knitui/media(the audio/video chrome +LiveAudioMeter), each now naming the glyph module it actually uses. An ESLintno-restricted-importsguardrail ineslint.config.base.mjsblocks the bare@knitui/icons/@knitui/emojispecifier in shippedsrc/**so this cannot regress; stories, tests and the private@knitui/demogalleries (which render the whole registry on purpose) are exempt. Bundler hygiene, same theme: -sideEffectswas missing from@knitui/media,@knitui/sheetand@knitui/plugins, so webpack/Next had to keep every module of those packages even when nothing referenced it.mediaandsheetare declaredsideEffects: false(audited: their only module-scope statements are pure const initialisers and adisplayNameassignment — the oneregisterProcessor()call inmedialives inside an AudioWorklet source string, not in the module).pluginslists just itsbabel-pluginentry, which really does mutateprocess.env.TAMAGUI_IGNORE_BUNDLE_ERRORSon load. -@knitui/plugins/next-pluginnow setsexperimental.optimizePackageImportsfor@knitui/icons,@knitui/emoji,@knitui/components,@knitui/datesand@knitui/map, so every Next consumer inherits it instead of having to know. Next has to build a barrel's full module graph before it can shake it, andtranspilePackagesmeans it compiles the kit's source to do so — with this, a bare-barrel glyph import in app code is rewritten to that glyph's own module and the other 6,145 files are never compiled. Anyexperimentalthe app already set is merged, not replaced, and its ownoptimizePackageImportsentries are kept. - Stop publishing the
lib/build output that nothing can resolve Both packages listed"lib"infilesand ranbob build, but every resolver key —main,module,types,react-native,sourceand everyexportscondition — points at./src/.... Nothing in either package, the workspace, or a consumer's resolution can reachlib/: these two src-ship, like the rest of the kit. The build output was shipped to npm as dead weight. Measured withnpm pack --dry-run: | package | before | after | | --------------- | ---------------------- | --------------------- | |@knitui/icons| 23.6 MB / 43,096 files | 3.6 MB / 6,159 files | |@knitui/emoji| — | 26.9 MB / 7,614 files |lib/was 36,937 of the 43,096 icon entries — 85% of that tarball — and 180 MB on disk foremoji. Install size only; no bundle, API or resolution change, which is exactly why it was invisible.bob buildstill runs, so the artefact is still produced locally and in CI. If that turns out to have no consumer either, the build target itself can go — but that is a separate call from what gets published.
@knitui/emoji
- Stop publishing the
lib/build output that nothing can resolve Both packages listed"lib"infilesand ranbob build, but every resolver key —main,module,types,react-native,sourceand everyexportscondition — points at./src/.... Nothing in either package, the workspace, or a consumer's resolution can reachlib/: these two src-ship, like the rest of the kit. The build output was shipped to npm as dead weight. Measured withnpm pack --dry-run: | package | before | after | | --------------- | ---------------------- | --------------------- | |@knitui/icons| 23.6 MB / 43,096 files | 3.6 MB / 6,159 files | |@knitui/emoji| — | 26.9 MB / 7,614 files |lib/was 36,937 of the 43,096 icon entries — 85% of that tarball — and 180 MB on disk foremoji. Install size only; no bundle, API or resolution change, which is exactly why it was invisible.bob buildstill runs, so the artefact is still produced locally and in CI. If that turns out to have no consumer either, the build target itself can go — but that is a separate call from what gets published.
@knitui/dates
- Stop the calendar grids re-deriving every cell on every render The package had no
useMemo,useCallbackorReact.memoanywhere outsideuse-dates-context, so every render re-derived the entire month grid from scratch — and a web hover move is a render, because it updateshoveredDateon the picker root. Counted with a dayjs-prototype shim, one default<DatePicker type="range">(5-week month, 35 cells) cost 2,747 dayjs instances and 194 `format()` calls to mount, and 2,442 / 193 to cross a single cell with the pointer. Each instance is anew Dateplus an object;formatwithMMMMhits the locale table and runs a regex replace. Dragging across a row fires seven of those in ~150 ms. Per-render cost after this change, same measurements: | scenario | dayjs before | after |formatbefore | after | | ---------------------------------------- | -----------: | ------: | --------------: | ------: | |Monthre-render (35 cells) | 724 | 81 | 187 | 8 | |DatePicker type="range"mount | 2,747 | 233 | 194 | 49 | |DatePicker type="range"one hover move | 2,442 | 68 | 193 | 13 | | …withnumberOfColumns={2}| 6,442 | 646 | 523 | 134 | Redundant per-cell prop getters.getDateInTabOrderinvokedgetDayProps(date)twice for all 42 dates (once fordisabled, once forselected) andMonth's cell loop invoked it a third time.DatePickerwires that getter touseDatesState'sgetControlProps, which for a range picker runsrangeView.some(isSame)+isDateInRange+isFirstInRange+isLastInRange— ~20 dayjs instances a call. So ~1,400 instances went on deciding which single cell getstabIndex={0}. The getter is now resolved once per date into a per-renderMapshared by both consumers. Same fix inMonthsList/YearsListviagetMonthInTabOrder/getYearInTabOrder. String comparisons instead of dayjs round-trips.isSameMonth,isBeforeMaxDate,isAfterMinDate,isInRangeanduseDatesState'sisSame(date, level)all took values that are ALREADY zero-paddedYYYY-MM-DD— the package's canonical shape — and parsed them back into dayjs to compare. Fixed-width big-endian date strings sort chronologically, so a prefix compare is exact and allocation-free:isInRangewent from ~11 instances plus a[...range].sort()per call (up to 3 calls per cell) to zero. Every one keeps its dayjs path as a fallback forDateobjects and non-canonical strings, and each was verified against the original implementation over a dense input space (leap-year and month/year boundaries, both DST transitions; ~91k combinations forisInRange). Memoized grid derivation.getMonthDays(~70 instances + 35formatcalls) is memoized behind a small module-level LRU, so navigating back to a visited month is free. The selection-INDEPENDENT per-cell facts — outside/hidden/weekend/disabled and each cell'saria-label— move into oneuseMemo; onlygetDayPropsand the rovingtabIndex, which read live state, stay in the loop. Same treatment for the 12-month and 10-year levels, whose labels are fixed for the whole year/decade but were re-formatted per cell per render. Memoized cells. Cell rendering moved into an internal memoized component (the patternCombobox'sOptionRowandTagsInput's chips already use) with a comparator that looks one level into plain-object props — necessary becausegetDayProps(date)and thestylesslot accessors return fresh objects holding unchanged booleans. The grid's__-prefixed callbacks are stabilised withuseCallbackRefso the comparator can bail. A hover move now re-renders 1 cell instead of 35, which also stops 42 refs detaching and reattaching, re-running__getDayRefand rebuilding the level group'sdaysRefsmatrix, on every render. `Day` no longer computes a label that is thrown away.Monthalways passes its ownaria-labelthrough...rest, spread afterDay's default — so theday.locale(…) fallback is now built only when there is no explicit label (which also means nativeaccessibilityLabelannounces the custom label instead of the generic date). The today check skips its work unlesshighlightTodayis set, and reads three calendar fields off the existing instance rather than allocating aDateplus three dayjs clones per cell. **TimePickerdropdown.** A24h-with-seconds dropdown renders 24 + 60 + 60 controls, and every keystroke in the segment inputs updatescontroller.values, rebuilding all 144 plus their range arrays. The ranges are memoized,TimeControlisReact.memo'd, andonSelectis stabilised so the compare can hold: an unrelated re-render now re-renders **0** controls (was all 144) and changing a column's value re-renders **2** — the one losingactiveand the one gaining it. No public API changes —Day's andMonth's prop contracts are untouched, and the memoized cell is internal.getMonthDays,isSameMonth,isInRangeand friends keep their exact signatures and return values. **MonthsListandYearsListgot the memoized cell too.**Monthhad a memoized day cell; the other two grids did not, so a RANGE month/year picker — which updateshoveredDateon every web hover move — re-rendered all 12/10PickerControlleaves and detached/reattached every ref (re-running__getControlRefand rebuilding the refs matrix) for a change that moved two cells' background colour. Both now use the same pattern, with the four__-prefixed grid callbacks stabilised viauseCallbackRefso the compare can actually hold. The one-level-deep memo comparator is now shared by all three grids ininternal/are-cell-props-equal(with tests) rather than living privately inMonth. It stays deliberately shallow: anything it cannot prove equal — a nested object, a fresh function — reads as changed and simply re-renders the cell. **WeekdaysRowrebuilt its 7 labels on every render.**getWeekdayNamescosts ~22 dayjs instances plus 7 locale-table formats, and it ran unmemoized insideMonth— so it was paid on every hover frame, timesnumberOfColumns`. Now memoized on the locale, format and first-weekday. - Updated dependencies[5f44d20]
- Updated dependencies[5f44d20]
- Updated dependencies[5f44d20]
- Updated dependencies[5f44d20]
- Updated dependencies[5f44d20]
- Updated dependencies[5f44d20]
- Updated dependencies[5f44d20]
- Updated dependencies[5c6d758] - @knitui/components@0.6.0 - @knitui/core@0.6.0 - @knitui/hooks@0.6.0
@knitui/map
- minor Require maplibre-gl 6.13 or later and serve only its worker. Since 6.13,
maplibre-gl-worker.mjsis self-contained andmaplibre-gl-shared.mjsships empty, so web apps only need to copy the worker into their static directory. The webMapnow adds?v=<maplibre version>to the URL passed tosetWorkerUrl, so a browser never runs a worker cached from an older maplibre-gl. The dev setup now uses maplibre-gl 6.14, which brings fixes for GeoJSON clusters andsetData, plus faster symbol rendering. - Knit UI now targets Expo SDK 58: React Native 0.88, React 19.3, Reanimated 4.7, Worklets 0.13, React Native Gesture Handler 3.3 and Skia 2.14. Apps must be on SDK 58. Apps still on SDK 57 should pin
@knitui/*to~1.0.0until they upgrade Expo. See the "Upgrading to Knit UI 1.1" guide. Peer and dependency changes -@knitui/iconsand@knitui/emojipeer onreact@19.3.0andreact-native-svg@15.16.0. -@knitui/graphicspeers on@shopify/react-native-skia@2.14.0. -@knitui/componentsdepends onexpo-image ~58.0.15. -@knitui/mediadepends onexpo-audio ~58.0.9andexpo-video ~58.0.11. The Android playback-sampling and iOS duration patches were ported to expo-audio 58.0.9. React Native 0.88 fix in `@knitui/media`Audio,Video,AudioPlaylistandAudioRecordercrashed on native with "undefined is not a function". They detected their web DOM element by checking for anaddEventListenerkey, and React Native 0.88 elements now carry that key (set toundefined). They now check the platform instead. Skia 2.14 fix in `@knitui/graphics`AudioMeshcrashed native apps with "Incorrect uniform size for: u_points. Expected 12 got 4". React Native Skia 2.14's native recorder reads only the first 4 values of a typed-array uniform. The mesh now passes its uniforms as plain arrays, still reused across frames. Web fixes -@knitui/mediano longer crashes web apps without theexpoentry (such as Next) with "Cannot read properties of undefined (reading 'SharedObject')". expo-audio 58's web player, recorder and playlist needglobalThis.expowhen they load, as expo-video's already did. The kit now installs it before both. On SDK 58,expo-modules-coreresolves to a build entry that itssideEffectslist leaves out, so production bundlers dropped the old bare import. -@knitui/plugins/next-pluginalso maps@react-native/assets-registry/registryto react-native-web's asset registry. Its 0.88 source mixes ESM and CommonJS, which brokereact-native-svgon web with "ES Modules may not assign module.exports". Known iOS issue on SDK 58: React Native 0.88 builds React from a precompiled framework, and bothreact-native-teleport@1.2.2(used by Portal) and@maplibre/maplibre-react-native@11.5.0fail to compile because of it. They import"RCTFabricComponentsPlugins.h"instead of<React/RCTFabricComponentsPlugins.h>. Until upstream fixes land, apply the same one-line include change with a pnpm or patch-package patch, or setios.buildReactNativeFromSourcetotrue. The precompiled framework also leaves out React Native'sSampleTurboModule, whichreact-native@0.88.0still lists as a module to set up on the main queue at startup. Debug builds then show an "Unable to find module for SampleTurboModule" red box on every launch (release builds only log it). Remove theSampleTurboModuleentry fromcodegenConfig.libraries[0].ios.modulesinreact-native/package.jsonwith a patch and re-runpod install, or build React Native from source. Gesture Handler 3 Every kit gesture now uses the Gesture Handler 3 hook API (usePanGesture,useNativeGesture) instead of the deprecatedGesture.*builder. This covers Modal and Drawer drag-to-dismiss, the ScrollArea 2D pan, Sheet drag, Carousel drag and SwipeCard. Reanimated 4.7 ignores hook dependency arrays on native and logs a warning when one is passed. The kit now passes them on the web only, so apps no longer see "Dependencies should only be used on the web" from kit components. Breaking change in@knitui/carousel:gestureConfigis now a config object (the newCarouselGestureConfigtype) instead of a builder callback. Migrate like this: ``tsx // before <Carousel gestureConfig={(g) => g.activeOffsetX([-10, 10]).simultaneousWithExternalGesture(other)} /> // after <Carousel gestureConfig={{ activeOffsetX: [-10, 10], simultaneousWith: other }} />`**React Native 0.88 types** The kit's native ref types now use RN's instance types (ScrollViewInstance,ViewInstance).EffectView'srefandKeyboardAwareScrollView's forwarded ref are typed with these instance types. TheInputverticalAlignprop still works: React Native 0.88 dropped it, so the kit now maps it ontotextAlignVertical`.
@knitui/graphics
- Take the allocations out of the audio sampler and the Skia visualizer's paint The media store's design was already right — per-field channels, auto-tracked selectors, one FFT per painted frame — so this is a pass over the two paths that run at 60 Hz rather than at tick rate: the PCM sample bridge and the visualizer painter. The sampler did full peak/RMS work per frame, before the silence gate, and even when nothing was listening. The backend posts a ~2048-frame window per display frame for as long as sampling is on, and
setSamplingEnabledis driven by mount effects that can outlive the visualizer that asked for it — so with nosampleUpdatelistener at all, every frame still allocated a channel array (.map) plus a result object and walked every frame twice (peakOfthenrmsOf, ≈245k typed-array reads/second on a stereo source), only foremitSampleto then drop it at the silence gate. The handler now returns onhasListeners("sampleUpdate")as its first statement (the same gatetimeUpdatealready had), fuses peak and RMS into ONE pass over the frames (≈123k reads/second, byte-identical results — the per-channel clamps land exactly wherepeakOf/rmsOfapplied them), and refills a reused channel list + envelope instead of allocating two objects per frame.AudioSampleDataalready documented its buffers as read-synchronously; that now explicitly covers the channel list too.mixChannelstakes an optional result object for the same reason. Time labels subscribed to a raw float although `formatTime` floors to seconds.useAudioState(s => s.currentTime)failsObject.ison every tick, so the<Text>re-rendered at tick rate — 4 Hz on video, higher on native audio — and 3 of every 4 renders produced a byte-identical string. The five timecode labels (TimeCurrentandTimeDisplayon<Audio>,<Video>and<AudioPlaylist>) now selectMath.floor(s.currentTime). The scrubbers keep the float — they need sub-second thumb positions. `useMediaSelector` allocated a `Proxy` and a sorted key signature per notification AND per render. Every store change per subscribed leaf built a fresh trackingProxyinrunTracked, a[...keys].map(String).sort().join()inregister(), then a secondProxy+ signature during the re-render and a third signature in the post-commit effect — ≈3 proxies and 3 sorted strings per leaf per tick. Snapshots are immutable, so the tracking proxy is now cached per snapshot identity in aWeakMap(one proxy serves every leaf that reads that snapshot, and it dies with it) and the tracked key set is compared by size + membership against the registered list, so the steady state allocates nothing. This is noise at the current 4 Hz tick and stops being noise the moment a caller drives position at frame rate. The visualizer built 2 Skia host objects per bar, per frame.Skia.XYWHRect+Skia.RRectXYeach return a real host object — a JSIHostObjectholding a C++shared_ptron native, aJsiSkRectwrapping a freshFloat32Arrayon web — sovariant="mirror"at the defaultcount=48created and discarded 96 of them per painted frame, ≈5,800/second, on the UI thread. Both bindings also accept a plain object and copy out of it synchronously (JsiSkRect::fromValue/JsiSkRRect::fromValue, and their web twins), so the fill builder now reuses ONE mutable rect/rrect pair for the whole frame: 96 host objects per frame → 2 plain objects. The resultingSkRRectcomes from the identicalSkRRect::MakeRectXYcall, and a zero radius takesaddRect, which is what Skia'saddRRectdegenerates to for a radius-less rrect — the drawn path is unchanged, and a new suite records the exact op sequence (addRRect/addRect/addCircle/moveTo/lineTo/close) with the values each call received to keep it that way. And it rebuilt the whole shape list as objects every frame to hand it to the builder in the next statement. AuseDerivedValuepublishedcountfresh{kind,x,y,w,h,r}objects plus a fresh array into a SharedValue per frame (≈2,900 objects/second at the defaultcount, plus another array whenevergain/floor/reversewas set), read once by the two path worklets and thrown away. Each variant now also exists as a writer into a flatFloat64Arraythat the component owns and reuses forever, and geometry + path building are fused into the two path worklets, so the intermediate never exists: the steady-state paint allocates nothing but theSkPathitself.strokeWidthno longer builds acount-length zero array and runs the whole variant to read one number either. The cost is one extra variant pass per frame (pure arithmetic into a buffer) in exchange for a SharedValue write, a mapper, and every allocation on the path.Float64Arrayrather thanFloat32Arrayso the coordinates round-trip exactly.VisualizerVariant,registerVisualizerVariantand the six exported variants are UNCHANGED — the object-shaped variants are now thin decoders over their writers (one implementation of each variant's geometry, so the two forms cannot drift), and a foreign variant is adapted by a shim that encodes its returned shapes, paying exactly the allocation it paid before. `<AudioMesh>` repainted a full-canvas fragment shader 60 times a second even with its drift frozen. It drove its uniforms from Skia'suseClock(), whose frame callback runs for as long as the component is mounted; every tick dirtied the uniforms mapper, soprefers-reduced-motion(which pins the drift att = 0) andspeed={0}(documented as "freezes the orbit") both kept rebuilding uniforms and repainting pixel-identical output forever. The clock is now local and stopped whenever the drift is frozen — no writes, so no mapper run, so no repaint — and a frozen mesh repaints only when the AUDIO moves it. Its uniforms also go into buffers the component owns (buildMeshUniformsInto): 3 arrays + a[w, h]tuple + the record per frame → just the record, which has to stay fresh or reanimated skips the SharedValue write and<Shader>never sees the frame.buildMeshUniformskeeps its exact allocating shape for other callers, over the same single implementation of the math. Also, in the same spirit: -useVisualizerSourcebuilt a${count}|${fftScale}|…|${bins}memo key on EVERY pushed FFT row (up to display rate) to prove nothing had changed; the mapper cache now lives in the reducer's closure, keyed by the settings, so only the pushed length is compared. -TypedEmitter.emitcopied its listenerSetinto a fresh array on every emit — including per audio frame. The single-listener case (a visualizer onsampleUpdate, a scrubber ontimeUpdate) now dispatches without the copy, with identical semantics: a listener it removes was already dispatched, and one it ADDS is still not delivered to in the same emit (which plain live iteration WOULD do — aSetgrown during iteration yields the new entries; there is a test for exactly that). - The mic-stream reductions (frameFromTimeDomain, nativeuseAudioStream) write the envelope straight into the frame/level object through a reused one-slot channel list: 3 allocations per captured buffer → 1 (the level object stays fresh — it is handed toonLeveland to React state). No public API changes in either package. Deferred: movinguseLevelTransition's smoother from the JS thread onto the UI thread, and/or publishing its eased row as a ping-ponged typed array (today: 60 boxed 48-element arrays per second, each converted element-by-element into a reanimated serializable on native — a sharedArrayBufferwould skip both). The allocation counts are certain, but it touches the documented Reanimated-4 SharedValue rules, changes the publicSharedValue<number[]>level type, and trades a fresh-array-per-frame guarantee for double buffering, so the win wants on-device measurement first. - Updated dependencies[5f44d20]
- Updated dependencies[5f44d20]
- Updated dependencies[5f44d20]
- Updated dependencies[5f44d20]
- Updated dependencies[5f44d20]
- Updated dependencies[5f44d20]
- Updated dependencies[5c6d758] - @knitui/components@0.6.0 - @knitui/core@0.6.0
@knitui/mediaquery
- Cut the shipped theme suite from 440 themes to 22, and stop the mediaquery hooks re-parsing / re-rendering per frame ##
@knitui/core— 418 generated themes removedconfig/themes.tscalledcreateThemes(...)without acomponentThemesargument, so it inherited Tamagui'sdefaultComponentThemes— a 19-entry map that is itself@deprecatedupstream ("component themes are no longer recommended"). Those entries cross-multiply with every scheme × palette, so the kit shipped 2 × 11 × 20 = 440 themes, all built eagerly at module scope on every app start and again by the Tamagui babel/static compiler. Measured against the kit's real inputs (interpreter-only,node --jitless): | | themes | theme keys | resolvedVariables | heap | build | | ------ | ------ | ---------- | --------------------- | -------- | ------- | | before | 440 | 37,708 | 37,708 (2,822 unique) | 2,513 KB | 12.1 ms | | after | 22 | 1,870 | 1,870 (1,010 unique) | 208 KB | 2.8 ms |componentThemes: falseis set both in the stockconfig/themes.tsand increateTheme(), so a consumer-built config has the same theme set as the shipped one (24 names there — the stock 22 plus thebrandalias in both schemes). ### BREAKING for anyone naming a component theme Themes named<scheme>[_<palette>]_<Component>no longer exist. If you reference one by name —<Theme name="light_Button">, athemesoverride keyeddark_gray_Card, or acreateTheme({ themeBuilder: { componentThemes: … } })extension — it will no longer resolve and the nearest parent theme is used instead. The removed names are the 20 Tamagui defaults (Button,Card,Checkbox,Input,ListItem,Progress,ProgressIndicator,RadioGroupItem,SelectItem,SelectTrigger,SliderThumb,SliderTrack,SliderTrackActive,Switch,SwitchThumb,TextArea,Tooltip,TooltipArrow,TooltipContent) × 22 scheme/palette combinations. To get them back, pass your own map: ``ts createTheme({ themeBuilder: { componentThemes: { Card: { template: "surface1" } } } });`###@knitui/components— offsets that were implicit are now explicit Nine of the kit'sstyled()names collided with that default map and were silently receiving a template offset. Every one of them has been PINNED so the rendered colour is unchanged — verified value-by-value acrosslight,dark,light_blueanddark_red(100 probes, 0 differences): | component | template | change | | ------------- | -------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------- | |ListItem| surface1 | none — the frame paints nothing, andsurface*leaves$color1…$color12and$coloralone | |Progress| surface1 | none — already explicit$colorN| |Button| surface3 |variant="default"border pinned$borderColor→$color7(the only variant reading$borderColor) | |Card| surface1 | frame +Card.Sectionborder pinned to$color2/$color5| |Checkbox| surface2 | unchecked box pinned to$color3/$color6| |SliderTrack| inverse | ramp steps written pre-mirrored ($color3→$color10; childSliderBar$color9→$color4) | |SliderThumb| inverse | pre-mirrored ($color1→$color12,$color9→$color4, hover$color10→$color3; childSliderLabelBubbletoo) | |SwitchThumb| inverse | childSwitchThumbIndicatorpre-mirrored ($color5→$color8, on$color9→$color4). The thumb itself uses$white, a token, so it was never inverted | |Tooltip| inverse | frame$color9→$color4,Tooltip.Text$color1→$color12| Two things worth flagging to whoever owns the visual design: 1. The fourinversecollisions were **reversing the entire$color1…$color12ramp** under those subtrees, not offsetting one step. SoTooltipwas authored$color9fill +$color1label (the kit's canonical filled pairing) and actually painted step 4 + step 12; the slider's track/bar/thumb were likewise inverted. The pins preserve the shipped pixels, but they codify an appearance that came from a deprecated Tamagui default rather than a design decision. Un-mirroring them (back to$color9/$color1etc.) is a deliberate follow-up. 2. **Descendants** of those nine frames no longer inherit the offset theme. A component placed inside aCardused to resolve$backgroundone ramp step up ($color2); it now gets the page value ($color1). Only the nine frames' own painted surfaces are pinned — arbitrary user content inside them shifts by one step (or un-inverts, inside the Slider/Tooltip parts).config/OVER_MEDIAalso moved to its own module (config/over-media.ts) so importing those five scrim literals no longer drags in the whole theme generation. No export surface change. ##@knitui/mediaquery— no per-render parsing, 3N listeners → 3 - **matchesQueryno longer re-parses on every call.** The nativeuseMediaQueryevaluated its query on the render path, and a string query re-ran the full parser each time: for"(min-width: 768px) and (orientation: landscape)"that is ~6 regex executions plus ~10 allocations, per render, per hook instance — so a 50-row list did ~300 regex ops per render pass to produce 50 identical booleans. Parses are now memoised in a bounded module-level cache (parseMediaQueryhands out copies, so a caller can't poison it). - **One shared environment store on native.** Each call site used to register THREE native subscriptions (Dimensions,Appearance,AccessibilityInfo.reduceMotionChanged) plus anisReduceMotionEnabled()promise — 20 call sites meant 60 live listeners. Worse, every handler didsetEnv(prev => ({ ...prev, … })), always a NEW object, so one rotation re-rendered every instance even though the boolean each derives almost never flips. There is now one store with three listeners total, read throughuseSyncExternalStorewhose snapshot is the resolved **boolean**, so React bails per component unless that component's answer actually changed. - **useBreakpointrenders on band crossings, not resize pixels.** It was backed byuseViewportSize, whose untreatedresizelistener allocates a fresh{ width, height }~60×/s during a window drag, forcing a re-render at every call site before the band was even derived — thoughresolveBreakpointyields only 8 values across 7 thresholds.mediaquerynow owns a viewport store that wakes subscribers only when the band changes, and the hook's snapshot is theBreakpointKeystring. (@knitui/hooks'useViewportSizeis untouched — it has other consumers that want the pixel width.) - **useSystemColorScheme** builds itsMediaQueryListonce at module scope instead of constructing a live, document-registered query object insidegetSnapshot(which React calls per render and per store-change check, twice over in StrictMode) and again insubscribe. No public API change in@knitui/mediaquery;useBreakpointkeeps its SSR contract (the server snapshot and first hydrating render both resolve theMediaQueryProvider` seed). - Updated dependencies[5f44d20]
- Updated dependencies[5f44d20]
- Updated dependencies[5f44d20]
- Updated dependencies[5f44d20]
- Updated dependencies[5f44d20]
- Updated dependencies[5c6d758] - @knitui/core@0.6.0 - @knitui/hooks@0.6.0
0.5.3
@knitui/map
- Knit UI 1.0 now runs on Tamagui v3 (3.0.18). This is a breaking release: every style prop uses the v3 value syntax. Run the codemod first, then follow the upgrade guide at
/docs/guides/upgrading-to-v1. Styling syntax - Bare tokens.$is gone: writep="md"andbg="color3". A string is always a token; a number is a raw value. - Conditions live inside the value.hoverStyle,pressStyle,focusStyle,focusVisibleStyle,disabledStyle,enterStyleandexitStyleare removed. Writebg="color2 hover:color3 press:color4"instead, or the object form{ default, hover }. Media props become media clauses:p="sm gtSm:lg". - Transitions. Usetransition="fast"or the object form{ preset, properties, enter, exit }.animateOnlyis removed; usetransition.properties. Motion presets are now unified across web and native, so some timings change, most noticeablybouncy. - Line height. A numericlineHeightis now a ratio of the font size. Use"24px"for an absolute value. Component authoring -X.styleable(fn)is replaced bystyleable(X, fn)from@knitui/core. It is memoized and supports chaining. - Prefer plainstyled()with variants,styled.dynamicor.resolve. The compiler can flatten these; a styleable HOC can never be flattened. - Many layout and typography primitives (Flex, Container, Spacer, AspectRatio, Paragraph, Kbd, Mark, VisuallyHidden, …) are now plain styled components. - Variant precedence follows the order props are passed. An explicitundefinedpassed to a style prop clears the base value. Core - Themes.@tamagui/theme-builderis replaced by@tamagui/config-v5/builder. Default themes are precomputed at build time. - Tokens. Thetrueandtransparenttokens are removed. - New helpers:resolveToken,isToken,splitStyleProps,ThemeUpdate, andfocusRingColorplus focus-ring variables. - Removed:usePropsandusePropsAndStyle. Tooling (`@knitui/plugins`) - Native compilation now goes through the Metro plugin (@tamagui/cli/metro). The babel plugin entry is a deprecated no-op. - Vite now uses@tamagui/cli/vite. - The Next and webpack adapters are on v3. Fixes made along the way - Hover now works on web. - Noname="…"attributes leak into the DOM or FormData. - Overlay styles that were being wiped are restored: Modal max-width, Popover and Tooltip radius. - Image radius and size now resolve. - Text fields now show an accent focus border. - The@knitui/mediasideEffectssetting no longer drops the expo-video web global. - ARIA is improved in Menu, Combobox, Tree, Tabs and Stepper. Map: dependency bump only.
0.5.2
@knitui/map
- SvgImage (web): icons rasterize into a CPU-backed canvas. The capture used react-native-svg's
toDataURL, whose canvas Chrome backs with the GPU, so reading each tiny bitmap back stalled the main thread (in headless Chrome the five icons of a cold map took 1.9 s; now under 0.1 s). The kit now does the same serialization itself withwillReadFrequently, and a capture with no<svg>or a failed decode reports empty so it is retried instead of hanging on its slot.
0.5.1
@knitui/map
- Fix web maps that paint only their background and never load a tile. maplibre-gl v6 locates its tile worker through
import.meta.url, and inside a bundler (webpack/Next, Vite, Metro web) that never points at a real file. In 0.5.0 the map mounted, drew its background colour and silently loaded nothing. Web apps now need to serve maplibre's worker and point the map at it once at startup. Copymaplibre-gl-worker.mjsandmaplibre-gl-shared.mjsfromnode_modules/maplibre-gl/dist/into your static directory, then: ``ts import { setWorkerUrl } from "@knitui/map/worker"; setWorkerUrl("/maplibre/maplibre-gl-worker.mjs");`@knitui/map/workeronly stores the URL and doesn't import maplibre, so calling it from your app root doesn't add the map engine to every page. Native is unaffected. In development,Map` now warns when it can't find a worker URL instead of failing silently. See https://knitui.dev/docs/map#web-worker.
0.5.0
@knitui/core
- Align published dependency ranges with Expo SDK 57 The SDK pins exact versions for its native modules, and several of our published ranges had drifted from that set. Consumers on SDK 57 were resolving versions the SDK's prebuilt binaries don't expect, which fails at runtime rather than at build time. -
@knitui/components:expo-image~57.0.0→~57.0.1-@knitui/core:@tamagui/*^2.3.0→^2.4.6-@knitui/media:expo-audio~57.0.0→~57.0.2,expo-video~57.0.0→~57.0.1-@knitui/plugins:@tamagui/babel-plugin^2.3.0→^2.4.6@knitui/graphicsis a minor rather than a patch because its@shopify/react-native-skiapeer is an exact pin and moves2.6.6→2.6.2, which is the version Expo SDK 57 expects. Consumers currently pinned to2.6.6will need to move to2.6.2to satisfy the peer.
@knitui/components
- Align published dependency ranges with Expo SDK 57 The SDK pins exact versions for its native modules, and several of our published ranges had drifted from that set. Consumers on SDK 57 were resolving versions the SDK's prebuilt binaries don't expect, which fails at runtime rather than at build time. -
@knitui/components:expo-image~57.0.0→~57.0.1-@knitui/core:@tamagui/*^2.3.0→^2.4.6-@knitui/media:expo-audio~57.0.0→~57.0.2,expo-video~57.0.0→~57.0.1-@knitui/plugins:@tamagui/babel-plugin^2.3.0→^2.4.6@knitui/graphicsis a minor rather than a patch because its@shopify/react-native-skiapeer is an exact pin and moves2.6.6→2.6.2, which is the version Expo SDK 57 expects. Consumers currently pinned to2.6.6will need to move to2.6.2to satisfy the peer. - Updated dependencies[4f7830c] - @knitui/core@0.5.0 - @knitui/hooks@0.5.0 - @knitui/icons@0.5.0
@knitui/hooks
- Updated dependencies[4f7830c] - @knitui/core@0.5.0
@knitui/dates
- Updated dependencies[4f7830c] - @knitui/components@0.5.0 - @knitui/core@0.5.0 - @knitui/hooks@0.5.0
@knitui/map
- minor Refresh dependencies to the latest Expo SDK 57 releases. - core / components / plugins: Tamagui 2.4.6 → 2.7.7 (pinned exactly, so the babel plugin and runtime always match) and
react-native-teleport1.1.7 → 1.2.2. The teleport AndroidprepareToRecycleViewfix is now upstream, so the local patch is gone.expo-image→ ~57.0.5. - map: now targetsmaplibre-glv6 on web (peer^6, was^5) and@maplibre/maplibre-react-native^11.4.0 on native. Both use@maplibre/maplibre-gl-style-spec26. maplibre v6 is ESM-only and has no default export; the map package now imports it as a namespace. If your web app importsmaplibre-glitself, update it to v6. The canvas-leave handlers now listen tomouseout: v6 only firesmouseleavefor layer-scoped listeners, so the long-press/cursor reset on leaving the map never ran. - media:expo-audio→ ~57.0.5,expo-video→ ~57.0.4.
@knitui/graphics
- minor Align published dependency ranges with Expo SDK 57 The SDK pins exact versions for its native modules, and several of our published ranges had drifted from that set. Consumers on SDK 57 were resolving versions the SDK's prebuilt binaries don't expect, which fails at runtime rather than at build time. -
@knitui/components:expo-image~57.0.0→~57.0.1-@knitui/core:@tamagui/*^2.3.0→^2.4.6-@knitui/media:expo-audio~57.0.0→~57.0.2,expo-video~57.0.0→~57.0.1-@knitui/plugins:@tamagui/babel-plugin^2.3.0→^2.4.6@knitui/graphicsis a minor rather than a patch because its@shopify/react-native-skiapeer is an exact pin and moves2.6.6→2.6.2, which is the version Expo SDK 57 expects. Consumers currently pinned to2.6.6will need to move to2.6.2to satisfy the peer. - Updated dependencies[4f7830c] - @knitui/components@0.5.0 - @knitui/core@0.5.0
@knitui/mediaquery
- Updated dependencies[4f7830c] - @knitui/core@0.5.0 - @knitui/hooks@0.5.0
0.4.10
@knitui/media
- Video (web):
@knitui/mediainstalls theglobalThis.expopolyfill itself before it loadsexpo-video. expo-video's web build readsglobalThis.expo.SharedObjectat import time without importing expo-modules-core, so it relied on something else having loaded it first: theexpoentry in an Expo app, or (until@knitui/components0.14 rendered its own web<img>) expo-image. A web app with neither (a Next app, a test) crashed with "Cannot read properties of undefined (reading 'SharedObject')".expo-modules-coreis now a peer dependency (every Expo app already has it throughexpo). - Updated dependencies[9955de3] - @knitui/components@0.14.0 - @knitui/core@0.14.0 - @knitui/hooks@0.14.0 - @knitui/icons@0.14.0
0.4.9
@knitui/media
- Updated dependencies[069938f]
- Updated dependencies[8626180]
- Updated dependencies[633e669]
- Updated dependencies[5991b24]
- Updated dependencies[326ce54]
- Updated dependencies[e282fbd]
- Updated dependencies[574ac98] - @knitui/components@0.13.0 - @knitui/core@0.13.0 - @knitui/hooks@0.13.0 - @knitui/icons@0.13.0
0.4.8
@knitui/media
- Updated dependencies[10b4ce3]
- Updated dependencies[784af02]
- Updated dependencies[e6492e4] - @knitui/components@0.12.2 - @knitui/core@0.12.2 - @knitui/hooks@0.12.2 - @knitui/icons@0.12.2
0.4.7
@knitui/media
- Updated dependencies[c372c5d] - @knitui/components@0.12.1 - @knitui/core@0.12.1 - @knitui/hooks@0.12.1 - @knitui/icons@0.12.1
0.4.6
@knitui/media
- Updated dependencies[8b4d429] - @knitui/components@0.12.0 - @knitui/core@0.12.0 - @knitui/hooks@0.12.0 - @knitui/icons@0.12.0
0.4.5
@knitui/media
- Updated dependencies[c843078]
- Updated dependencies[c843078] - @knitui/core@0.11.0 - @knitui/hooks@0.11.0 - @knitui/components@0.11.0 - @knitui/icons@0.11.0
0.4.4
@knitui/media
- Updated dependencies[26d50da]
- Updated dependencies[26d50da] - @knitui/components@0.10.0 - @knitui/core@0.10.0 - @knitui/hooks@0.10.0 - @knitui/icons@0.10.0
0.4.3
@knitui/map
-
SvgImageno longer gives up on a raster whose surface has not painted yet. Exhausting the eager capture window ended the job without ever callingonCapture, and nothing re-requests a raster — so the store slot stayed unresolved forever, no MapLibre image was registered, and everySymbolLayerdrawing that icon silently drew nothing for the rest of the session, with no log and no retry. The eager window assumed the surface was racing its first draw and would win within ~80 frames. A surface that is not being drawn at all breaks that assumption rather than losing the race: a map mounted offscreen to warm its GL context, a screen frozen byfreezeOnBlur, an Android view pruned before it painted. All of those resolve later, at which point the next attempt would have succeeded — so ending the job turned a transient condition into a permanent one. The window is now only a change of pace. Past it a job hands its concurrency slot back and keeps polling at ~1s until it succeeds or its surface unmounts; returning the slot matters, because surfaces that are not painting would otherwise hold every slot forever and starve one that would succeed immediately. A dev-onlyconsole.warn(typeof-guarded, so a bundler that does not define__DEV__cannot turn a slow icon into a crash) now names the likely cause on the transition to the patient cadence.
@knitui/media
- Refresh dependencies to the latest Expo SDK 57 releases. - core / components / plugins: Tamagui 2.4.6 → 2.7.7 (pinned exactly, so the babel plugin and runtime always match) and
react-native-teleport1.1.7 → 1.2.2. The teleport AndroidprepareToRecycleViewfix is now upstream, so the local patch is gone.expo-image→ ~57.0.5. - map: now targetsmaplibre-glv6 on web (peer^6, was^5) and@maplibre/maplibre-react-native^11.4.0 on native. Both use@maplibre/maplibre-gl-style-spec26. maplibre v6 is ESM-only and has no default export; the map package now imports it as a namespace. If your web app importsmaplibre-glitself, update it to v6. The canvas-leave handlers now listen tomouseout: v6 only firesmouseleavefor layer-scoped listeners, so the long-press/cursor reset on leaving the map never ran. - media:expo-audio→ ~57.0.5,expo-video→ ~57.0.4. - Updated dependencies[bf9eeb1] - @knitui/core@0.9.0 - @knitui/components@0.9.0 - @knitui/hooks@0.9.0 - @knitui/icons@0.9.0
0.4.2
@knitui/map
- Dependency refresh, all within the current majors and validated against Expo SDK 57 (
expo install --checkreports the workspace aligned): -react-native0.86.0 → 0.86.2 (and@react-native/metro-configto match; both stay pinned as singletons in the rootpnpm.overrides) -react-native-reanimated4.5.0 → 4.5.1 andreact-native-worklets0.10.0 → 0.10.1 — the versions Expo SDK 57 expects -expo57.0.7 → 57.0.9 and the SDK-managed modules along with it (expo-router,expo-constants,expo-linking,expo-system-ui,expo-video,@expo/metro-runtime,expo-build-properties) -babel-preset-expo57.0.3 → 57.0.5, Storybook 10.5.3 → 10.5.5,@vitejs/plugin-react6.0.3 → 6.0.4,next16.2.10 → 16.2.12,@react-navigation/*patch bumps The vendoredexpo-modules-corepatch was re-pointed from 57.0.6 to 57.0.8 and still applies cleanly.expo-audiodeliberately stays on 57.0.2, where our native sampling patch is pinned. Peer requirements for consumers are unchanged.
@knitui/media
- Updated dependencies[c25c51f] - @knitui/components@0.8.1 - @knitui/core@0.8.1 - @knitui/hooks@0.8.1 - @knitui/icons@0.8.1
0.4.1
@knitui/map
- Point every
typesentry at the built declarations (lib/typescript/*.d.ts) instead of at the shipped TypeScript source. These packages ship their source and resolve it at runtime (source,react-nativeanddefaultall still point intosrc), buttypespointed there too — so a consumer'stsctypechecked the kit's raw source as part of their own build. That is slow, and it surfaces errors that depend on the consumer's own compiler settings, sinceskipLibCheckdoes not apply to.tssource files. Resolvingtypesto real.d.tsfiles makes declaration handling both faster and inert.@knitui/iconsalso addslib/typescripttofiles; its declarations were previously built but never published, so the newtypespath would not have existed in the tarball.@knitui/emojideliberately keepstypeson its source: its per-emoji modules ship as pre-generated.js/.d.tspairs insidesrc, whichtscdoes not re-emit, so its built barrel cannot resolve them.
@knitui/media
- Updated dependencies[8de27f7]
- Updated dependencies[85594a1] - @knitui/core@0.8.0 - @knitui/components@0.8.0 - @knitui/hooks@0.8.0 - @knitui/icons@0.8.0
@knitui/sheet
- Updated dependencies[9955de3] - @knitui/components@0.14.0 - @knitui/core@0.14.0 - @knitui/hooks@0.14.0 - @knitui/icons@0.14.0
0.4.0
@knitui/components
- minor Add
VirtualListand reanimated-native scroll offsets - `VirtualList` — a new windowed list for large datasets. Renders only the visible slice (plus overscan) overScrollArea, supports variable row heights via per-type average sizing, and exposes an imperative handle (scrollToIndex/scrollToOffset). One cross-platform component file over a platform-free measurement engine. - `ScrollArea` — newscrollValueX/scrollValueYprops mirror the live scroll offset into caller-owned reanimated shared values on the UI thread, so parallax and collapsing-header animations run with no JS-thread round-trip. Native only; the web ScrollArea ignores them. - `UnstyledButton` — now carries the same reduced-motion-aware press-scale affordance asButton/ActionIcon/Chip, so custom controls built on it no longer read as dead on press. DescendantpressStylemerges with it. - `Image` — fix a crash when passingtransitionon web. expo-image's numerictransitioncollided with Tamagui v2's reserved animation prop, which marked the image animated and made the web driver callgetComputedStyleon a non-DOM host. The value is now forwarded to the backend under an internal alias. - @knitui/core@0.4.0
- @knitui/hooks@0.4.0
- @knitui/icons@0.4.0
@knitui/hooks
- @knitui/core@0.4.0
@knitui/dates
- Updated dependencies[5b5a3e0] - @knitui/components@0.4.0 - @knitui/core@0.4.0 - @knitui/hooks@0.4.0
@knitui/map
- minor Stop the map doing per-render and per-frame work, and move the bundled styles off the barrel A pass over every hot path in
@knitui/map, cross-checked against themaplibre-gl5.24 andmaplibre-react-native11.3 sources — most of the cost landed _inside_ those two, on props this package handed them. `GeoJSONSource` re-serialized its whole FeatureCollection on every ancestor render (native). Upstream'sGeoJSONSourcestringifies in its render body (data={typeof data === "string" ? data : JSON.stringify(data)}). It ismemo'd, but that memo could never hold through our wrapper:onPresswas an inline arrow andchildrenis the consumer's inline JSX. So _any_ ancestor re-render — including asetStatefromonRegionIsChanging, which fires up to 30×/s — re-stringified every feature (~1–3 MB for a 4000-point collection) on the JS thread, shipped a new string prop through Fabric, and made the native side re-parse, re-index and re-cluster it.datadid not have to have changed. The wrapper now serializes once perdataidentity and hands upstream astring, so its ternary short-circuits to the same identity and Fabric diffs the prop to nothing;onPressis stable over a props ref. Every filterless layer forced a source reload at mount (web).useWebLayercalledmap.setFilter(id, filter ?? null). maplibre's guard isdeepEqual(layer.filter, filter),layer.filterisundefined, anddeepEqualbottoms out ata === b— sonullcompared FALSE and took the clearing branch:layer.setFilter(undefined)+_updateLayer(layer), which sets_updatedSources[source] = 'reload'and callstileManager.pause(). Every layer without afilterprop therefore re-requested and re-tessellated its source's tiles immediately after being added — three times over for the standard three-layer clustered pattern, showing up as a slow first paint plus a flash of missing markers. The call is now skipped entirely when the filter is and was absent, and clears withundefinedrather thannull. Paint/layout were re-applied property-by-property, undiffed, on every render (web). The effect's deps were object identities and the public API is an inline camelCasestyleobject, so it fired every render and loopedsetPaintProperty/setLayoutPropertyover every key. maplibre does guard withdeepEqual, but only after_checkLoaded(),getLayer()andlayer.getPaintProperty(name)— and that last one isclone(this._values[name].value.value). So each property cost a deep clone plus a deep compare of its whole expression tree, every render, across all nine web layer types; a["step", ["get","point_count"], …]or a 200-branch["match", …]icon-imagepaid it in full.useWebLayernow diffs before calling into maplibre and memoizesresolvePaintLayout/ the add-config. The dropped-key reset loop is unchanged. Fresh paint/layout objects defeated the native `Layer`'s memo. Each of the eight native layer components allocated newpaint/layoutper render, and upstream's guard isuseMemo(…, [props])wherepropsis a fresh rest-spread — so it never hits no matter what we pass. Every render therefore ranmergeStyleProps→transformStyle(aprocessColorper colour, anew BridgeValue(...).toJSON()walk over every expression array) and produced a newreactStyleprop that the native layer re-applied wholesale. A new shareduseNativeLayerPropshook memoizes the resolved paint/layout _and_ the whole props object on the real inputs. Upstream's memo stays useless, but the native prop identity stops changing, so Fabric diffs the layer to nothing. `map.getStyle()` — a deep clone of the entire style — ran on every mousemove (web). The hover cursor hit-test derived its layer list fromgetStyle(), i.e.Style.serialize()→_serializeByIds(this._order, returnClone=true)→ aclone()of every serialized layer plusmapObject(tileManagers, s => s.serialize()). On a Positron/Voyager basemap (~130 layers, each with paint and layout expressions) that is thousands of allocations per pointer move — and it only ran when an interactive source existed, i.e. exactly for the 4000-pointonPressconsumer. The layer registry already knows each layer'ssourceId, so the list is now derived from it and cached, invalidated by a registry revision counter and astyledataepoch. The hit-test itself is coalesced to one per animation frame and skipped whilemap.isMoving(). A full view-state event object plus timer churn on every raw `move` event (web).makeViewStateChangeEventran _before_ the 32 ms throttle check, so everymove(60+/s) did agetBounds()(four corner unprojections + aLngLatBoundsalloc), agetCenter(),getZoom/getBearing/getPitchand two object allocations — even for consumers with no region handlers at all. Each move also did aclearTimeoutplus a fresh 500 mssetTimeout. Now: early-out when no region handler is registered, the event is built lazily _after_ the throttle gate, and the trailing debounce is only armed whenonRegionDidChangeexists. The native side (where the event comes from native, so only the timer churn applied) got the same treatment.onRegionIsChangingis documented as the thing not tosetStatefrom unthrottled, since that is the amplifier for everything above. The rasterizer leaked offscreen surfaces and threw away resolved bitmaps.resolve()stored the data URI but never took the slot out of the render snapshot, soRasterizerHostkept every<SvgXml>surface mounted for the map's whole lifetime — on native those are real view trees withcollapsable={false}that Android walks on every layout pass. Converselyrelease()deleted the slot _including_ its resolved bitmap, so unmounting and remounting an icon (a filter toggle) re-rasterized from scratch and drove aremoveImage/addImageround trip — and removing an image a symbol layer references forces MapLibre to redo symbol placement. Surfaces now unmount once their key resolves (never before, sorunCapture's retry loop still has something to snapshot), and resolved URIs are kept in a 64-entry LRU keyed by the existing content key, so a remount is free. Up to 30 rAF-spaced native view snapshots per icon during the map's first frames.runCaptureretriedtoDataURLonce per animation frame for up to 30 frames, with the attempt counter shared between the "ref not attached" and "empty bytes" cases. With ~30 category icons that is up to 900 native view snapshots in the ~500 ms right after mount — exactly when MapLibre is loading its first tiles and doing initial symbol placement. Captures are now capped at 3 in flight (the rest drain from a queue) and back off geometrically (1, 2, 4, 8, 8 … frames), which cuts snapshots per icon from 30 to 12 while making the retry _window_ longer (~80 frames vs 30). Also:CamerawasJSON.stringify-ing its camera stop in the render body on every render (now a hand-rolled scalar/tuple compare),MapViewwas stringifyingattributionevery render (now memoized), and thesetStyleeffect'sJSON.stringify(mapStyle)— safe only because it was keyed onmapStyleidentity, and a ~485 KB serialization per render for anyone passing an inline or derived style — is now a structural compare that allocates nothing. ## Breaking: the bundled styles moved to a subpath The nine bundled MapLibre styles are no longer re-exported from the root barrel: ``diff - import { positronStyle } from "@knitui/map"; + import { positronStyle } from "@knitui/map/styles"; + // or, for exactly one style: + import { positronStyle } from "@knitui/map/styles/positronStyle";`They total 496,951 bytes / 20,858 lines of nested object literals. Following every runtime (non type-only) relative import out of the barrel: it reached **65 modules / 623.9 KB**, of which the styles were 77.9%. It now reaches **55 modules / 139.2 KB** — a 4.5× smaller graph. That mattered because the package src-ships and Metro does not tree-shake, and because a re-export isexport *, the CJS interop Babel/Metro generaterequire()s the module at barrel eval — so every app that rendered<Map>with its own style URL constructed ~500 KB of literals before its first frame. Nothing else about the styles changed: same names, same values, same@knitui/map/styles` index.
@knitui/media
- minor
useAudioPlaylistControllerexposes the single-track player underneath the queue The hook now returns a third field,player: theAudioControllerslot the playlist drives, stable for the hook's lifetime. It exists for the surfaces that belong to the PLAYER rather than the queue, which the playlist contract cannot express. The motivating one is spectrum sampling —useAudioSpectrumneedssetSamplingEnabledandsampleUpdate, which live on the single-track controller only, because a playlist has no notion of PCM. Before this there was no supported way to reach the sampler from a playlist at all: the facade is private on the controller and its slot id is an internaluseIdno caller could pass togetFacade, so a visualizer over a queue was simply not buildable. ``tsx const { controller, store, player } = useAudioPlaylistController({ sources }); useAudioSpectrum(player, { onFrame: (bands) => viz.current?.push(bands) });`Playback still goes throughcontroller: transport calls onplayer` move the slot without telling the queue, and the two snapshots then disagree. - Stop web video silently dropping a
play()made before its view existsexpo-video's web backend appliesplay()by iterating theHTMLVideoElements currently mounted into the player, so a call made while no view is attached iterates an empty set: no throw, no error status, no retry, nothing to observe. In a kit whose surface is a single teleported element that is not an edge case — it is what happens on a cold mount, where the call beats the view's own effect, and on every switch between players in the shared session, where the surface is destroyed and a NEW element is built for the incoming player's frame.autoPlaywas the plainest casualty: it ran in the constructor, before any view could exist. The controller now tracks a standing play INTENT — set byplay()/replay(), cleared bypause()and bydispose()— andattachViewre-applies it, which is what makes both cases work. It is idempotent by construction:player.play()on an already-playing player is a no-op on both backends, and a paused intent re-applies nothing.attachView(null)also now marks the snapshot as not playing. Detaching is the only moment the controller learns its element has been handed to another player, and the outgoing element takes its playback with it while never reporting apause— it is unmounted from the player first, so its events no longer count. The snapshot was left claimingplaying: trueover a torn-down element, and every consumer that branches on it — a play/pause toggle most of all — then did the opposite of what it should. - Dependency refresh, all within the current majors and validated against Expo SDK 57 (
expo install --checkreports the workspace aligned): -react-native0.86.0 → 0.86.2 (and@react-native/metro-configto match; both stay pinned as singletons in the rootpnpm.overrides) -react-native-reanimated4.5.0 → 4.5.1 andreact-native-worklets0.10.0 → 0.10.1 — the versions Expo SDK 57 expects -expo57.0.7 → 57.0.9 and the SDK-managed modules along with it (expo-router,expo-constants,expo-linking,expo-system-ui,expo-video,@expo/metro-runtime,expo-build-properties) -babel-preset-expo57.0.3 → 57.0.5, Storybook 10.5.3 → 10.5.5,@vitejs/plugin-react6.0.3 → 6.0.4,next16.2.10 → 16.2.12,@react-navigation/*patch bumps The vendoredexpo-modules-corepatch was re-pointed from 57.0.6 to 57.0.8 and still applies cleanly.expo-audiodeliberately stays on 57.0.2, where our native sampling patch is pinned. Peer requirements for consumers are unchanged. - Updated dependencies[edcec97]
- Updated dependencies[15a329c]
- Updated dependencies[59d065b] - @knitui/components@0.7.0 - @knitui/core@0.7.0 - @knitui/hooks@0.7.0 - @knitui/icons@0.7.0
@knitui/graphics
- Updated dependencies[5b5a3e0] - @knitui/components@0.4.0 - @knitui/core@0.4.0
@knitui/sheet
- minor Sheet: new
aria-label/aria-labelledbyprops name the panel, on the element that carries its role (native:aria-labelbecomes the panel'saccessibilityLabel). A modal sheet stays a dialog (role="dialog",aria-modal="true"). A non-modal sheet (modal={false}, a persistent panel such as a browse sheet over a map) is no longer a dialog: it is arole="region"landmark when named, and has no role when not. Before, every sheet wasrole="dialog"with no way to name it (axearia-dialog-name). Behaviour change (web): amodal={false}sheet losesrole="dialog"andaria-modal="false". If you relied on the dialog role for a non-modal sheet, setrolethroughstyles.root(it still wins). Tabs: aTabs.Tabsetsaria-controlsonly while itsTabs.Panelis mounted (panels register with theTabsroot), so a tab strip without panels, or a panel unmounted bykeepMounted={false}, no longer points at a missing id (axearia-valid-attr-value). A caller's ownaria-controlsonTabs.Tabnow wins over the generated one. - Sheet: the handle no longer cycles the detent after a drag. On the web a mouse drag that starts on the handle ends with a
clickon it, so the sheet stepped once more after it settled (dragging from half down to peek landed on full). A press in the same pointer cycle as a drag is now ignored; a later tap and keyboard / assistive-tech activation of the handle still cycle. - Sheet: a slow drag settles on the snap nearest where it was released. The fling bias ("a flick advances at least one snap") counted from the snap nearest the RELEASE point, so a drag up from the lowest of three snaps that let go just past the middle one, at any speed over 300 px/s (an unhurried touch drag), was pushed on to the top snap. The bias now counts from the snap the drag started on, only flings (500 px/s and up, was 300) are projected forward at all, and a fling lands at most one snap past the one nearest its release.
settle()takes an optionalstartOffset; the drag gesture passes it. - Updated dependencies[069938f]
- Updated dependencies[8626180]
- Updated dependencies[633e669]
- Updated dependencies[5991b24]
- Updated dependencies[326ce54]
- Updated dependencies[e282fbd]
- Updated dependencies[574ac98] - @knitui/components@0.13.0 - @knitui/core@0.13.0 - @knitui/hooks@0.13.0 - @knitui/icons@0.13.0
@knitui/mediaquery
- @knitui/core@0.4.0
- @knitui/hooks@0.4.0
0.3.16
@knitui/carousel
- Updated dependencies[9955de3] - @knitui/components@0.14.0 - @knitui/core@0.14.0 - @knitui/hooks@0.14.0 - @knitui/icons@0.14.0
0.3.15
@knitui/carousel
- Updated dependencies[069938f]
- Updated dependencies[8626180]
- Updated dependencies[633e669]
- Updated dependencies[5991b24]
- Updated dependencies[326ce54]
- Updated dependencies[e282fbd]
- Updated dependencies[574ac98] - @knitui/components@0.13.0 - @knitui/core@0.13.0 - @knitui/hooks@0.13.0 - @knitui/icons@0.13.0
0.3.14
@knitui/carousel
- Updated dependencies[10b4ce3]
- Updated dependencies[784af02]
- Updated dependencies[e6492e4] - @knitui/components@0.12.2 - @knitui/core@0.12.2 - @knitui/hooks@0.12.2 - @knitui/icons@0.12.2
@knitui/sheet
- Sheet (native): a sheet that is open and at rest no longer vanishes. Reanimated writes the panel's
translateYto the native view only when it changes; when the view lost that write (a modal sheet closing over a persistent one, the screen re-rendering after a sign-in: about one time in three on Android) the panel stayed at the off-screen value it started from while the sheet's state still said "open". The panel host now re-sends its transform after every render. - Updated dependencies[10b4ce3]
- Updated dependencies[784af02]
- Updated dependencies[e6492e4] - @knitui/components@0.12.2 - @knitui/core@0.12.2 - @knitui/hooks@0.12.2 - @knitui/icons@0.12.2
0.3.13
@knitui/carousel
- Updated dependencies[c372c5d] - @knitui/components@0.12.1 - @knitui/core@0.12.1 - @knitui/hooks@0.12.1 - @knitui/icons@0.12.1
@knitui/sheet
- Updated dependencies[c372c5d] - @knitui/components@0.12.1 - @knitui/core@0.12.1 - @knitui/hooks@0.12.1 - @knitui/icons@0.12.1
0.3.12
@knitui/carousel
- Updated dependencies[8b4d429] - @knitui/components@0.12.0 - @knitui/core@0.12.0 - @knitui/hooks@0.12.0 - @knitui/icons@0.12.0
@knitui/sheet
- Updated dependencies[8b4d429] - @knitui/components@0.12.0 - @knitui/core@0.12.0 - @knitui/hooks@0.12.0 - @knitui/icons@0.12.0
0.3.11
@knitui/carousel
- Updated dependencies[c843078]
- Updated dependencies[c843078] - @knitui/core@0.11.0 - @knitui/hooks@0.11.0 - @knitui/components@0.11.0 - @knitui/icons@0.11.0
@knitui/sheet
- Updated dependencies[c843078]
- Updated dependencies[c843078] - @knitui/core@0.11.0 - @knitui/hooks@0.11.0 - @knitui/components@0.11.0 - @knitui/icons@0.11.0
0.3.10
@knitui/carousel
- Scoped overlay hosts + a carousel
scrollsToToppass-through (for native modal screens and the iOS status-bar tap): - NewOverlayHost(name,children): mounts a scopedPortalHostover its subtree, and every kit overlay inside it —Popover(and soMenu/Combobox/date-picker dropdowns),Tooltip,Modal/Drawer,Affix, and a modal@knitui/sheetSheet— teleports there instead of"root". Wrap an iOSformSheet/fullScreenModalscreen in it so its overlays stop drawing behind the modal. Outside anOverlayHostnothing changes. -useOverlayHost()returns the host overlays should use at that point in the tree ("root"by default);useTopmostOverlayHost()returns the top-most mounted scoped host app-wide, for global layers (toasts) that live outside every scope.ROOT_OVERLAY_HOSTnames the default. - Native floating positioning measures a scoped host's window origin, so a dropdown inside aformSheetlands on its trigger. -CarouseltakesscrollsToTop(iOS,scrollMode="native"): passfalseon a rail so the page's own scroller keeps the status-bar tap. - Updated dependencies[26d50da]
- Updated dependencies[26d50da] - @knitui/components@0.10.0 - @knitui/core@0.10.0 - @knitui/hooks@0.10.0 - @knitui/icons@0.10.0
@knitui/sheet
- Scoped overlay hosts + a carousel
scrollsToToppass-through (for native modal screens and the iOS status-bar tap): - NewOverlayHost(name,children): mounts a scopedPortalHostover its subtree, and every kit overlay inside it —Popover(and soMenu/Combobox/date-picker dropdowns),Tooltip,Modal/Drawer,Affix, and a modal@knitui/sheetSheet— teleports there instead of"root". Wrap an iOSformSheet/fullScreenModalscreen in it so its overlays stop drawing behind the modal. Outside anOverlayHostnothing changes. -useOverlayHost()returns the host overlays should use at that point in the tree ("root"by default);useTopmostOverlayHost()returns the top-most mounted scoped host app-wide, for global layers (toasts) that live outside every scope.ROOT_OVERLAY_HOSTnames the default. - Native floating positioning measures a scoped host's window origin, so a dropdown inside aformSheetlands on its trigger. -CarouseltakesscrollsToTop(iOS,scrollMode="native"): passfalseon a rail so the page's own scroller keeps the status-bar tap. - Updated dependencies[26d50da]
- Updated dependencies[26d50da] - @knitui/components@0.10.0 - @knitui/core@0.10.0 - @knitui/hooks@0.10.0 - @knitui/icons@0.10.0
0.3.9
@knitui/carousel
- Updated dependencies[bf9eeb1] - @knitui/core@0.9.0 - @knitui/components@0.9.0 - @knitui/hooks@0.9.0 - @knitui/icons@0.9.0
@knitui/sheet
- Updated dependencies[bf9eeb1] - @knitui/core@0.9.0 - @knitui/components@0.9.0 - @knitui/hooks@0.9.0 - @knitui/icons@0.9.0
0.3.8
@knitui/carousel
- Updated dependencies[c25c51f] - @knitui/components@0.8.1 - @knitui/core@0.8.1 - @knitui/hooks@0.8.1 - @knitui/icons@0.8.1
@knitui/sheet
- Updated dependencies[c25c51f] - @knitui/components@0.8.1 - @knitui/core@0.8.1 - @knitui/hooks@0.8.1 - @knitui/icons@0.8.1
0.3.7
@knitui/carousel
- Updated dependencies[8de27f7]
- Updated dependencies[85594a1] - @knitui/core@0.8.0 - @knitui/components@0.8.0 - @knitui/hooks@0.8.0 - @knitui/icons@0.8.0
@knitui/sheet
- Updated dependencies[8de27f7]
- Updated dependencies[85594a1] - @knitui/core@0.8.0 - @knitui/components@0.8.0 - @knitui/hooks@0.8.0 - @knitui/icons@0.8.0
0.3.6
@knitui/carousel
- Show a
grabbingcursor while a mouse drag is actually under way The transform-mode track is dragged by RNGH'sGesture.Pan()(useDragGesture, shared with native), which knows nothing about cursors — so a mouse user got no feedback at all that the rail was moving with the pointer. A new web-onlyuseDragCursorpaintsgrabbingonce travel passes the same 5px threshold the drag itself uses, and restores whatever the carousel's own styling asked for on release. Deliberately no idlegrabhint: the cursor is untouched until a drag is genuinely in progress, so hovering a carousel and plain clicks on a slide look exactly as they did. The move/release listeners sit on the document rather than the host, because a drag routinely travels and ends outside the carousel and apointerupwe never heard would leave the cursor stuck ongrabbing— as would unmounting mid-drag, which the cleanup now also covers.scrollMode="native"keeps getting its cursor fromuseDragScroll(it dragsscrollLeft, not the pan gesture), which is brought in line with the same rule: it no longer stamps an idlegrabon the track, and it restores the original cursor on release instead of resetting tograb— previously it overwrote the track's own cursor for the lifetime of the component. - Dependency refresh, all within the current majors and validated against Expo SDK 57 (
expo install --checkreports the workspace aligned): -react-native0.86.0 → 0.86.2 (and@react-native/metro-configto match; both stay pinned as singletons in the rootpnpm.overrides) -react-native-reanimated4.5.0 → 4.5.1 andreact-native-worklets0.10.0 → 0.10.1 — the versions Expo SDK 57 expects -expo57.0.7 → 57.0.9 and the SDK-managed modules along with it (expo-router,expo-constants,expo-linking,expo-system-ui,expo-video,@expo/metro-runtime,expo-build-properties) -babel-preset-expo57.0.3 → 57.0.5, Storybook 10.5.3 → 10.5.5,@vitejs/plugin-react6.0.3 → 6.0.4,next16.2.10 → 16.2.12,@react-navigation/*patch bumps The vendoredexpo-modules-corepatch was re-pointed from 57.0.6 to 57.0.8 and still applies cleanly.expo-audiodeliberately stays on 57.0.2, where our native sampling patch is pinned. Peer requirements for consumers are unchanged. - Updated dependencies[edcec97]
- Updated dependencies[15a329c]
- Updated dependencies[59d065b] - @knitui/components@0.7.0 - @knitui/core@0.7.0 - @knitui/hooks@0.7.0 - @knitui/icons@0.7.0
@knitui/sheet
- Dependency refresh, all within the current majors and validated against Expo SDK 57 (
expo install --checkreports the workspace aligned): -react-native0.86.0 → 0.86.2 (and@react-native/metro-configto match; both stay pinned as singletons in the rootpnpm.overrides) -react-native-reanimated4.5.0 → 4.5.1 andreact-native-worklets0.10.0 → 0.10.1 — the versions Expo SDK 57 expects -expo57.0.7 → 57.0.9 and the SDK-managed modules along with it (expo-router,expo-constants,expo-linking,expo-system-ui,expo-video,@expo/metro-runtime,expo-build-properties) -babel-preset-expo57.0.3 → 57.0.5, Storybook 10.5.3 → 10.5.5,@vitejs/plugin-react6.0.3 → 6.0.4,next16.2.10 → 16.2.12,@react-navigation/*patch bumps The vendoredexpo-modules-corepatch was re-pointed from 57.0.6 to 57.0.8 and still applies cleanly.expo-audiodeliberately stays on 57.0.2, where our native sampling patch is pinned. Peer requirements for consumers are unchanged. - Updated dependencies[edcec97]
- Updated dependencies[15a329c]
- Updated dependencies[59d065b] - @knitui/components@0.7.0 - @knitui/core@0.7.0 - @knitui/hooks@0.7.0 - @knitui/icons@0.7.0
0.3.5
@knitui/carousel
- Point every
typesentry at the built declarations (lib/typescript/*.d.ts) instead of at the shipped TypeScript source. These packages ship their source and resolve it at runtime (source,react-nativeanddefaultall still point intosrc), buttypespointed there too — so a consumer'stsctypechecked the kit's raw source as part of their own build. That is slow, and it surfaces errors that depend on the consumer's own compiler settings, sinceskipLibCheckdoes not apply to.tssource files. Resolvingtypesto real.d.tsfiles makes declaration handling both faster and inert.@knitui/iconsalso addslib/typescripttofiles; its declarations were previously built but never published, so the newtypespath would not have existed in the tarball.@knitui/emojideliberately keepstypeson its source: its per-emoji modules ship as pre-generated.js/.d.tspairs insidesrc, whichtscdoes not re-emit, so its built barrel cannot resolve them. - Updated dependencies[487dce4]
- Updated dependencies[ffc254e]
- Updated dependencies[ffb4133]
- Updated dependencies[caa2d7e] - @knitui/components@0.6.1 - @knitui/core@0.6.1 - @knitui/hooks@0.6.1 - @knitui/icons@0.6.1
@knitui/sheet
- Point every
typesentry at the built declarations (lib/typescript/*.d.ts) instead of at the shipped TypeScript source. These packages ship their source and resolve it at runtime (source,react-nativeanddefaultall still point intosrc), buttypespointed there too — so a consumer'stsctypechecked the kit's raw source as part of their own build. That is slow, and it surfaces errors that depend on the consumer's own compiler settings, sinceskipLibCheckdoes not apply to.tssource files. Resolvingtypesto real.d.tsfiles makes declaration handling both faster and inert.@knitui/iconsalso addslib/typescripttofiles; its declarations were previously built but never published, so the newtypespath would not have existed in the tarball.@knitui/emojideliberately keepstypeson its source: its per-emoji modules ship as pre-generated.js/.d.tspairs insidesrc, whichtscdoes not re-emit, so its built barrel cannot resolve them. - Updated dependencies[487dce4]
- Updated dependencies[ffc254e]
- Updated dependencies[ffb4133]
- Updated dependencies[caa2d7e] - @knitui/components@0.6.1 - @knitui/core@0.6.1 - @knitui/hooks@0.6.1 - @knitui/icons@0.6.1
@knitui/plugins
- @knitui/core@0.14.0
0.3.4
@knitui/carousel
- Cut the per-frame and per-slide work the carousel does while scrolling Six verified hot paths, all in the scroll/fling loop: `modeConfig` was memoized by object identity.
modeConfigis documented (and used everywhere) as an inline literal, so it was a fresh object every render anduseLayoutrebuilt the layout worklet every render. That closure is a dependency of every mounted slide'suseAnimatedStyle, so Reanimated tore down and re-installed the style mapper of EVERY mounted slide on every render, the slideReact.memonever held, and on web the painter ran a fullpaintAll()over all entries. It is now compared shallowly and collapsed to a stable reference, so an unchanged config produces the same worklet. The public prop is unchanged — keep passing it inline. Every mounted slide had its own JS-thread listener on `offset` (web).scrollMode="native"mounts all slides —count * 3in loop mode — and each one subscribed tooffsetseparately. A 30-item looped rail therefore turned a singleoffset.valuewrite into 90 JS callbacks and 90 shared-value writes, on the main thread, for every scroll event the browser fired. There is now ONE listener in the track over a registered-slot map (the same design the web painter uses), computing the scroll position once: 90 callbacks → 1, 90 writes stay but cost one loop. The tracks are memoized.Track/NativeTrackre-rendered on every settled index change (once per page crossed during a fling), rebuilding the element — and re-runninggetItem/keyExtractor— for every mounted slide. Both are nowReact.memo; combined with themodeConfigfix every prop is identity-stable on such an internal re-render, so the slides are left alone.useResolvedSourcenow folds the source version into its accessor identity, which is what lets a memoized track still notice that an async page has landed. Slide content is deliberately NOT insulated from a parent re-render: makingrenderItem's identity permanently stable (a render-time ref proxy) would hold the memo across parent renders too, but it silently freezes slide content whenever an inlinerenderItemcloses over changed state — the classicFlatListextraDatabug. Two tests now guard that in both scroll modes. `onProgressChange`'s callback form is coalesced — a cadence change. The UI-thread reaction hopped to JS on every single frame while dragging or flinging; a consumer that puts the value in React state (the natural thing to write) paid a full render per frame, which is guaranteed jank on Android. The callback form is now throttled to ~30 Hz (one hop per 32 ms) and is always flushed with the exact final value when the scroll settles, so "where did we land" logic is unaffected — but a callback wired straight to an animation will now see roughly half as many samples. Pass aSharedValueinstead for per-frame fidelity: it is written on the UI thread with no hop, is unthrottled, and is now documented as the preferred form. Pagination derived selection per dot. Each dot installed its ownuseAnimatedReactionoverprogress, which the carousel writes every frame — one mapper evaluation per dot per frame on the UI thread, linear in dot count. The selected index is now derived ONCE per row (useSelectedIndex) and handed down as a boolean; a 10-dot row goes from 10 subscriptions to 1. Each dot keeps its own declarative transition, and the fill variants (Pagination.Basic/.Custom) keep their per-dot filluseAnimatedStyle. Minor behaviour change: at the loop seam the fill variants now select dot 0 (rounding wraps into real-item space) instead of selecting no dot at all. A side effect inside a `setState` updater.Trackassigned its travel direction inside thesetCenterreducer, which React may invoke twice (StrictMode / concurrent replay); the second pass compared against the already-advanced value and could record the wrong direction, costing a mis-aimed prefetch. It is now derived outside the updater against a ref. Also correcteduseSharedValueListener's docstring, which claimedaddListenerworks "on native and on web". In Reanimated 4 a listener can only be added on the UI runtime, so an ungated call from the JS thread throws on native — every call site is gated to web or lives in a.webfile, and the docstring now says so. The 3D layout worklets allocated a throwaway array per slide per frame.coverflow,flipandcubebuilt their transform as[...persp, …], which allocates an intermediatepersparray and then copies it element by element into the real one — multiplied by the mounted window size times the frame rate, on the UI thread on native, where the resulting GC pressure is visible as fling jank. The array is now built in one shot per branch, and theperspective > 0test and the axis/vertical choice are hoisted to closure-creation. The returned array stays fresh per call on purpose: reanimated converts it on assignment and it must not be reused or mutated. The web painter rewrote four style properties per slide per painted frame.opacity,zIndex,transformOriginandbackfaceVisibilitywere re-assigned every paint even though the defaultnormalLayoutemits none of them — four wasted CSSOM writes per slide per frame, each dirtying the element's inline style. They are now diffed against a per-entry cache, so the steady state is zero writes.transformis deliberately still written unconditionally:Item.webalso writes it viainitialStyle, so a cached value could read as already-applied and strand the slide at a stale transform. Each pagination dot re-rendered on every page change. Only one dot'sselectedflips, but every dot rebuilt itsuseReducedTransitionand its TamaguiCarouselDot.Dotis nowReact.memo'd, with the row stabilisingonPress(every caller writes it inline).renderDotis deliberately NOT stabilised — an inline renderer closes over its own state, and freezing it is theFlatListextraDatatrap. - Stop the icon barrel from being pulled into every component
@knitui/componentsdragged all ~6.1k icon modules into any app that imported a single component. The kit SRC-SHIPS, so Metro compiles what it resolves and does NOT tree-shake: one line ininternal/ControlIconProvider.tsx—import { IconProvider } from "@knitui/icons"— resolved the root barrel (packages/icons/src/index.ts, 378 KB / 6,153 export lines), and because that module is reachable fromButton,Chip,Accordionand friends, every glyph became part of the graph. Walking the import graph from each package entry, honouringexportsconditions and.web/.nativeorder: | entry | before | after | | -------------------- | ------------------------ | ---------------------- | |@knitui/components| 6,490 modules / 4,896 KB | 344 modules / 1,635 KB | |@knitui/sheet| 6,506 modules / 4,960 KB | 360 modules / 1,700 KB | |@knitui/carousel| 6,541 modules / 5,068 KB | 398 modules / 1,808 KB | |@knitui/media| 6,530 modules / 5,056 KB | 384 modules / 1,796 KB | That is −94.7% modules and −3,261 KB of source off the components graph, and it lands on Metro cold start, on every clear-cache rebuild, and on the JS bundle itself for consumers whose bundler cannot shake a src-shipped barrel. `@knitui/icons` gains two subpath exports (the minor): -@knitui/icons/context—IconProvider,useIconContextand their types -@knitui/icons/types—IconProps,IconNode,IconComponent,IconTypePer-glyph deep imports (@knitui/icons/IconCheck) already resolved through the existing./Icon*wildcard; the provider was the one thing that had no subpath and therefore forced the barrel. Nothing was removed — the root barrel still exports everything it did. Internal import rewrites (patch, no API change) across the shipped source of@knitui/components(ControlIconProvider,Accordion,Checkbox/CheckIcon,Chip,CloseButton,Combobox,Stepper),@knitui/carousel(Carousel) and@knitui/media(the audio/video chrome +LiveAudioMeter), each now naming the glyph module it actually uses. An ESLintno-restricted-importsguardrail ineslint.config.base.mjsblocks the bare@knitui/icons/@knitui/emojispecifier in shippedsrc/**so this cannot regress; stories, tests and the private@knitui/demogalleries (which render the whole registry on purpose) are exempt. Bundler hygiene, same theme: -sideEffectswas missing from@knitui/media,@knitui/sheetand@knitui/plugins, so webpack/Next had to keep every module of those packages even when nothing referenced it.mediaandsheetare declaredsideEffects: false(audited: their only module-scope statements are pure const initialisers and adisplayNameassignment — the oneregisterProcessor()call inmedialives inside an AudioWorklet source string, not in the module).pluginslists just itsbabel-pluginentry, which really does mutateprocess.env.TAMAGUI_IGNORE_BUNDLE_ERRORSon load. -@knitui/plugins/next-pluginnow setsexperimental.optimizePackageImportsfor@knitui/icons,@knitui/emoji,@knitui/components,@knitui/datesand@knitui/map, so every Next consumer inherits it instead of having to know. Next has to build a barrel's full module graph before it can shake it, andtranspilePackagesmeans it compiles the kit's source to do so — with this, a bare-barrel glyph import in app code is rewritten to that glyph's own module and the other 6,145 files are never compiled. Anyexperimentalthe app already set is merged, not replaced, and its ownoptimizePackageImportsentries are kept. - Updated dependencies[5f44d20]
- Updated dependencies[5f44d20]
- Updated dependencies[5f44d20]
- Updated dependencies[5f44d20]
- Updated dependencies[5f44d20]
- Updated dependencies[5f44d20]
- Updated dependencies[5f44d20]
- Updated dependencies[5f44d20]
- Updated dependencies[5c6d758] - @knitui/components@0.6.0 - @knitui/icons@0.6.0 - @knitui/core@0.6.0 - @knitui/hooks@0.6.0
@knitui/sheet
- Stop the icon barrel from being pulled into every component
@knitui/componentsdragged all ~6.1k icon modules into any app that imported a single component. The kit SRC-SHIPS, so Metro compiles what it resolves and does NOT tree-shake: one line ininternal/ControlIconProvider.tsx—import { IconProvider } from "@knitui/icons"— resolved the root barrel (packages/icons/src/index.ts, 378 KB / 6,153 export lines), and because that module is reachable fromButton,Chip,Accordionand friends, every glyph became part of the graph. Walking the import graph from each package entry, honouringexportsconditions and.web/.nativeorder: | entry | before | after | | -------------------- | ------------------------ | ---------------------- | |@knitui/components| 6,490 modules / 4,896 KB | 344 modules / 1,635 KB | |@knitui/sheet| 6,506 modules / 4,960 KB | 360 modules / 1,700 KB | |@knitui/carousel| 6,541 modules / 5,068 KB | 398 modules / 1,808 KB | |@knitui/media| 6,530 modules / 5,056 KB | 384 modules / 1,796 KB | That is −94.7% modules and −3,261 KB of source off the components graph, and it lands on Metro cold start, on every clear-cache rebuild, and on the JS bundle itself for consumers whose bundler cannot shake a src-shipped barrel. `@knitui/icons` gains two subpath exports (the minor): -@knitui/icons/context—IconProvider,useIconContextand their types -@knitui/icons/types—IconProps,IconNode,IconComponent,IconTypePer-glyph deep imports (@knitui/icons/IconCheck) already resolved through the existing./Icon*wildcard; the provider was the one thing that had no subpath and therefore forced the barrel. Nothing was removed — the root barrel still exports everything it did. Internal import rewrites (patch, no API change) across the shipped source of@knitui/components(ControlIconProvider,Accordion,Checkbox/CheckIcon,Chip,CloseButton,Combobox,Stepper),@knitui/carousel(Carousel) and@knitui/media(the audio/video chrome +LiveAudioMeter), each now naming the glyph module it actually uses. An ESLintno-restricted-importsguardrail ineslint.config.base.mjsblocks the bare@knitui/icons/@knitui/emojispecifier in shippedsrc/**so this cannot regress; stories, tests and the private@knitui/demogalleries (which render the whole registry on purpose) are exempt. Bundler hygiene, same theme: -sideEffectswas missing from@knitui/media,@knitui/sheetand@knitui/plugins, so webpack/Next had to keep every module of those packages even when nothing referenced it.mediaandsheetare declaredsideEffects: false(audited: their only module-scope statements are pure const initialisers and adisplayNameassignment — the oneregisterProcessor()call inmedialives inside an AudioWorklet source string, not in the module).pluginslists just itsbabel-pluginentry, which really does mutateprocess.env.TAMAGUI_IGNORE_BUNDLE_ERRORSon load. -@knitui/plugins/next-pluginnow setsexperimental.optimizePackageImportsfor@knitui/icons,@knitui/emoji,@knitui/components,@knitui/datesand@knitui/map, so every Next consumer inherits it instead of having to know. Next has to build a barrel's full module graph before it can shake it, andtranspilePackagesmeans it compiles the kit's source to do so — with this, a bare-barrel glyph import in app code is rewritten to that glyph's own module and the other 6,145 files are never compiled. Anyexperimentalthe app already set is merged, not replaced, and its ownoptimizePackageImportsentries are kept. - Stop overlays, scrolling and looping animations from doing per-frame work A pass over every hot path that runs while something is moving — a scroll, a drag, an open/close animation — removing work that ran once per frame and did not need to. Floating overlays (web) —
autoUpdate's scroll/resize/element-resize triggers are now coalesced into onerequestAnimationFrame. The capture-phasescrolllistener fires for every scrollable ancestor in the app, and each trigger ran a fullgetBoundingClientRect→computePosition→setStatecycle: layout reads interleaved with the previous pass's style writes, i.e. a forced synchronous reflow per event, several per frame. The first position is still computed synchronously, so nothing flashes at an un-positioned origin. The repositioning bail-out also stoppedJSON.stringify-ing both middleware-data bags (twice per pass, per open overlay) in favour of a shallow compare. `ScrollArea` — the scrollbar auto-hide no longer crosses the JS/UI boundary every frame on native:type="hover"/"scroll"(the default) needs only a boolean plus a trailing timer, so itsrunOnJShop is rate-limited on the UI thread, while a real consumer (onScrollPositionChange,onScrollEnd, the reach callbacks,stickToBottom,shadows) still gets every sample. The thumb's per-frame animated style carries a transform ONLY — the hover-grow inset moved into its own style — so a scroll no longer pushes layout props (left/right/height) through Yoga on every frame. Edge fades (shadows) keep four booleans in state instead of mirroring the raw offset, so a fling re-renders at most once per edge crossing rather than once per frame. The webResizeObserveris created once and its observations reconciled per commit, instead of being torn down and rebuilt over every child whenever the child count changed — which, for a windowed list inside aScrollArea, happened mid-fling on every window advance. Looping animations —Skeleton,Loader,ProgressandIndicatordeclare their loops unconditionally for stable hook order but render only some of them; every undisplayed loop was still scheduled, as a live compositor animation on web and awithRepeatre-evaluating a worklet every frame on native. ALoaderpaid for four, a staticIndicatorand a non-animateSkeletonfor one each. Loops are now scheduled only when they actually animate. `useReducedMotion` — one shared subscription per app instead of onematchMedia/AccessibilityInfolistener per component (nearly every animated part in the kit calls it), and the correct value on first render, removing a mount-time re-render per instance. `useElementSize` — bails when a re-measure reports the size it already had, so aResizeObserver/onLayoutre-fire from a visibility flip or a sibling's reflow no longer re-rendersCollapse/Spoiler/Marqueecontent. `Sheet` — the close watcher's gate is evaluated on the UI thread, so a dragging or springing panel stops waking the JS thread on every frame with an offset the subscriber immediately discards. `Sheet`'s pan gesture was rebuilt on every render.animationConfigis a flat record that every call site writes inline, and it is a dependency ofuseSheetDrag'suseMemo— so a fresh identity rebuilt theGesture.Pan()object each render, and RNGH responds by tearing down and re-attaching the native gesture handler. Mid-drag, that is a dropped gesture. It is now collapsed to a stable reference while its values are unchanged, via a new internaluseStableRecord(with tests) — the sibling of carousel'smodeConfigstabilisation and map'suseStableStyleValue.withAnimation/gestureConfigare deliberately left alone: they are functions consumed inside worklets, where a JS-thread ref wrapper would break worklet semantics. No public API changes;useLoopingAnimation(internal) gained anenabledoption. - Updated dependencies[5f44d20]
- Updated dependencies[5f44d20]
- Updated dependencies[5f44d20]
- Updated dependencies[5f44d20]
- Updated dependencies[5f44d20]
- Updated dependencies[5f44d20]
- Updated dependencies[5f44d20]
- Updated dependencies[5f44d20]
- Updated dependencies[5c6d758] - @knitui/components@0.6.0 - @knitui/icons@0.6.0 - @knitui/core@0.6.0 - @knitui/hooks@0.6.0
@knitui/plugins
- Updated dependencies[633e669] - @knitui/core@0.13.0
0.3.3
@knitui/carousel
- Updated dependencies[4f7830c] - @knitui/components@0.5.0 - @knitui/core@0.5.0 - @knitui/hooks@0.5.0 - @knitui/icons@0.5.0
@knitui/media
- Point every
typesentry at the built declarations (lib/typescript/*.d.ts) instead of at the shipped TypeScript source. These packages ship their source and resolve it at runtime (source,react-nativeanddefaultall still point intosrc), buttypespointed there too — so a consumer'stsctypechecked the kit's raw source as part of their own build. That is slow, and it surfaces errors that depend on the consumer's own compiler settings, sinceskipLibCheckdoes not apply to.tssource files. Resolvingtypesto real.d.tsfiles makes declaration handling both faster and inert.@knitui/iconsalso addslib/typescripttofiles; its declarations were previously built but never published, so the newtypespath would not have existed in the tarball.@knitui/emojideliberately keepstypeson its source: its per-emoji modules ship as pre-generated.js/.d.tspairs insidesrc, whichtscdoes not re-emit, so its built barrel cannot resolve them. - Updated dependencies[487dce4]
- Updated dependencies[ffc254e]
- Updated dependencies[ffb4133]
- Updated dependencies[caa2d7e] - @knitui/components@0.6.1 - @knitui/core@0.6.1 - @knitui/hooks@0.6.1 - @knitui/icons@0.6.1
@knitui/sheet
- Updated dependencies[4f7830c] - @knitui/components@0.5.0 - @knitui/core@0.5.0 - @knitui/hooks@0.5.0 - @knitui/icons@0.5.0
@knitui/plugins
- @knitui/core@0.12.2
0.3.2
@knitui/carousel
- Updated dependencies[5b5a3e0] - @knitui/components@0.4.0 - @knitui/core@0.4.0 - @knitui/hooks@0.4.0 - @knitui/icons@0.4.0
@knitui/media
- Stop the icon barrel from being pulled into every component
@knitui/componentsdragged all ~6.1k icon modules into any app that imported a single component. The kit SRC-SHIPS, so Metro compiles what it resolves and does NOT tree-shake: one line ininternal/ControlIconProvider.tsx—import { IconProvider } from "@knitui/icons"— resolved the root barrel (packages/icons/src/index.ts, 378 KB / 6,153 export lines), and because that module is reachable fromButton,Chip,Accordionand friends, every glyph became part of the graph. Walking the import graph from each package entry, honouringexportsconditions and.web/.nativeorder: | entry | before | after | | -------------------- | ------------------------ | ---------------------- | |@knitui/components| 6,490 modules / 4,896 KB | 344 modules / 1,635 KB | |@knitui/sheet| 6,506 modules / 4,960 KB | 360 modules / 1,700 KB | |@knitui/carousel| 6,541 modules / 5,068 KB | 398 modules / 1,808 KB | |@knitui/media| 6,530 modules / 5,056 KB | 384 modules / 1,796 KB | That is −94.7% modules and −3,261 KB of source off the components graph, and it lands on Metro cold start, on every clear-cache rebuild, and on the JS bundle itself for consumers whose bundler cannot shake a src-shipped barrel. `@knitui/icons` gains two subpath exports (the minor): -@knitui/icons/context—IconProvider,useIconContextand their types -@knitui/icons/types—IconProps,IconNode,IconComponent,IconTypePer-glyph deep imports (@knitui/icons/IconCheck) already resolved through the existing./Icon*wildcard; the provider was the one thing that had no subpath and therefore forced the barrel. Nothing was removed — the root barrel still exports everything it did. Internal import rewrites (patch, no API change) across the shipped source of@knitui/components(ControlIconProvider,Accordion,Checkbox/CheckIcon,Chip,CloseButton,Combobox,Stepper),@knitui/carousel(Carousel) and@knitui/media(the audio/video chrome +LiveAudioMeter), each now naming the glyph module it actually uses. An ESLintno-restricted-importsguardrail ineslint.config.base.mjsblocks the bare@knitui/icons/@knitui/emojispecifier in shippedsrc/**so this cannot regress; stories, tests and the private@knitui/demogalleries (which render the whole registry on purpose) are exempt. Bundler hygiene, same theme: -sideEffectswas missing from@knitui/media,@knitui/sheetand@knitui/plugins, so webpack/Next had to keep every module of those packages even when nothing referenced it.mediaandsheetare declaredsideEffects: false(audited: their only module-scope statements are pure const initialisers and adisplayNameassignment — the oneregisterProcessor()call inmedialives inside an AudioWorklet source string, not in the module).pluginslists just itsbabel-pluginentry, which really does mutateprocess.env.TAMAGUI_IGNORE_BUNDLE_ERRORSon load. -@knitui/plugins/next-pluginnow setsexperimental.optimizePackageImportsfor@knitui/icons,@knitui/emoji,@knitui/components,@knitui/datesand@knitui/map, so every Next consumer inherits it instead of having to know. Next has to build a barrel's full module graph before it can shake it, andtranspilePackagesmeans it compiles the kit's source to do so — with this, a bare-barrel glyph import in app code is rewritten to that glyph's own module and the other 6,145 files are never compiled. Anyexperimentalthe app already set is merged, not replaced, and its ownoptimizePackageImportsentries are kept. - Take the allocations out of the audio sampler and the Skia visualizer's paint The media store's design was already right — per-field channels, auto-tracked selectors, one FFT per painted frame — so this is a pass over the two paths that run at 60 Hz rather than at tick rate: the PCM sample bridge and the visualizer painter. The sampler did full peak/RMS work per frame, before the silence gate, and even when nothing was listening. The backend posts a ~2048-frame window per display frame for as long as sampling is on, and
setSamplingEnabledis driven by mount effects that can outlive the visualizer that asked for it — so with nosampleUpdatelistener at all, every frame still allocated a channel array (.map) plus a result object and walked every frame twice (peakOfthenrmsOf, ≈245k typed-array reads/second on a stereo source), only foremitSampleto then drop it at the silence gate. The handler now returns onhasListeners("sampleUpdate")as its first statement (the same gatetimeUpdatealready had), fuses peak and RMS into ONE pass over the frames (≈123k reads/second, byte-identical results — the per-channel clamps land exactly wherepeakOf/rmsOfapplied them), and refills a reused channel list + envelope instead of allocating two objects per frame.AudioSampleDataalready documented its buffers as read-synchronously; that now explicitly covers the channel list too.mixChannelstakes an optional result object for the same reason. Time labels subscribed to a raw float although `formatTime` floors to seconds.useAudioState(s => s.currentTime)failsObject.ison every tick, so the<Text>re-rendered at tick rate — 4 Hz on video, higher on native audio — and 3 of every 4 renders produced a byte-identical string. The five timecode labels (TimeCurrentandTimeDisplayon<Audio>,<Video>and<AudioPlaylist>) now selectMath.floor(s.currentTime). The scrubbers keep the float — they need sub-second thumb positions. `useMediaSelector` allocated a `Proxy` and a sorted key signature per notification AND per render. Every store change per subscribed leaf built a fresh trackingProxyinrunTracked, a[...keys].map(String).sort().join()inregister(), then a secondProxy+ signature during the re-render and a third signature in the post-commit effect — ≈3 proxies and 3 sorted strings per leaf per tick. Snapshots are immutable, so the tracking proxy is now cached per snapshot identity in aWeakMap(one proxy serves every leaf that reads that snapshot, and it dies with it) and the tracked key set is compared by size + membership against the registered list, so the steady state allocates nothing. This is noise at the current 4 Hz tick and stops being noise the moment a caller drives position at frame rate. The visualizer built 2 Skia host objects per bar, per frame.Skia.XYWHRect+Skia.RRectXYeach return a real host object — a JSIHostObjectholding a C++shared_ptron native, aJsiSkRectwrapping a freshFloat32Arrayon web — sovariant="mirror"at the defaultcount=48created and discarded 96 of them per painted frame, ≈5,800/second, on the UI thread. Both bindings also accept a plain object and copy out of it synchronously (JsiSkRect::fromValue/JsiSkRRect::fromValue, and their web twins), so the fill builder now reuses ONE mutable rect/rrect pair for the whole frame: 96 host objects per frame → 2 plain objects. The resultingSkRRectcomes from the identicalSkRRect::MakeRectXYcall, and a zero radius takesaddRect, which is what Skia'saddRRectdegenerates to for a radius-less rrect — the drawn path is unchanged, and a new suite records the exact op sequence (addRRect/addRect/addCircle/moveTo/lineTo/close) with the values each call received to keep it that way. And it rebuilt the whole shape list as objects every frame to hand it to the builder in the next statement. AuseDerivedValuepublishedcountfresh{kind,x,y,w,h,r}objects plus a fresh array into a SharedValue per frame (≈2,900 objects/second at the defaultcount, plus another array whenevergain/floor/reversewas set), read once by the two path worklets and thrown away. Each variant now also exists as a writer into a flatFloat64Arraythat the component owns and reuses forever, and geometry + path building are fused into the two path worklets, so the intermediate never exists: the steady-state paint allocates nothing but theSkPathitself.strokeWidthno longer builds acount-length zero array and runs the whole variant to read one number either. The cost is one extra variant pass per frame (pure arithmetic into a buffer) in exchange for a SharedValue write, a mapper, and every allocation on the path.Float64Arrayrather thanFloat32Arrayso the coordinates round-trip exactly.VisualizerVariant,registerVisualizerVariantand the six exported variants are UNCHANGED — the object-shaped variants are now thin decoders over their writers (one implementation of each variant's geometry, so the two forms cannot drift), and a foreign variant is adapted by a shim that encodes its returned shapes, paying exactly the allocation it paid before. `<AudioMesh>` repainted a full-canvas fragment shader 60 times a second even with its drift frozen. It drove its uniforms from Skia'suseClock(), whose frame callback runs for as long as the component is mounted; every tick dirtied the uniforms mapper, soprefers-reduced-motion(which pins the drift att = 0) andspeed={0}(documented as "freezes the orbit") both kept rebuilding uniforms and repainting pixel-identical output forever. The clock is now local and stopped whenever the drift is frozen — no writes, so no mapper run, so no repaint — and a frozen mesh repaints only when the AUDIO moves it. Its uniforms also go into buffers the component owns (buildMeshUniformsInto): 3 arrays + a[w, h]tuple + the record per frame → just the record, which has to stay fresh or reanimated skips the SharedValue write and<Shader>never sees the frame.buildMeshUniformskeeps its exact allocating shape for other callers, over the same single implementation of the math. Also, in the same spirit: -useVisualizerSourcebuilt a${count}|${fftScale}|…|${bins}memo key on EVERY pushed FFT row (up to display rate) to prove nothing had changed; the mapper cache now lives in the reducer's closure, keyed by the settings, so only the pushed length is compared. -TypedEmitter.emitcopied its listenerSetinto a fresh array on every emit — including per audio frame. The single-listener case (a visualizer onsampleUpdate, a scrubber ontimeUpdate) now dispatches without the copy, with identical semantics: a listener it removes was already dispatched, and one it ADDS is still not delivered to in the same emit (which plain live iteration WOULD do — aSetgrown during iteration yields the new entries; there is a test for exactly that). - The mic-stream reductions (frameFromTimeDomain, nativeuseAudioStream) write the envelope straight into the frame/level object through a reused one-slot channel list: 3 allocations per captured buffer → 1 (the level object stays fresh — it is handed toonLeveland to React state). No public API changes in either package. Deferred: movinguseLevelTransition's smoother from the JS thread onto the UI thread, and/or publishing its eased row as a ping-ponged typed array (today: 60 boxed 48-element arrays per second, each converted element-by-element into a reanimated serializable on native — a sharedArrayBufferwould skip both). The allocation counts are certain, but it touches the documented Reanimated-4 SharedValue rules, changes the publicSharedValue<number[]>level type, and trades a fresh-array-per-frame guarantee for double buffering, so the win wants on-device measurement first. - Updated dependencies[5f44d20]
- Updated dependencies[5f44d20]
- Updated dependencies[5f44d20]
- Updated dependencies[5f44d20]
- Updated dependencies[5f44d20]
- Updated dependencies[5f44d20]
- Updated dependencies[5f44d20]
- Updated dependencies[5f44d20]
- Updated dependencies[5c6d758] - @knitui/components@0.6.0 - @knitui/icons@0.6.0 - @knitui/core@0.6.0 - @knitui/hooks@0.6.0
@knitui/sheet
- Updated dependencies[5b5a3e0] - @knitui/components@0.4.0 - @knitui/core@0.4.0 - @knitui/hooks@0.4.0 - @knitui/icons@0.4.0
@knitui/plugins
- @knitui/core@0.12.1
0.3.1
@knitui/carousel
- Updated dependencies[89f8c36] - @knitui/components@0.3.0 - @knitui/core@0.3.0 - @knitui/hooks@0.3.0 - @knitui/icons@0.3.0
@knitui/map
- Fix
SvgImageicons rendering larger on iOS than on Android/web. react-native-svg'stoDataURLbakes the device scale (UIScreen.scale, e.g. 3×) into the rasterized bitmap on iOS but not on Android/web, so registering the icon withscale = pixelRatioleft iOS iconsUIScreen.scale× too big. The rasterizer now derives the registered density from the bitmap's real pixel width (read from the PNG header), so an icon renders at its logicalwidth/heightidentically on web, iOS, and Android.
@knitui/media
- Align published dependency ranges with Expo SDK 57 The SDK pins exact versions for its native modules, and several of our published ranges had drifted from that set. Consumers on SDK 57 were resolving versions the SDK's prebuilt binaries don't expect, which fails at runtime rather than at build time. -
@knitui/components:expo-image~57.0.0→~57.0.1-@knitui/core:@tamagui/*^2.3.0→^2.4.6-@knitui/media:expo-audio~57.0.0→~57.0.2,expo-video~57.0.0→~57.0.1-@knitui/plugins:@tamagui/babel-plugin^2.3.0→^2.4.6@knitui/graphicsis a minor rather than a patch because its@shopify/react-native-skiapeer is an exact pin and moves2.6.6→2.6.2, which is the version Expo SDK 57 expects. Consumers currently pinned to2.6.6will need to move to2.6.2to satisfy the peer. - Updated dependencies[4f7830c] - @knitui/components@0.5.0 - @knitui/core@0.5.0 - @knitui/hooks@0.5.0 - @knitui/icons@0.5.0
@knitui/sheet
- Updated dependencies[89f8c36] - @knitui/components@0.3.0 - @knitui/core@0.3.0 - @knitui/hooks@0.3.0 - @knitui/icons@0.3.0
@knitui/plugins
- @knitui/core@0.12.0
0.3.0
@knitui/components
- minor chore(deps): move the supported baseline to Expo SDK 57 and Next.js 16. Upgrades the kit's external toolchain to the latest majors: - Expo SDK 56 → 57 —
react-native0.85.3 → 0.86.0,react-native-reanimated4.3.1 → 4.5.0,react-native-worklets0.8.3 → 0.10.0,react-native-gesture-handler~2.31 → ~2.32,babel-preset-expo→ ^57, and allexpo-*packages to their SDK 57 versions. React stays 19.2.3. - Next.js 15 → 16 — the web app opts back into the webpack builder (next build loader yet. Consumer-facing dependency changes: -@knitui/componentsnow depends onexpo-image~57.0.0(was a stale~2.4.1), which also resolves the Expo SDK 56 Android startup crash consumers hit from the old pin. -@knitui/medianow depends onexpo-audio/expo-video~57.0.0. The two version-pinned pnpm patches (expo-audio,expo-modules-core) were migrated to their SDK 57 releases and still apply. Everything typechecks and builds (28/28 turbo tasks, the Expo apptsc`, and the Next.js 16 production build). - @knitui/core@0.3.0
- @knitui/hooks@0.3.0
- @knitui/icons@0.3.0
@knitui/hooks
- @knitui/core@0.3.0
@knitui/dates
- Updated dependencies[89f8c36] - @knitui/components@0.3.0 - @knitui/core@0.3.0 - @knitui/hooks@0.3.0
@knitui/carousel
- minor feat(carousel): add
SwipeDeck— a Tinder-style, cross-platform (React Native + Web) swipe deck. The top card free-drags in 2-D and commits a like / nope / super-like past a directional threshold (distance or flick velocity), flying off while the next card rises. The visual is a pluggable effect (tinder/stack/fan/swipe, or a custom worklet), driven by a richerDeckCardState(animated stackdepth+ live drag) — the deck's analogue of the carousel's scalarprogress. Includes per-direction stamps (customrenderStampor built-instampLabels), an imperativeref(swipe/swipeLeft/swipeRight/swipeUp/getActiveIndex),onSwipe*/onActiveIndexChange/onEmptycallbacks,renderEmpty, a mounted-windowstackSize, and the kit's standardstylesper-slot map (root/card/stamp). Additive — no changes to the existing<Carousel>/<Pagination>surface.
@knitui/map
- minor Fix native
SvgImage/Imagescrash and correct high-density icon sizing. - Crash fix.@maplibre/maplibre-react-nativeresolves an object-form imagesourceviaImage.resolveAssetSource, which returnsnullfor a bare string (adata:URI from the SVG rasterizer, or a remote URL) and then throwsTypeError: Cannot read property 'uri' of null. The nativeImagesadapter now wraps a stringsourceinto{ uri }so it resolves correctly. This is what broke SDF/object icons on Android and iOS. - Correct `pixelRatio` sizing. The rasterizer upscales the bitmap bypixelRatiofor crispness, but the extra density was never registered, so raster icons drewpixelRatio×too big (previously worked around withiconSize).SvgImagenow registers the bitmap's density asscale— passed through tomap.addImage({ pixelRatio })on web and to the native image source{ uri, scale }(iOSUIImage.scale/ Androidbitmap.setDensity) — so an icon renders at its logicalwidth/heightregardless ofpixelRatio. Behavior change: if you setpixelRatioand compensated with a fractionaliconSize(e.g.iconSize: 0.5forpixelRatio: 2), drop that compensation and useiconSize: 1(or your intended size). SDF icons at the defaultpixelRatioof 1 are unaffected.
@knitui/media
- minor Expose the media store for custom chrome, and harden the audio recorder - Selector hooks —
useMediaSelector,shallowEqualand theMediaStorecontract are now public from both@knitui/media/audioand@knitui/media/video, alongside per-surfaceuseAudioState,useVideoState,useRecorderStateandusePlaylistState(plusAudioContext). Custom chrome can now subscribe to exactly the fields it renders instead of re-rendering on every controller tick. - `setAudioMode` — fix a hard webpack/Next build failure. The web backend does not exportrequestNotificationPermissionsAsync, and a named import of a missing binding is an "Attempted import error" even behind a runtime guard. The module now takes a namespace import so the lookup defers to runtime. - `AudioRecorder` — a denied mic prompt or a faultedstop()no longer strands the recorder mid-recordingor surfaces as an unhandled rejection; both land in the terminalerrorstate and recover on retry. - `shouldCorrectPitch` — seed the initial state from the browser default on web rather than from expo'splayer.shouldCorrectPitch, which readsfalseuntil the firstsetPlaybackRateand so misreported correction as off. - `useAudioStream` — document thatchannelsis native-only; the web backend always down-mixes to mono and reports1regardless of the request. - Updated dependencies[5b5a3e0] - @knitui/components@0.4.0 - @knitui/core@0.4.0 - @knitui/hooks@0.4.0 - @knitui/icons@0.4.0
@knitui/graphics
- Updated dependencies[89f8c36] - @knitui/components@0.3.0 - @knitui/core@0.3.0
@knitui/sheet
- minor Sheet.Header / Sheet.Footer: fixed slots around the scrollable content. The slot system gains two fixed (non-scrolling) regions that frame a
Sheet.ScrollView: -Sheet.Header— pinned below the drag handle and above the content. A good home for a title, tabs, or a segmented control that must stay put while the body scrolls. -Sheet.Footer— pinned below the content. A good home for an action bar (e.g. a "Done" button) that stays visible regardless of scroll position. Both arestyled(Box)parts withflexShrink: 0, so a nestedSheet.ScrollView(flex: 1) fills and scrolls the space between them. They are opt-in markers (rendered only when present) and are targetable via the per-slotstylesmap (styles={{ header, footer }}) alongside the existingroot/overlay/handleslots.
@knitui/mediaquery
- @knitui/core@0.3.0
- @knitui/hooks@0.3.0
@knitui/plugins
- minor Platform services, so apps never import
react-nativefor them. -@knitui/core:isIos/isAndroidalongsideisWeb; a structuralPressEventtype (likeLayoutChangeEvent). -@knitui/hooks:getAppState()/subscribeAppState()(the imperative half ofuseAppState, which now runs on them viauseSyncExternalStore; web also reportspagehideasbackground),getViewportSize(),openURL()/canOpenURL()/openAppSettings(),share()(nativeShare/ Web Share API, per-platform URL handling), andannounce()(VoiceOver/TalkBack on native, a lazily mounted live region on web). WebopenURLdetaches the new tab by hand instead ofnoopener, which makeswindow.openreturnnulleven on success. -@knitui/plugins/next:NextTamaguiProvidertakesconfigandexclude, for apps that build their config at runtime. - Updated dependencies[c843078] - @knitui/core@0.11.0
0.2.1
@knitui/plugins
- @knitui/core@0.10.0
0.2.0
@knitui/core
- minor Add the theme builder to
@knitui/core, so consumers can brand and extend the kit's theme without editing source. New exports: -createTheme(options)— build a fully-configured Tamagui config from brand inputs. Every option is optional and layers onto the kit's stock defaults:brand/neutral/accentspalettes (a hex seed with an auto-derived 12-step ramp, a@tamagui/colorsname,{ light, dark }seeds, or explicit ramps),includeDefaultAccents/includeTamaguiColors,radius/space/size/fontSizesscale presets or per-step overrides,zIndex, rawcolors,fonts,breakpoints/media,animations/shorthands/settings, andthemeBuilder/themes/tamaguiescape hatches. -extendTheme(...optionSets)— deep-merge option sets left-to-right, then build. -mergeThemeOptions(...optionSets)— same merge, returns the options (no build). -defineTheme(options)— identity helper that preserves literal types. -themePresets— curated starting points (minimal/vibrant/professional). - Palette utilities:resolvePalette,rampFromHex,isColorName,isHex,TAMAGUI_COLOR_NAMES, the scale presets, andvalidateThemeOptions. Options are strictly validated (unknown option / scale step / preset, malformed hex, unknown color name, wrong-length ramp, reserved accent name, undefineddefaultFont) with actionable "did you mean …?" messages.<Provider>now accepts an optionalconfigprop (falls back to the built-in config) so builder output can be applied. The existing stock config is unchanged. - Add
@knitui/mediaquery: cross-platform, SSR-safe media queries and responsive breakpoints for web (Next.js) and React Native (Expo). ShipsuseMediaQuery(matchMedia string or structured descriptor),useBreakpoint/useBreakpointValueover the shared@knitui/corebreakpoint scale, an optionalMediaQueryProviderwithUser-Agentdevice seeding for SSR, and a pure query engine (parseMediaQuery/matchesQuery/queryToString).@knitui/corenow re-exports itsbreakpointsscale.
@knitui/components
- Updated dependencies[c346356]
- Updated dependencies[737463e] - @knitui/core@0.2.0 - @knitui/hooks@0.2.0 - @knitui/icons@0.2.0
@knitui/hooks
- Updated dependencies[c346356]
- Updated dependencies[737463e] - @knitui/core@0.2.0
@knitui/emoji
- minor Add
@knitui/emoji: a cross-platform (React + React Native) emoji kit generated from Google Noto Emoji SVG data. Each emoji is parsed once at generate time into a render-ready node tree (no runtime XML parsing on native, DOM<svg>on web), with per-emoji id namespacing and.js+.d.tsoutput so the ~3.8k modules stay tree-shakeable and cheap to typecheck. Exposes namedEmoji*components, per-emoji subpath imports, a dynamic name-basedEmoji, and anEmojiProviderfor ambient size.
@knitui/dates
- Updated dependencies[c346356]
- Updated dependencies[737463e] - @knitui/core@0.2.0 - @knitui/components@0.2.0 - @knitui/hooks@0.2.0
@knitui/carousel
- minor feat(carousel): support
loopinscrollMode="native"Native scroll mode now honoursloopinstead of forcing it off (and no longer warns whenloopis requested). Looping is realised by cloning the data ringLOOP_COPIEStimes in the scroll content and silently recentring the scroll position into the middle copy on settle — the jump is exactly one ring of pixel-identical clones, so it's invisible, and mod-invariant to the engine's progress/index math. Programmaticnext/prev/scrollTotravel to the nearest ring copy (shortest visual path). Works on web and native, horizontal and vertical;loop={false}keeps the finite start-aligned behaviour.
@knitui/map
- minor SvgImage: reliable cross-platform SVG marker icons, unified on react-native-svg. SVG resources are now rasterized to a bitmap via
react-native-svgon both web and native (identical output on each platform), then drawn on the GPU as MapLibreSymbolLayericons — one texture backs thousands of markers with no per-marker DOM or native view. This fixes native, where MapLibre can't decode SVG icons and the previous capture (an offscreen surface nested inside the native MapView) often never painted on the New Architecture, so markers never appeared. The rasterization surface now mounts in a dedicatedRasterizerHostthat sits outside the map view (a sibling, driven by a shared, ref-counted, content-keyed store), so it paints reliably and identical icons are rasterized only once. New/changed API: -SvgImagenow also accepts auri— an.svg/data:image/svg+xmlURL is fetched and rasterized; any other URL (.png, …) is registered directly. Inlinesvgand pre-rasterizedsourcestill work, so this is backwards compatible. - NewSvgImagescomponent registers several icons at once — handy with a data-driveniconImageexpression for many marker types in a single GPU layer. - New exports:useRasterizedSvg,resolveSvgSize,useSvgMarkup,isSvgMarkup,isSvgUri,resolvePassthrough, and theSvgImageEntry/SvgImagesPropstypes. Note: because web now rasterizes throughreact-native-svg, consuming the map on web requires the standardreact-native→react-native-webalias (already present in every Expo / RN-web app, and in this package's Storybook).
@knitui/media
- minor chore(deps): move the supported baseline to Expo SDK 57 and Next.js 16. Upgrades the kit's external toolchain to the latest majors: - Expo SDK 56 → 57 —
react-native0.85.3 → 0.86.0,react-native-reanimated4.3.1 → 4.5.0,react-native-worklets0.8.3 → 0.10.0,react-native-gesture-handler~2.31 → ~2.32,babel-preset-expo→ ^57, and allexpo-*packages to their SDK 57 versions. React stays 19.2.3. - Next.js 15 → 16 — the web app opts back into the webpack builder (next build loader yet. Consumer-facing dependency changes: -@knitui/componentsnow depends onexpo-image~57.0.0(was a stale~2.4.1), which also resolves the Expo SDK 56 Android startup crash consumers hit from the old pin. -@knitui/medianow depends onexpo-audio/expo-video~57.0.0. The two version-pinned pnpm patches (expo-audio,expo-modules-core) were migrated to their SDK 57 releases and still apply. Everything typechecks and builds (28/28 turbo tasks, the Expo apptsc`, and the Next.js 16 production build). - Updated dependencies[89f8c36] - @knitui/components@0.3.0 - @knitui/core@0.3.0 - @knitui/hooks@0.3.0 - @knitui/icons@0.3.0
@knitui/graphics
- Updated dependencies[c346356]
- Updated dependencies[737463e] - @knitui/core@0.2.0 - @knitui/components@0.2.0
@knitui/sheet
- minor Sheet.ScrollView: scroll↔drag handoff on React Native (nested scroll fix). A
Sheet.ScrollViewnested in the panel now cooperates with the sheet's drag gesture instead of fighting it. Previously the sheet's pan claimed every vertical drag, so the inner list wouldn't scroll on native. The two are now coordinated so a single vertical drag either moves the sheet or scrolls the list — never both: - At the top snap the list scrolls normally. Drag it back to the top and keep pulling down and the sheet takes over (collapses toward the next snap, then dismisses), with the panel's motion anchored to the finger so there's no jump. - From a partially-open snap the drag moves the sheet, and the list stays pinned to the top so it can't scroll mid-collapse. - A downward fling on the list no longer collapses the sheet. Implementation notes: - On native,Sheet.ScrollViewis a purpose-builtAnimated.ScrollViewbound to the sheet'sGesture.Native(so the two recognise simultaneously) and reports its scroll offset back to the pan; it uses the platform scroll indicators. On web it stays aScrollAreawrapper (the browser owns nested scrolling), so behaviour there is unchanged. - The handoff decision logic lives in a pure, unit-tested engine module (engine/handoff.ts); no public API changed.
@knitui/mediaquery
- minor Add
@knitui/mediaquery: cross-platform, SSR-safe media queries and responsive breakpoints for web (Next.js) and React Native (Expo). ShipsuseMediaQuery(matchMedia string or structured descriptor),useBreakpoint/useBreakpointValueover the shared@knitui/corebreakpoint scale, an optionalMediaQueryProviderwithUser-Agentdevice seeding for SSR, and a pure query engine (parseMediaQuery/matchesQuery/queryToString).@knitui/corenow re-exports itsbreakpointsscale. - Updated dependencies[c346356]
- Updated dependencies[737463e] - @knitui/core@0.2.0 - @knitui/hooks@0.2.0
@knitui/plugins
- minor Refresh dependencies to the latest Expo SDK 57 releases. - core / components / plugins: Tamagui 2.4.6 → 2.7.7 (pinned exactly, so the babel plugin and runtime always match) and
react-native-teleport1.1.7 → 1.2.2. The teleport AndroidprepareToRecycleViewfix is now upstream, so the local patch is gone.expo-image→ ~57.0.5. - map: now targetsmaplibre-glv6 on web (peer^6, was^5) and@maplibre/maplibre-react-native^11.4.0 on native. Both use@maplibre/maplibre-gl-style-spec26. maplibre v6 is ESM-only and has no default export; the map package now imports it as a namespace. If your web app importsmaplibre-glitself, update it to v6. The canvas-leave handlers now listen tomouseout: v6 only firesmouseleavefor layer-scoped listeners, so the long-press/cursor reset on leaving the map never ran. - media:expo-audio→ ~57.0.5,expo-video→ ~57.0.4. - Updated dependencies[bf9eeb1] - @knitui/core@0.9.0
0.1.12
@knitui/plugins
- @knitui/core@0.8.1
0.1.11
@knitui/plugins
- Updated dependencies[8de27f7]
- Updated dependencies[85594a1] - @knitui/core@0.8.0
0.1.10
@knitui/plugins
- Dependency refresh, all within the current majors and validated against Expo SDK 57 (
expo install --checkreports the workspace aligned): -react-native0.86.0 → 0.86.2 (and@react-native/metro-configto match; both stay pinned as singletons in the rootpnpm.overrides) -react-native-reanimated4.5.0 → 4.5.1 andreact-native-worklets0.10.0 → 0.10.1 — the versions Expo SDK 57 expects -expo57.0.7 → 57.0.9 and the SDK-managed modules along with it (expo-router,expo-constants,expo-linking,expo-system-ui,expo-video,@expo/metro-runtime,expo-build-properties) -babel-preset-expo57.0.3 → 57.0.5, Storybook 10.5.3 → 10.5.5,@vitejs/plugin-react6.0.3 → 6.0.4,next16.2.10 → 16.2.12,@react-navigation/*patch bumps The vendoredexpo-modules-corepatch was re-pointed from 57.0.6 to 57.0.8 and still applies cleanly.expo-audiodeliberately stays on 57.0.2, where our native sampling patch is pinned. Peer requirements for consumers are unchanged. - Updated dependencies[59d065b] - @knitui/core@0.7.0
0.1.9
@knitui/plugins
- Updated dependencies[ffc254e]
- Updated dependencies[caa2d7e] - @knitui/core@0.6.1
0.1.8
@knitui/plugins
- Stop the icon barrel from being pulled into every component
@knitui/componentsdragged all ~6.1k icon modules into any app that imported a single component. The kit SRC-SHIPS, so Metro compiles what it resolves and does NOT tree-shake: one line ininternal/ControlIconProvider.tsx—import { IconProvider } from "@knitui/icons"— resolved the root barrel (packages/icons/src/index.ts, 378 KB / 6,153 export lines), and because that module is reachable fromButton,Chip,Accordionand friends, every glyph became part of the graph. Walking the import graph from each package entry, honouringexportsconditions and.web/.nativeorder: | entry | before | after | | -------------------- | ------------------------ | ---------------------- | |@knitui/components| 6,490 modules / 4,896 KB | 344 modules / 1,635 KB | |@knitui/sheet| 6,506 modules / 4,960 KB | 360 modules / 1,700 KB | |@knitui/carousel| 6,541 modules / 5,068 KB | 398 modules / 1,808 KB | |@knitui/media| 6,530 modules / 5,056 KB | 384 modules / 1,796 KB | That is −94.7% modules and −3,261 KB of source off the components graph, and it lands on Metro cold start, on every clear-cache rebuild, and on the JS bundle itself for consumers whose bundler cannot shake a src-shipped barrel. `@knitui/icons` gains two subpath exports (the minor): -@knitui/icons/context—IconProvider,useIconContextand their types -@knitui/icons/types—IconProps,IconNode,IconComponent,IconTypePer-glyph deep imports (@knitui/icons/IconCheck) already resolved through the existing./Icon*wildcard; the provider was the one thing that had no subpath and therefore forced the barrel. Nothing was removed — the root barrel still exports everything it did. Internal import rewrites (patch, no API change) across the shipped source of@knitui/components(ControlIconProvider,Accordion,Checkbox/CheckIcon,Chip,CloseButton,Combobox,Stepper),@knitui/carousel(Carousel) and@knitui/media(the audio/video chrome +LiveAudioMeter), each now naming the glyph module it actually uses. An ESLintno-restricted-importsguardrail ineslint.config.base.mjsblocks the bare@knitui/icons/@knitui/emojispecifier in shippedsrc/**so this cannot regress; stories, tests and the private@knitui/demogalleries (which render the whole registry on purpose) are exempt. Bundler hygiene, same theme: -sideEffectswas missing from@knitui/media,@knitui/sheetand@knitui/plugins, so webpack/Next had to keep every module of those packages even when nothing referenced it.mediaandsheetare declaredsideEffects: false(audited: their only module-scope statements are pure const initialisers and adisplayNameassignment — the oneregisterProcessor()call inmedialives inside an AudioWorklet source string, not in the module).pluginslists just itsbabel-pluginentry, which really does mutateprocess.env.TAMAGUI_IGNORE_BUNDLE_ERRORSon load. -@knitui/plugins/next-pluginnow setsexperimental.optimizePackageImportsfor@knitui/icons,@knitui/emoji,@knitui/components,@knitui/datesand@knitui/map, so every Next consumer inherits it instead of having to know. Next has to build a barrel's full module graph before it can shake it, andtranspilePackagesmeans it compiles the kit's source to do so — with this, a bare-barrel glyph import in app code is rewritten to that glyph's own module and the other 6,145 files are never compiled. Anyexperimentalthe app already set is merged, not replaced, and its ownoptimizePackageImportsentries are kept. - Updated dependencies[5f44d20]
- Updated dependencies[5f44d20]
- Updated dependencies[5f44d20]
- Updated dependencies[5c6d758] - @knitui/core@0.6.0
0.1.7
@knitui/plugins
- Align published dependency ranges with Expo SDK 57 The SDK pins exact versions for its native modules, and several of our published ranges had drifted from that set. Consumers on SDK 57 were resolving versions the SDK's prebuilt binaries don't expect, which fails at runtime rather than at build time. -
@knitui/components:expo-image~57.0.0→~57.0.1-@knitui/core:@tamagui/*^2.3.0→^2.4.6-@knitui/media:expo-audio~57.0.0→~57.0.2,expo-video~57.0.0→~57.0.1-@knitui/plugins:@tamagui/babel-plugin^2.3.0→^2.4.6@knitui/graphicsis a minor rather than a patch because its@shopify/react-native-skiapeer is an exact pin and moves2.6.6→2.6.2, which is the version Expo SDK 57 expects. Consumers currently pinned to2.6.6will need to move to2.6.2to satisfy the peer. - Updated dependencies[4f7830c] - @knitui/core@0.5.0
0.1.6
@knitui/plugins
- @knitui/core@0.4.0
0.1.5
@knitui/plugins
- fix(next): alias bare
globaltoglobalThisin the client bundlereact-native-reanimated's web build touches the Node-ismglobalat module-eval time, so importing it in the browser threwReferenceError:DefinePlugin({ global: "globalThis" })for the client bundle only (!isServer`), leaving the real Node global untouched on the server.
0.1.4
@knitui/plugins
- @knitui/core@0.3.0
0.1.3
@knitui/plugins
- Fix
@knitui/plugins/next(and every other subpath) reporting "Could not find a declaration file for module" in consumers'tsc. Thetypescriptbob target built withproject: tsconfig.build.json, whosetsconfig.build.jsonset norootDir. tsc therefore inferred the package root as the root and emitted the.d.tsfiles one level too deep — atlib/typescript/module/src/next.d.ts— while theexports[...].typespaths (correctly) pointed atlib/typescript/module/next.d.ts. Runtime JS resolved fine, but a consumer's type checker (bundler resolution) couldn't find the declarations. SettingrootDir: "src"intsconfig.build.jsonflattens the output to exactly whereexportsalready points. No API or runtime change.
0.1.2
@knitui/carousel
- Carousel: add
scrollMode="native"— an opt-in "normal scroll" mode backed by a real platform scroll container (anAnimated.ScrollViewon native, an overflow-scroll surface with CSS scroll-snap on web). Scrolling, momentum and rubber-band overscroll are the OS's own and nothing runs per frame on the JS thread. The live scroll position is mirrored into the same scroll-offset shared value the transform engine uses, so pagination,progress/onProgressChange, the active index, controlledindexand the imperativeref(next/prev/scrollTo) keep working.snapEnabled/pagingEnabled/overscrollEnabled,verticalanditemSize/itemWidth/itemHeightare honoured. Native mode mounts every slide (no windowed virtualization), forcesloopoff, and ignores the transitionmode/customAnimation(slides lay out in normal flow). Default staysscrollMode="transform"— no behaviour change for existing usage. - Updated dependencies[c346356]
- Updated dependencies[737463e] - @knitui/core@0.2.0 - @knitui/components@0.2.0 - @knitui/hooks@0.2.0 - @knitui/icons@0.2.0
@knitui/media
- Updated dependencies[c346356]
- Updated dependencies[737463e] - @knitui/core@0.2.0 - @knitui/components@0.2.0 - @knitui/hooks@0.2.0 - @knitui/icons@0.2.0
@knitui/sheet
- Updated dependencies[c346356]
- Updated dependencies[737463e] - @knitui/core@0.2.0 - @knitui/components@0.2.0 - @knitui/hooks@0.2.0 - @knitui/icons@0.2.0
@knitui/plugins
- Updated dependencies[c346356]
- Updated dependencies[737463e] - @knitui/core@0.2.0
0.1.1
@knitui/components
- UnstyledButton: reset the semantic
<button>'s user-agenttext-align: centeron web so text content is left-aligned, matching native (React Native starts pressable text at the inline edge). The same tree no longer diverges across platforms. The reset is web-only and applied ahead of the caller'sstyle, so anyone who wants centred content still overrides it explicitly. Internally the button-host wiring now reuses the sharedwebButton()helper (correctly a no-op on native) instead of hardcodingrender="button". - @knitui/core@0.1.1 - @knitui/hooks@0.1.1 - @knitui/icons@0.1.1
@knitui/hooks
- @knitui/core@0.1.1
@knitui/dates
- Updated dependencies[407bef6] - @knitui/components@0.1.1 - @knitui/core@0.1.1 - @knitui/hooks@0.1.1
@knitui/carousel
- Updated dependencies[407bef6] - @knitui/components@0.1.1 - @knitui/core@0.1.1 - @knitui/hooks@0.1.1 - @knitui/icons@0.1.1
@knitui/map
- Map: fix SVG marker pins (
SvgImage) not appearing on Android/iOS. MapLibre native can't decode SVG, soSvgImagerasterizes the SVG to a PNG throughreact-native-svg'sSvg.toDataURL. The capture fired once, synchronously, in the offscreen view'sonLayout— but on the New Architecture the native Svg view isn't attached/painted on that first frame, so the call silently no-op'd (ref not ready) or returned empty bytes with no retry, and no icon was ever registered. Capture now runs in arequestAnimationFrameretry loop that waits until the ref is attached andtoDataURLreturns real bytes before registering the image, and the offscreen host is positioned off-screen instead ofopacity: 0(an alpha-0 source view can snapshot blank on Android). Web is unchanged. Also fix a web layer-update gap: apaint/layoutkey present in a layer's initial config (e.g. aSymbolLayericonRotate) and then dropped now resets to its spec default instead of lingering, because the dropped-key trackers are seeded from the config applied at add time.
@knitui/media
- Updated dependencies[407bef6] - @knitui/components@0.1.1 - @knitui/core@0.1.1 - @knitui/hooks@0.1.1 - @knitui/icons@0.1.1
@knitui/graphics
- Updated dependencies[407bef6] - @knitui/components@0.1.1 - @knitui/core@0.1.1
@knitui/sheet
- Updated dependencies[407bef6] - @knitui/components@0.1.1 - @knitui/core@0.1.1 - @knitui/hooks@0.1.1 - @knitui/icons@0.1.1
@knitui/plugins
- @knitui/core@0.1.1