@umang-thakkar/base-template-nativewind
v1.0.0
Published
React Native CLI template styled with NativeWind (Tailwind CSS): UI kit, light/dark theme tokens, Redux Toolkit + MMKV, React Query, Axios, react-hook-form
Maintainers
Readme
🚀 React Native Base Template (NativeWind)
A React Native CLI template with the boilerplate already done: NativeWind (Tailwind CSS), Redux Toolkit, Redux Persist on MMKV, React Navigation, React Query, Axios, light/dark theming and TypeScript.
Prefer plain
StyleSheetstyling? Use the standard template:@umang-thakkar/base-template.
Quick start
npx @react-native-community/cli init MyApp --template @umang-thakkar/base-template-nativewind
cd MyApp
npm startThen, in another terminal, npm run android or npm run ios. Requires Node.js 22.11+.
What's included
- Redux Toolkit store with typed hooks and an
authslice (user+accessToken) - Redux Persist on MMKV: login survives app restarts
- React Navigation 7 stack with a screen registry and a navigation service for use outside components
- React Query 5 hooks over a layered Axios API (client → actions → services → queries)
- NativeWind v4 styling:
className="bg-card text-title1 md:px-10", with a type scale and responsive breakpoints, pluscn()(clsx + tailwind-merge) for merging classes - UI kit in
src/components/ui:AppText,Button(5 variants × 3 sizes),TextField(react-hook-form built in),Card,Loader, and app-wide snackbars (showSnackbar/showErrorSnackbar) - Forms: react-hook-form + yup, with typed schemas in
utils/schema.ts - Light/dark themes: theme colors are Tailwind classes (
bg-background,text-primary) backed by CSS variables; the user's Light / Dark / System choice is saved in MMKV;useTheme()for color values - Infinite scroll helper
usePaginatedAPIwith debounced search, and an Axios client that attaches the auth token - Central
API_RoutesandAppStringconstants - A
Screenwrapper for safe area, background and a readable column on tablets - ErrorBoundary with a dev-only error view
- Formatting, error-message, date, platform and navigation helpers
- ESLint with Tailwind class checks (order, conflicts, unknown classes, no hard-coded colors), Prettier, and Jest with MMKV and Reanimated mocks
- An agent skill (
.agents/skills/umang-nativewind-patternin the repo) describing the conventions, so AI coding agents build apps the same way
Documentation
Full docs are in docs/:
- Getting Started
- Project Structure
- Styling (NativeWind)
- Components (UI kit)
- Responsive UI
- State Management
- Storage (MMKV)
- Networking
- Navigation
- Theming
- Helpers & Utilities
- Error Handling
- Code Quality & Testing
- Customization Recipes
- Roadmap & Known Issues
- Publishing the Template
Contributing
Fork it and customize it. Pull requests are welcome.
Author
Created with ❤️ by Umang Thakkar
License
MIT © Umang Thakkar
