react native 에서 tailwind css 사용하기
1. 아래 3개의 라이브러리를 설치 npm install -D tailwindcss postcss autoprefixer 2. tailwind.config.js postcss.config.js 파일 생성 npx tailwindcss init -p 3. tailwind.config.js 수정 /** @type {import('tailwindcss').Config} */ module.exports = { content: ["./App.{js,jsx,ts,tsx}", "./src/**/*.{js,jsx,ts,tsx}"], theme: { extend: {}, }, plugins: [], } 4. src 폴더 내에 input.css 파일에 아래 3줄을 추가 (없으면 생성) @tailwind base; @tail..
2023. 9. 30.