Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

78 Commits
 
 
 
 
 
 

Repository files navigation

React Native CSS modules

Quick links: FeaturesDocumentationExamples

Why?

React Native does not offer any kind of built-in support for loading CSS from .css files and using it for styling.

So far the only way has been to use React Native's style property or any of the available CSS-in-JS libraries. Now you can use className property and keep your styles in separate CSS files.

Features

Example Apps

Have a look at the example apps to see how you can use CSS modules for both React Native and Web using the same code.

Documentation

📚 Basic setup

📚 Other setup docs

📚 Other documentation


Special thanks

The idea for React Native CSS modules comes from these projects that have made a lot of work for supporting CSS and CSS modules in React Native: css-to-react-native and react-native-sass-classname. A big thanks to them!

About

Style React Native components using CSS, PostCSS, Sass, Less or Stylus.

Topics

Resources

Stars

338 stars

Watchers

4 watching

Forks

Releases

Packages

Used by

Contributors