npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

create-expo-nativewind

v1.1.0

Published

A CLI tool to create Expo project with optional NativeWind setup

Readme

Create Expo NativeWind

A CLI tool to create Expo apps with optional NativeWind (TailwindCSS) setup. Get started with a production-ready Expo + NativeWind app in seconds!

Features

  • Optional NativeWind Setup - Instantly set up TailwindCSS for React Native
  • Current Directory Support - Use . to install in the current directory
  • Auto Reset Project - Automatically runs npm run reset-project after Expo installation
  • Multiple Package Managers - Support for npm, yarn, and pnpm
  • Interactive CLI - Beautiful, user-friendly prompts
  • Fast & Reliable - Optimized setup process
  • Fully Configured - Everything you need to start coding immediately
  • TypeScript Ready - Full TypeScript support out of the box

Quick Start

Create a new app with NativeWind

npx create-expo-nativewind my-app --nativewind

Create a new app with interactive prompts

npx create-expo-nativewind my-app

Create a new app without NativeWind

npx create-expo-nativewind my-app

Install in current directory

npx create-expo-nativewind . --nativewind

Usage

npx create-expo-nativewind [project-name] [options]

Options

| Option | Description | | ----------------------- | ------------------------------------------- | | --nativewind | Setup project with NativeWind (TailwindCSS) | | --template <template> | Expo template to use (default: "blank") | | --npm | Use npm as package manager | | --yarn | Use yarn as package manager | | --pnpm | Use pnpm as package manager | | --no-install | Skip installing dependencies | | --no-git | Skip git initialization | | -v, --version | Output the current version | | -h, --help | Display help for command |

Examples

Create app with NativeWind using yarn:

npx create-expo-nativewind my-app --nativewind --yarn

Create app with specific template:

npx create-expo-nativewind my-app --template tabs

Create app without installing dependencies:

npx create-expo-nativewind my-app --no-install

Install in current directory with NativeWind:

npx create-expo-nativewind . --nativewind

How It Works

The tool performs the following steps:

  1. Creates Expo Project - Uses create-expo-app to scaffold your project
  2. Runs Reset Script - Automatically executes npm run reset-project if available in the Expo template
  3. Creates Global CSS - Sets up global.css in the app folder for NativeWind styling
  4. Installs Dependencies - Adds NativeWind v4 and required packages
  5. Configures Project - Updates Babel, Metro, and Tailwind configurations
  6. Updates Components - Modifies the app to use NativeWind classes
  7. Initializes Git - Sets up a Git repository (unless --no-git is specified)

What's Included with NativeWind?

When you use the --nativewind flag, your project will be configured with:

  • Expo Default Template - Starts with full Expo default template (app router structure)
  • Installation Instructions - Optional prompt showing Expo setup instructions
  • NativeWind v4 - Latest version of NativeWind with modern architecture
  • TailwindCSS 3.3.0 - Full Tailwind configuration optimized for React Native
  • Pre-configured Metro - Metro bundler setup for NativeWind v4
  • Babel Config - Babel plugins configured for optimal performance
  • Global Styles - Ready-to-use global CSS file
  • Updated Components - Home screen updated with NativeWind examples

Using Tailwind Classes

After setup, you can use Tailwind classes directly in your components:

import { View, Text } from 'react-native';

export default function App() {
  return (
    <View className="flex-1 items-center justify-center bg-blue-500">
      <Text className="text-white text-2xl font-bold">Hello NativeWind!</Text>
    </View>
  );
}

Development

After creating your app:

cd my-app
npm start

Then:

  • Press a for Android
  • Press i for iOS
  • Press w for Web

Resources

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

Acknowledgments


Made with ❤️ for the React Native community