Use expo-router
with tailwind
in Metro web apps.
This approach does nothing on native as native does not currently support CSS.
This project is Expo SDK +49
metro.config.js
file, this is where file watching and updating happens.index.js
optionally imports the evaluated CSS file from tailwind CLI. This ensures that HMR updates are applied, and the CSS is bundled.global.css
file adds the requisite utility classes for Tailwind to work.metro.config.js
has experimental Expo CSS enabled.app.json
has web.bundler
set to metro
.