Skip to content

Commit

Permalink
Update tailwind config for expo router projects
Browse files Browse the repository at this point in the history
  • Loading branch information
danstepanov committed Aug 25, 2024
1 parent c0d862c commit 7b86143
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions cli/src/templates/packages/nativewind/tailwind.config.js.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,8 @@
module.exports = {
<% if (props.navigationPackage?.name === "react-navigation") { %>
content: ["./App.{js,ts,tsx}", "./components/**/*.{js,ts,tsx}", "./screens/**/*.{js,ts,tsx}, "./navigation/**/*.{js,ts,tsx}""],
<% } else if (props.navigationPackage?.name === "expo-router" && props.navigationPackage?.options.type === 'tabs') { %>
content: ["./index.{js,ts,tsx}", "./app/**/*.{js,ts,tsx}", "./components/**/*.{js,ts,tsx}"],
<% } else if (props.navigationPackage?.name === "expo-router") { %>
content: ["./index.{js,ts,tsx}", "./app/**/*.{js,ts,tsx}", "./components/**/*.{js,ts,tsx}"],
content: ["./app/**/*.{js,ts,tsx}", "./components/**/*.{js,ts,tsx}"],
<% } else { %>
content: ["./App.{js,ts,tsx}", "./components/**/*.{js,ts,tsx}"],
<% } %>
Expand Down

0 comments on commit 7b86143

Please sign in to comment.