styling-nativewind-v4-expo
NativeWind v4 for Expo (React Native)
Non‑negotiables (v4)
- Use Tailwind CSS v3 and include
presets: [require("nativewind/preset")]intailwind.config.js. - Keep exactly one Tailwind entry CSS file (commonly
global.css) and keep its path consistent across:metro.config.js→withNativeWind(..., { input: "./global.css" })- your app entry →
import "./global.css"(orimport "../global.css"fromapp/_layout.tsx)
- Keep
nativewind/babelin Babelpresetsand setjsxImportSource: "nativewind"onbabel-preset-expo. - After any config change, restart Metro without cache:
npx expo start --clear.
Quick start checklist
Copy/paste and tick off:
More from tristanmanchester/agent-skills
designing-beautiful-websites
>-
1.2Kreddit-readonly
>-
359animating-react-native-expo
>-
208track17
Track parcels via the 17TRACK API (local SQLite DB, polling + optional webhook ingestion)
73nextjs-framer-motion-animations
Adds production-safe Motion for React or Framer Motion animations to Next.js apps, including reveal, hover and tap micro-interactions, whileInView, stagger, AnimatePresence, layout and layoutId transitions, reorder, scroll-linked UI, and lightweight route-content transitions. Use when the user asks to add, refactor, or debug Motion or Framer Motion in App Router or Pages Router codebases, especially around server/client boundaries, reduced motion, LazyMotion, bundle size, hydration, or route transitions. Avoid for GSAP-style timelines, WebGL or 3D scenes, heavy scroll storytelling, or CSS-only effects unless Motion is explicitly requested.
70tracking-pettracer-location
>-
67