React Native CSS (v3.0.7) lets you write standard CSS stylesheets in React Native components. It uses Lightning CSS under the hood for fast parsing and supports features like CSS variables, nesting, and media queries. Unlike styled-components or other CSS-in-JS libraries, it compiles CSS files into native styles at build time via Metro, offering near-zero runtime overhead. Active development with weekly releases. Requires React 19, React Native >=0.81, and Expo SDK 54+.
npm install react-native-cssNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Creates a simple React Native app using a CSS stylesheet. Shows createStyleSheet, StyleProvider, and applying styles to components.
Upgrade your project to React 19, React Native 0.81+, and Expo SDK 54+.
Change require() calls to import statements and ensure your project uses ES modules.
Replace inline style objects with class references from stylesheet.
Pass variables via <StyleProvider theme={{ colors: { primary: 'blue' } }}>.Use useWindowDimensions or similar for dynamic layout changes.
Add "type": "module" to your package.json or rename file to .mjs.
Use import { createStyleSheet } from 'react-native-css'.Add <StyleProvider> as the root component of your app.
Run npm install lightningcss@>=1.27.0.