Skip to content

Commit

Permalink
fix(align-deps): ensure safe-area works with New Arch (#2907)
Browse files Browse the repository at this point in the history
  • Loading branch information
tido64 authored Jan 4, 2024
1 parent dfaf8d6 commit 21ded4c
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .changeset/real-eagles-agree.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@rnx-kit/align-deps": patch
---

Ensure `react-native-safe-area-context` works with New Arch enabled on both 0.72 and 0.73
2 changes: 1 addition & 1 deletion packages/align-deps/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ resolve to:
| react | [email protected] | [email protected] | [email protected] | [email protected] | [email protected] | [email protected] | [email protected] | [email protected] | [email protected] | [email protected] | [email protected] | [email protected] | [email protected] |
| react-dom | react-dom@^18.2.0 | react-dom@^18.2.0 | react-dom@^18.2.0 | react-dom@^18.1.0 | react-dom@^18.0.0 | [email protected] | [email protected] | [email protected] | [email protected] | [email protected] | [email protected] | [email protected] | [email protected] |
| react-test-renderer | [email protected] | [email protected] | [email protected] | [email protected] | [email protected] | [email protected] | [email protected] | [email protected] | [email protected] | [email protected] | [email protected] | [email protected] | [email protected] |
| safe-area | react-native-safe-area-context@^4.5.3 | react-native-safe-area-context@^4.5.3 | react-native-safe-area-context@^4.5.1 | react-native-safe-area-context@^4.4.1 | react-native-safe-area-context@^4.3.1 | react-native-safe-area-context@^3.2.0 | react-native-safe-area-context@^3.2.0 | react-native-safe-area-context@^3.2.0 | react-native-safe-area-context@^3.2.0 | react-native-safe-area-context@^3.2.0 | react-native-safe-area-context@^3.2.0 | react-native-safe-area-context@^3.1.9 | react-native-safe-area-context@^3.1.9 |
| safe-area | react-native-safe-area-context@^4.8.2 | react-native-safe-area-context@>=4.5.3 <4.8 | react-native-safe-area-context@^4.5.1 | react-native-safe-area-context@^4.4.1 | react-native-safe-area-context@^4.3.1 | react-native-safe-area-context@^3.2.0 | react-native-safe-area-context@^3.2.0 | react-native-safe-area-context@^3.2.0 | react-native-safe-area-context@^3.2.0 | react-native-safe-area-context@^3.2.0 | react-native-safe-area-context@^3.2.0 | react-native-safe-area-context@^3.1.9 | react-native-safe-area-context@^3.1.9 |
| screens | react-native-screens@^3.21.0 | react-native-screens@^3.21.0 | react-native-screens@^3.19.0 | react-native-screens@^3.18.2 | react-native-screens@^3.14.1 | react-native-screens@^3.13.1 | react-native-screens@^3.9.0 | react-native-screens@^3.9.0 | react-native-screens@^3.7.0 | react-native-screens@^3.1.1 | react-native-screens@^2.18.1 | react-native-screens@^2.10.1 | react-native-screens@^2.10.1 |
| shimmer | react-native-shimmer@^0.6.0 | react-native-shimmer@^0.6.0 | react-native-shimmer@^0.6.0 | react-native-shimmer@^0.5.0 | react-native-shimmer@^0.5.0 | react-native-shimmer@^0.5.0 | react-native-shimmer@^0.5.0 | react-native-shimmer@^0.5.0 | react-native-shimmer@^0.5.0 | react-native-shimmer@^0.5.0 | react-native-shimmer@^0.5.0 | react-native-shimmer@^0.5.0 | react-native-shimmer@^0.5.0 |
| sqlite | react-native-sqlite-storage@^6.0.1 | react-native-sqlite-storage@^6.0.1 | react-native-sqlite-storage@^6.0.1 | react-native-sqlite-storage@^6.0.1 | react-native-sqlite-storage@^6.0.1 | react-native-sqlite-storage@^5.0.0 | react-native-sqlite-storage@^5.0.0 | react-native-sqlite-storage@^5.0.0 | react-native-sqlite-storage@^5.0.0 | react-native-sqlite-storage@^5.0.0 | react-native-sqlite-storage@^3.3.11 | react-native-sqlite-storage@^3.3.11 | react-native-sqlite-storage@^3.3.11 |
Expand Down
2 changes: 1 addition & 1 deletion packages/align-deps/scripts/update-readme.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ const table = markdownTable([
const pkg = preset[profileVersion][capability];
if ("version" in pkg) {
const { name, version } = pkg;
return `${name}@${version}`;
return `${name}@${version.replace("<", "&lt;").replace(">", "&gt;")}`;
} else if (pkg.capabilities.length > 0) {
return `Meta package for installing ${pkg.capabilities
.map((name) => `\`${name}\``)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ export const profile: Profile = {
},
"safe-area": {
name: "react-native-safe-area-context",
version: "^4.5.3",
version: ">=4.5.3 <4.8",
},
screens: {
name: "react-native-screens",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,10 @@ export const profile: Profile = {
name: "@react-native-community/netinfo",
version: "^11.0.1",
},
"safe-area": {
name: "react-native-safe-area-context",
version: "^4.8.2",
},
storage: {
name: "@react-native-async-storage/async-storage",
version: "^1.21.0",
Expand Down

0 comments on commit 21ded4c

Please sign in to comment.