Build a cross-platform app with shared UI components that render correctly on both web browsers and iOS or Android.
Speed up a React web app by enabling Tamagui's compiler to flatten styled components into plain CSS class names at build time.
Add a pre-built UI kit to a React Native project to get platform-adaptive components without writing them from scratch.
Requires an existing React or React Native project, the compiler must be integrated into your build tool (Vite or webpack) separately.
Tamagui is a set of tools for building user interfaces that work on both the web and on phones. Many teams write apps for the web using React and for phones using React Native, and they want to share as much code as possible between the two. Tamagui aims to let you write the look and layout of your app once and have it run in both places. The README describes three main pieces. The first, called core, is a library for styling React components. The second is an optimizing compiler, which is a tool that runs while your app is being built and rewrites your styling code into a faster form. On the web it turns components into a plain div with small reusable CSS rules, and on phones it produces the native equivalent. The third piece is an optional UI kit, a collection of ready made components that adapt to whatever platform they run on. A stated goal is sharing code across web and native without giving up performance or code quality, the two things that usually suffer when sharing. The authors note you can adopt it gradually, starting as simply as importing it and using the basic views. They suggest running a create command to scaffold a starter project, with options ranging from a small learning example to a production ready setup. The README gives a concrete performance claim: on their own website the compiler flattens most styled components into plain divs, and the homepage gains nearly 15 percent on a Lighthouse score with the compiler turned on. Full documentation lives on their website.
← tamagui on gitmyhub — every repo by this author, as a profile.
Verify against the repo before relying on details.