Skip to content

📱 Modern React Native starter with Expo Router file-based navigation, NativeWind for TailwindCSS styling, TypeScript support, and PNPM package management. Ready for iOS, Android & Web deployment.

Notifications You must be signed in to change notification settings

jrobinsonc/react-native-sample-app

Repository files navigation

React Native Sample App 📱✨

This is a React Native sample application built with Expo and featuring NativeWind integration for seamless TailwindCSS styling in React Native.

🚀 Key Features

  • React Native with Expo Router for file-based navigation
  • NativeWind integration for using TailwindCSS utility classes in React Native
  • PNPM for fast, efficient package management
  • Cross-platform support (iOS, Android, Web)
  • TypeScript for type safety
  • Modern UI with utility-first CSS styling

Get started

  1. Install dependencies

    pnpm install
  2. Start the app

    pnpm start

In the output, you'll find options to open the app in a

You can start developing by editing the files inside the app directory. This project uses file-based routing.

Get a fresh project

When you're ready, run:

pnpm reset-project

This command will move the starter code to the app-example directory and create a blank app directory where you can start developing.

🎨 Styling with NativeWind & TailwindCSS

This project demonstrates how to use NativeWind to bring TailwindCSS to React Native development:

  • Utility-first styling: Use familiar Tailwind classes like bg-blue-500, text-center, flex-1
  • Responsive design: Built-in support for responsive breakpoints
  • Dark mode: Easy theme switching with Tailwind's dark mode utilities
  • Custom configuration: Tailwind config is set up in tailwind.config.js

Example Usage

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

export default function MyComponent() {
  return (
    <View className="flex-1 justify-center items-center bg-gray-100 dark:bg-gray-900">
      <Text className="text-2xl font-bold text-gray-800 dark:text-white">
        Hello NativeWind!
      </Text>
    </View>
  );
}

Learn more

To learn more about developing your project with Expo, look at the following resources:

About

📱 Modern React Native starter with Expo Router file-based navigation, NativeWind for TailwindCSS styling, TypeScript support, and PNPM package management. Ready for iOS, Android & Web deployment.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published