Files
nativewind/website/docs/frameworks/nextjs.md
2022-06-20 10:58:23 +10:00

674 B

Next.js

:::note

This guide assumes you already have Next.js configured with React Native Web or Next.js with Expo for Web

:::

Setup

Next.js has built in support for either Babel with PostCSS or SWC with PostCSS.

Next.js pages are often rendered via SSR which requires React Native Web 0.18 for proper CSS support.

Babel

Follow the setup guide for Babel (Transform Only) which allows you to use the inbuilt PostCSS pipeline.

SWC

Follow the setup guide for PostCSS (Web).