
Security News
Socket Releases Free Certified Patches for Critical vm2 Sandbox Escape
A critical vm2 sandbox escape can allow untrusted JavaScript to break isolation and execute commands on the host Node.js process.
nativewind
Advanced tools
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).
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.
npx rn-new@latest --nativewindcontainer-type and style-based container queries are not supportedrem unitsgroup and group/<name> syntaxtailwind.config.jsIt's worth noting that we do not have Github branches that directly correlate to npm distribution tags. Instead, we deploy to specific npm tags either via automated Github actions (push to main -> publish to next) or manually (snapshots versions).
latest
canary
next tag
0.0.0-
next versionYes.
No.
compilerOptions.types, so I would like to disable the file generation.Not at the moment. We've found this will cause a long term problem where people "forget" what their type config was doing. They then update their types and break the Nativewind ones. To combat this, we've copied the behavior from other major frameworks which is to handle their types separately from user specified ones.
In the future, we may add an option like dangerouslyDisableTypeScriptGeneration or something verbose to prevent people from using it. We are tired of solving TypeScript issues, particularly ones such as "my types were working and now they aren't."
Similar to Valve, we don't like the number 3. Nah, we had a V3 but it was a bad idea and needed to be reworked so we dropped it and moved on to v4.
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.
This multi-platform library focuses on achieving native feel for each individual platform using the familiar interface of Tailwind CSS.
This open source library offers universal shadcn/ui via React Native. Use this as a foundation to develop your own high-quality component library.
From the folks that brought you NativeBase, this library offers customizable cross-platform components designed to look & behave cleanly on every platform.
All breaking changes are outlined here.
Learn more on our website.
Tailwind CSS React Native is another library that brings Tailwind CSS to React Native. It offers similar utility-first styling capabilities but may differ in terms of API and community support. NativeWind is often preferred for its seamless integration and ease of use.
Styled-components is a popular library for styling React and React Native applications using tagged template literals. While it doesn't use utility classes like NativeWind, it offers a powerful and flexible way to create component-level styles with support for theming and dynamic styling.
Emotion is a performant and flexible CSS-in-JS library that can be used with React and React Native. It provides a similar styling approach to styled-components but with a focus on performance and developer experience. Unlike NativeWind, it doesn't use utility classes but offers a rich API for styling.
FAQs
Use Tailwindcss in your cross-platform React Native applications
The npm package nativewind receives a total of 807,551 weekly downloads. As such, nativewind popularity was classified as popular.
We found that nativewind demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
A critical vm2 sandbox escape can allow untrusted JavaScript to break isolation and execute commands on the host Node.js process.

Research
Five malicious NuGet packages impersonate Chinese .NET libraries to deploy a stealer targeting browser credentials, crypto wallets, SSH keys, and local files.

Security News
pnpm 11 turns on a 1-day Minimum Release Age and blocks exotic subdeps by default, adding safeguards against fast-moving supply chain attacks.