A clean and minimal React Native template with NativeWind (Tailwind CSS for React Native) pre-configured, designed to kickstart your React Native CLI projects with easy styling and modern best practices.
- React Native CLI starter template
- Preconfigured with NativeWind for Tailwind CSS styling
- Ready to use with TypeScript support
- Integrated Sentry for error tracking and monitoring
- Setup with Detox for end-to-end (E2E) testing
- Included Storybook for isolated UI component development
- Example screen with Tailwind styling
- Minimal dependencies and setup
- Node.js (>=18 recommended)
- React Native CLI environment set up (Android Studio / Xcode, device or emulator)
- Yarn or npm package manager
Clone this repo:
git clone https://github.com/hsib19/nativewind-rn-template.git
cd nativewind-rn-templateInstall dependencies:
yarn install
# or
npm install- For iOS (Mac only):
yarn ios
# or
npm run ios- For Android:
yarn android
# or
npm run androidStart the Metro bundler for Storybook:
yarn start:storybook
# or
npm run start:storybookLaunch the app in Storybook mode:
- iOS (Mac only):
yarn storybook:ios
# or
npm run storybook:ios- Android:
yarn storybook:android
# or
npm run storybook:androidTo clean and regenerate Storybook loader:
yarn storybook-clean
# or
npm run storybook-cleanRun all tests:
yarn test
# or
npm testRun tests with coverage report:
yarn test:coverage
# or
npm run test:coverageRun tests in watch mode:
yarn test --watch
# or
npm test -- --watchSentry is pre-configured for error tracking.
Replace the DSN in your Sentry config file or initialization code with your own DSN to start monitoring errors.
Make sure your emulator or device is running.
- Android:
detox test -c android.emu.debug- iOS (Mac only):
detox test -c ios.sim.debugSee Detox docs for more details:
https://wix.github.io/Detox/docs/introduction/getting-started
Start building your app inside the src folder. Use NativeWind’s Tailwind classes to style React Native components quickly and intuitively.
Example:
import { View, Text } from 'react-native';
export default function HomeScreen() {
return (
<View className="flex-1 justify-center items-center bg-white">
<Text className="text-xl font-bold text-blue-600">Hello, NativeWind!</Text>
</View>
);
}