Skip to content

Releases

v0.2.0

Choose a tag to compare

@vyshakh vyshakh released this 21 Oct 15:37
ac974e3

Breaking

  • Tamagui 3 is now required (tamagui ^3.1.0). Tamagui 2 is no longer supported. npm install react-jsonschema-ui tamagui now installs a working pair.

New

  • Zero setup. <SchemaForm> works with no Tamagui configuration. Outside a <TamaguiProvider> it provides one itself: with your config if you called createTamagui, otherwise with a built-in default theme. The README quick start runs as pasted on React Native, Expo, Next.js and other React apps.
  • No animation driver needed. The select widget opens a bottom sheet when your Tamagui config has an animation driver. Without one, it expands inline on native and stays a popover on web.
  • Widgets follow any Tamagui 3 config pack (v5 or v6) and their light/dark themes.

Install

npm install react-jsonschema-ui tamagui

On React Native, also install react-native-safe-area-context (Tamagui 3 imports it). Expo Router apps already have it. See the README for per-platform setup, including Next.js App Router.

Upgrading from 0.1

  1. Upgrade tamagui and every @tamagui/* package to the same 3.x version.
  2. If you wrote custom widgets or templates with Tamagui, port them to Tamagui 3: bare token names (gap="2", not $2), named sizes (size="sm"), and variant="quiet" in place of chromeless.

Examples

New examples/nextjs (App Router) and examples/react-native (React Native CLI, no Tamagui setup) apps in the repo.

Full details: #1