talira

Style library, UI kit and optimizing compiler for React and React Native

open sourceMITfree

Tamagui is a set of MIT-licensed libraries for building UIs that share code between React on the web and React Native: a universal style library (@tamagui/core), an optimizing compiler (@tamagui/static) and an adaptive UI kit (tamagui). The compiler flattens styled components into plain divs with atomic CSS on the web, or views with hoisted styles on native. Version 3 adds Tailwind classes, React Strict DOM primitives, a Rust compiler and a native runtime, with plugins for Vite, Next, Metro and Webpack. Starters come from npm create tamagui.

Problems it solves

  • share UI code between my React web app and my React Native app
  • style React Native components without slowing the app down
  • a UI kit that works on web and native from one codebase

Features

  • one style system for React and React Native
  • optimizing compiler that flattens styled components
  • Tailwind classes and React Strict DOM primitives
  • bundler plugins for Vite, Next, Metro and Webpack
  • nested themes rendered on the server

Alternatives

The same job

These do what Tamagui does.

  1. React Native for Web Run React Native components and APIs on the web with React DOM
  2. React Native Paper Material Design UI components for React Native on iOS and Android
  3. React Native Learn once, write anywhere
  4. Weex Framework from Alibaba for building cross-platform mobile apps with web technology that render with native components

Compare Tamagui with the top 3