How to Use Tailwind with React Native | Beginner Tutorial 2022
Beto, March 24, 2022 · 4,646 views
Writing a StyleSheet object for every little view gets old fast. With the tailwind-rn library you get Tailwind's utility-first workflow inside React Native, so styling a component is as quick as typing . I set up everything in the video, from install to dark mode.
What's inside
- Installing tailwind-rn in a fresh Expo project
- Applying classes like and straight on components
- Dark mode with conditional classes like
- Responsive styles that adapt by screen size, like
- Reusable components so you never repeat the same class strings
- How tailwind-rn strips unused CSS to keep bundles lean
Resources

CourseReact Native course
Go deeper in the Style & Design section: 80 minutes on design systems, dark mode, and Flexbox.
Had a win? Get featured on Code with Beto.Share your story
Like this article? Get the rest of the library plus weekly React Native tips. Free.