Skip to content

Commit a0212c8

Browse files
authored
React Native 0.81.1 (0.79.6, 0.80.0, 0.80.1, 0.80.2 & 0.81.0) (#225)
* Upgrade react-native peer dep to include new tags * Upgrade react-native * Rename ferric-example package in test-app * Regenerating package-lock * Add changeset * Upgrade gradle wrapper properties * Don't link host with weak-node-api directly on Android * Add changeset * Add another changeset
1 parent d89436d commit a0212c8

File tree

12 files changed

+5641
-5065
lines changed

12 files changed

+5641
-5065
lines changed

.changeset/big-hornets-wear.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@react-native-node-api/test-app": patch
3+
---
4+
5+
Renamed ferric-example in test app to match mono-repo packages

.changeset/itchy-seals-refuse.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"@react-native-node-api/test-app": minor
3+
"react-native-node-api": minor
4+
---
5+
6+
Add explicit support for React Native 0.81.1 (0.79.6, 0.80.0, 0.80.1, 0.80.2 & 0.81.0)

.changeset/upset-papayas-pump.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"react-native-node-api": patch
3+
---
4+
5+
Fix host library to not explicitly link with weak-node-api and instead rely on dlopen

apps/test-app/App.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ function loadTests({
7272
it("exports a callable sum function", () => {
7373
const exampleAddon =
7474
/* eslint-disable-next-line @typescript-eslint/no-require-imports -- TODO: Determine why a dynamic import doesn't work on Android */
75-
require("ferric-example") as typeof import("ferric-example");
75+
require("@react-native-node-api/ferric-example") as typeof import("@react-native-node-api/ferric-example");
7676
const result = exampleAddon.sum(1, 3);
7777
if (result !== 4) {
7878
throw new Error(`Expected 1 + 3 to equal 4, but got ${result}`);

apps/test-app/android/gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.11.1-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.14.3-bin.zip
44
networkTimeout=10000
55
validateDistributionUrl=true
66
zipStoreBase=GRADLE_USER_HOME

apps/test-app/package.json

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -22,25 +22,25 @@
2222
"@babel/core": "^7.26.10",
2323
"@babel/preset-env": "^7.26.9",
2424
"@babel/runtime": "^7.27.0",
25-
"@react-native-community/cli": "^18.0.0",
26-
"@react-native-community/cli-platform-android": "^18.0.0",
27-
"@react-native-community/cli-platform-ios": "^18.0.0",
25+
"@react-native-community/cli": "^20.0.1",
26+
"@react-native-community/cli-platform-android": "^20.0.1",
27+
"@react-native-community/cli-platform-ios": "^20.0.1",
28+
"@react-native-node-api/ferric-example": "*",
2829
"@react-native-node-api/node-addon-examples": "*",
2930
"@react-native-node-api/node-tests": "*",
30-
"@react-native/babel-preset": "0.79.0",
31-
"@react-native/metro-config": "0.79.0",
32-
"@react-native/typescript-config": "0.79.0",
33-
"@rnx-kit/metro-config": "^2.0.1",
31+
"@react-native/babel-preset": "0.81.1",
32+
"@react-native/metro-config": "0.81.1",
33+
"@react-native/typescript-config": "0.81.1",
34+
"@rnx-kit/metro-config": "^2.1.1",
3435
"@types/mocha": "^10.0.10",
35-
"@types/react": "^19.0.0",
36+
"@types/react": "^19.1.0",
3637
"concurrently": "^9.1.2",
37-
"ferric-example": "^0.1.0",
3838
"mocha": "^11.6.0",
3939
"mocha-remote-cli": "^1.13.2",
4040
"mocha-remote-react-native": "^1.13.2",
41-
"react": "19.0.0",
42-
"react-native": "0.79.5",
41+
"react": "19.1.0",
42+
"react-native": "0.81.1",
4343
"react-native-node-api": "*",
44-
"react-native-test-app": "^4.3.3"
44+
"react-native-test-app": "^4.4.7"
4545
}
4646
}

0 commit comments

Comments
 (0)