Files
Avi Avinav 74a1c164ee docs: fix typos in quickstarts (#304)
* docs: fix typo in expo quickstart

* docs: fix typo in react-native-cli quickstart

* docs: fix typo in ignite quickstart
2022-10-30 12:35:29 +10:00

703 B

Ignite

1. Add NativeWind

You will need to install nativewind and it's peer dependency tailwindcss.

yarn add nativewind
yarn add --dev tailwindcss

2. Setup Tailwind CSS

Run npx tailwindcss init to create a tailwind.config.js file

Add the paths to all of your component files in your tailwind.config.js file.

// tailwind.config.js

module.exports = {
- content: [],
+ content: ["./app/components.{js,jsx,ts,tsx}", "./ignite/**/*.{js,jsx,ts,tsx}"],
  theme: {
    extend: {},
  },
  plugins: [],
}

3. Add the Babel plugin

Modify your babel.config.js

// babel.config.js
module.exports = {
- plugins: [],
+ plugins: ["nativewind/babel"],
};