Run with npm start and use i and a to launch app on expo go. w to launch web app.
- Expo SDK 51
- Nativewind v4.1.10
- Expo Router v2
- typed routes
- Typescript 5
- Reanimated v3
- Gesture Handler v2
ℹ️ For all these steps you need to install EAS first
npm install -g eas-clieas build:configureLogin to expo account
eas loginBuild for all native platforms (IOS, Android)
npm run native:build:allBuild for IOS
npm run native:build:iosBuild for Android
npm run native:build:androidMore info @ https://docs.expo.dev/build/setup/
⚠️ There is an issue with hot reloading on the web, so you may experience missing updates. This issue has already been fixed in an upcoming Metro release, and Mark from Nativewind may implement a fix before that. In any case this does not happen all the time and you can still work by focusing on a mobile-first approach. If you notice that updates are missing on the web, they will show up a bit later (based on my experience) or after making some additional changes on native mobile.
Scripts to build and deploy your app on the web with a static deploy configuration.
ℹ️ You need to install netlify CLI first to use
web:deployandweb:deploy:prodscripts
npm install -g netlify-cliBuild web project to the dist folder
npm run web:buildDeploy to Netlify with testing URL
npm run web:deployDeploy to production URL
npm run web:deploy:prodhttps://universal-nativewind-v4-starter.netlify.app/
Enabled for you to import modules using @/components custom alias instead of a relative path. You can extend it to add more alias paths as you wish.
import YourComponent from "@/components/YourComponent";More info @ https://docs.expo.dev/guides/typescript/#path-aliases
Expo Router is a native and platform-optimized navigation solution built on top of React Navigation, offering deep linking, offline-first capabilities, optimization features, universal refresh and linking across Android, iOS, and web, as well as the ability to make app content discoverable to search engines.
More info @ https://docs.expo.dev/routing/introduction/
App comes configured with typed routes
✅ <Link href="/user/1" />
// TypeScript errors if href is not a valid route
❌ <Link href="/usser/1" />More info @ https://docs.expo.dev/router/reference/typed-routes/
New docs for v4 available @ https://www.nativewind.dev/v4/overview
Follow Rodrigo Figueroa, creator of Universal Nativewind v4 Starter, on X/Twitter: @bidah
Follow Mark Lawlor, creator of Nativewind, on X/Twitter: @mark__lawlor
Follow Evan Bacon, creator of Expo Router, on X/Twitter: @baconbrix
