Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
N

nativewind

> 前端框架
Open source

The utility-first workflow you love from Tailwind CSS in your React Native applications.

8.0K stars0 likes1 views
WebsiteGitHub

About

The utility-first workflow you love from Tailwind CSS in your React Native applications.


About

Do you like using Tailwind CSS to style your apps? This helps you do that in React Native. Nativewind is not a component library, it's a styling library. If you're looking for component libraries that support Nativewind, see below.

Nativewind makes sure you're using the best style engine for any given platform (e.g. CSS StyleSheet or StyleSheet.create). Its goals are to to provide a consistent styling experience across all platforms, improving developer UX, component performance, and code maintainability.

Nativewind processes your styles during your application's build step and uses a minimal runtime to selectively apply reactive styles (eg changes to device orientation, light dark mode).

Built and maintained by the team at Ronin Software. We help teams build, fix, and ship React Native apps.

Installation

If you have an existing project, use these guides to configure Nativewind for your respective stack.

Alternatively, you can create a new pre-configured project via our Quickstart below.

Quickstart

We use rn-new to quickly stand up an Expo project with Nativewind.

  • npx rn-new@latest --nativewind (Expo SDK 54 + Nativewind v4.1)
  • npx rn-new@next --nativewind (Expo SDK 54 + Nativewind v5)

Features

  • Works on all RN platforms, uses the best style system for each platform.
  • Uses the Tailwind CSS compiler
  • Styles are computed at build time
  • Small runtime keeps your components fast
  • Support for
    • Custom CSS properties, aka CSS Variables
    • Dark mode, arbitrary classes, and media queries
    • Animations and transitions
    • Container queries
      • container-type and style-based container queries are not supported
    • Pseudo classes - hover / focus / active on compatible components
    • rem units
    • Theme functions and nested functions
    • React 18 Suspense API
    • Custom CSS
  • Styling based on parent state modifiers - automatically style children based upon parent pseudo classes
    • Support for the group and group/<name> syntax
  • Children styles - create simple layouts based upon parent class

Contribution

See this guide

FAQ

When is v5 landing?

Nativewind v5 is a release candidate

Is it safe to use v4?

Yes.

Is Nativewind moving to Expo?

No.

Can we disable auto-adding nativewind types using a setting or something? I already have the settings using compilerOptions.types, so I would like to disable the file generation.

withNativeWind(<config>, { disableTypeScriptGeneration: true })

What if I'm looking for a component library that uses Nativewind?

There are a number of different component libraries available that use Nativewind to achieve different results. You should pick the one that best suits your needs.

NativewindUI

This multi-platform library focuses on achieving native feel for each individual platform using the familiar interface of Tailwind CSS.

React Native Reusables

This open source library offers universal shadcn/ui via React Native. Use this as a foundation to develop your own high-quality component library.

gluestack

From the folks that brought you NativeBase, this library offers customizable cross-platform components designed to look & behave cleanly on every platform.

Documentation

Learn more on our website.

Issues· 58 open

View all issuesOpen on GitHub
  • #1870

    Bug: Color opacity modifiers (`/80`, `/50`, etc.) break and return `undefined` due to trailing `null` in `colorMix`

    Updated Oct 1, 2026
  • #1834

    LogBox UI breaks on React Native 0.86 when using nativewind/babel preset

    Updated Sep 24, 2026
  • #1862

    hidden lg:block doesn't work but max-sm:hidden does

    deferred (post-5.0)Updated Sep 14, 2026
  • #1861

    `platformSelect` does not work with `boxShadow` and css syntax

    Updated Sep 14, 2026
  • #1860

    Class name doubles in component with style set to array

    Updated Sep 14, 2026
  • #1846

    Android: `font-bold` via className clips multi-word text after a space (identical plain `style` renders correctly)

    Updated Sep 9, 2026
  • #1833

    nativewind/babel cannot resolve JSX transform with Bun isolated installs

    Updated Jul 28, 2026
  • #1812

    printUpgradeWarning crashes the app when serializing props that contain a context object with a throwing getter (e.g. React Navigation)

    needs reproductionneeds investigationUpdated Jul 24, 2026
  • #1565

    withNativeWind type error when passing config as expo metro config

    needs reproductionUpdated Jul 20, 2026
  • #1737

    Custom colors on `border-s-*` and `border-e-*` don't work

    v4Updated Jul 17, 2026

> Tags

TypeScriptcssnativewindreactreact-native

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedOct 1, 2026
Category前端框架
PricingOpen source

> Related tools

R
React
用于构建用户界面的 JavaScript 库
V
Vue.js
渐进式 JavaScript 框架
N
Next.js
基于 React 的全栈 Web 框架