豆豆友情提示:这是一个非官方 GitHub 代理镜像,主要用于网络测试或访问加速。请勿在此进行登录、注册或处理任何敏感信息。进行这些操作请务必访问官方网站 github.com。 Raw 内容也通过此代理提供。
Skip to content

Commit 0d9949d

Browse files
antonisclaude
andauthored
chore: Bump sample app to React Native 0.85.1 (#5991)
* chore: Bump sample app and e2e tests to React Native 0.85.1 - react-native 0.84.1 → 0.85.1 - @react-native/* packages 0.84.1 → 0.85.1 - Gradle 9.0.0 → 9.3.1 - Kotlin 2.0.21 → 2.1.20 - TypeScript 5.0.4 → 5.8.3 (required by new @react-native/typescript-config) - Jest preset migrated to @react-native/jest-preset (moved out of react-native in 0.85) - E2E test matrix updated from 0.84.0 to 0.85.0 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * fix(e2e): Update react-native-svg to 15.15.4 for RN 0.85 compatibility RN 0.85 changed the ImageResponseObserver API to use shared_ptr, which broke react-native-svg < 15.15.4. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * chore: Revert e2e-v2.yml changes, handled separately in #5990 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 15f99d3 commit 0d9949d

File tree

5 files changed

+429
-154
lines changed

5 files changed

+429
-154
lines changed

samples/react-native/android/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ buildscript {
66
compileSdkVersion = 36
77
targetSdkVersion = 36
88
ndkVersion = "27.1.12297006"
9-
kotlinVersion = "2.0.21"
9+
kotlinVersion = "2.1.20"
1010
}
1111
repositories {
1212
google()

samples/react-native/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-9.0.0-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-9.3.1-bin.zip
44
networkTimeout=10000
55
validateDistributionUrl=true
66
zipStoreBase=GRADLE_USER_HOME

samples/react-native/jest.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/** @type {import('@jest/types').Config.InitialOptions} */
22
module.exports = {
3-
preset: 'react-native',
3+
preset: '@react-native/jest-preset',
44
testMatch: [
55
'<rootDir>/__tests__/**/*-test.ts',
66
'<rootDir>/__tests__/**/*-test.tsx',

samples/react-native/package.json

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
},
4242
"dependencies": {
4343
"@react-native-vector-icons/ionicons": "^12.3.0",
44-
"@react-native/new-app-screen": "0.84.1",
44+
"@react-native/new-app-screen": "0.85.1",
4545
"@react-navigation/bottom-tabs": "^7.4.5",
4646
"@react-navigation/native": "^7.1.17",
4747
"@react-navigation/native-stack": "^7.3.24",
@@ -53,15 +53,15 @@
5353
"@shopify/flash-list": "^2.0.2",
5454
"delay": "^6.0.0",
5555
"react": "19.2.3",
56-
"react-native": "0.84.1",
56+
"react-native": "0.85.1",
5757
"react-native-build-config": "^0.3.2",
5858
"react-native-gesture-handler": "^2.28.0",
5959
"react-native-image-picker": "^8.2.1",
6060
"react-native-launch-arguments": "^4.1.1",
6161
"react-native-reanimated": "4.3.0",
6262
"react-native-safe-area-context": "^5.5.2",
6363
"react-native-screens": "^4.13.1",
64-
"react-native-svg": "^15.12.1",
64+
"react-native-svg": "^15.15.4",
6565
"react-native-webview": "^13.15.0",
6666
"react-native-worklets": "0.8.1",
6767
"react-redux": "^9.2.0",
@@ -74,9 +74,10 @@
7474
"@react-native-community/cli": "20.1.0",
7575
"@react-native-community/cli-platform-android": "20.1.0",
7676
"@react-native-community/cli-platform-ios": "20.1.0",
77-
"@react-native/babel-preset": "0.84.1",
78-
"@react-native/metro-config": "0.84.1",
79-
"@react-native/typescript-config": "0.84.1",
77+
"@react-native/babel-preset": "0.85.1",
78+
"@react-native/jest-preset": "0.85.1",
79+
"@react-native/metro-config": "0.85.1",
80+
"@react-native/typescript-config": "0.85.1",
8081
"@sentry/babel-plugin-component-annotate": "5.2.0",
8182
"@testing-library/react-native": "^13.2.2",
8283
"@types/jest": "^29.5.14",
@@ -91,7 +92,7 @@
9192
"react-test-renderer": "19.2.3",
9293
"sentry-react-native-samples-utils": "workspace:^",
9394
"ts-jest": "^29.3.1",
94-
"typescript": "5.0.4"
95+
"typescript": "5.8.3"
9596
},
9697
"engines": {
9798
"node": ">=22.11.0"

0 commit comments

Comments
 (0)