Tamagui v2.0.0-rc.41 is a UI library and optimizing compiler for React (web and native). It provides a design system with styled components, theming, and responsive props, aiming to reduce bundle size and runtime overhead through compile-time optimizations. Released as release candidates since 2023, it requires React 19 and offers deep integration with React Native. Key differentiators include its compiler that transforms styled components into optimized CSS or native code, and its cross-platform support without platform-specific code forks.
npm install tamaguiNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Basic usage of Tamagui with styled components, theming, and responsive spacing tokens.
Upgrade React to version 19 or later.
Use ES module imports (import) in your project or configure bundler to handle ESM.
Use the new 'animationsReanimated' or 'animationsCSS' imports from tamagui.
Set TAMAGUI_TARGET='web' in your build environment.
Use named imports like import { styled } from 'tamagui'.Run 'npm install tamagui@latest' and ensure the import path is correct (case-sensitive).
Create a Tamaqui config using createTamagui() and wrap your app with it.
Ensure you are using ES module import syntax and have set 'type': 'module' in package.json if applicable.
Upgrade React to version 19.