Skip to content

Commit

Permalink
Updating correct dependencies for nativewind. (#421)
Browse files Browse the repository at this point in the history
* Updating correct dependencies for nativewind.

* fix: duplicate packages

* fix: versions

* fix: versions

---------

Co-authored-by: Daniel Williams <[email protected]>
  • Loading branch information
Viraj-10 and dannyhw authored Oct 23, 2024
1 parent 6033977 commit 8f9d35d
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/afraid-points-dance.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'create-expo-stack': patch
---

fix: nativewind version and dependencies
Binary file modified bun.lockb
Binary file not shown.
2 changes: 1 addition & 1 deletion cli/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ Each project is generated based on the results of the CLI, on a per-file basis.

| Library | Category | Version | Description |
| ------------------ | ------------------- | ------- | ---------------------------------------------- |
| React Native | Mobile Framework | v0.73 | The best cross-platform mobile framework |
| React Native | Mobile Framework | v0.74 | The best cross-platform mobile framework |
| React | UI Framework | v18 | The most popular UI framework in the world |
| TypeScript | Language | v5 | Static typechecking |
| React Navigation | Navigation | v6 | Performant and consistent navigation framework |
Expand Down
10 changes: 9 additions & 1 deletion cli/src/templates/base/package.json.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,15 @@
},
"dependencies": {
<% if (props.stylingPackage?.name === "nativewind" || props.stylingPackage?.name === "nativewindui") { %>
"nativewind": "next",
"nativewind": "latest",
<%# This will already be installed if using expo-router (see below) %>
<% if (props.navigationPackage?.name !== "expo-router") { %>
"react-native-reanimated": "~3.10.1",
<% } %>
<%# This will already be installed if using navigation (see below) %>
<% if (props.navigationPackage?.type !== "navigation") { %>
"react-native-safe-area-context": "4.10.5",
<% } %>
<% } %>
<% if (props.stylingPackage?.name === "nativewindui") { %>
"@roninoss/icons": "^0.0.4",
Expand Down

0 comments on commit 8f9d35d

Please sign in to comment.