Skip to content

Commit e99226d

Browse files
chore(deps): Bumps sample app to RN 0.77.0 (#4508)
* Upgrade core to 0.77.0 * Update lockfile * Upgrade e2e tests to 0.77.0 * Bump react-native sample to RN0.77 * Update lockfile * Fixes Lint issue * Fixes iOS Runtime crash * Lint: empty line --------- Co-authored-by: Krystof Woldrich <[email protected]>
1 parent a18210a commit e99226d

File tree

4 files changed

+404
-470
lines changed

4 files changed

+404
-470
lines changed

samples/react-native/android/build.gradle

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ buildscript {
55
minSdkVersion = 24
66
compileSdkVersion = 35
77
targetSdkVersion = 34
8-
ndkVersion = "26.1.10909125"
9-
kotlinVersion = "1.9.24"
8+
ndkVersion = "27.1.12297006"
9+
kotlinVersion = "2.0.21"
1010
}
1111
repositories {
1212
google()

samples/react-native/ios/sentryreactnativesample/AppDelegate.mm

+4
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
#import <RCTAppDelegate+Protected.h>
44
#import <React/CoreModulesPlugins.h>
55
#import <React/RCTBundleURLProvider.h>
6+
#import <ReactAppDependencyProvider/RCTAppDependencyProvider.h>
67
#import <ReactCommon/RCTTurboModuleManager.h>
78

89
#ifdef RCT_NEW_ARCH_ENABLED
@@ -59,6 +60,9 @@ - (BOOL)application:(UIApplication *)application
5960
// [self initializeSentry];
6061

6162
self.moduleName = @"sentry-react-native-sample";
63+
64+
self.dependencyProvider = [RCTAppDependencyProvider new];
65+
6266
// You can add your custom initial props in the dictionary below.
6367
// They will be passed down to the ViewController used by React
6468
self.initialProps = @{};

samples/react-native/package.json

+23-22
Original file line numberDiff line numberDiff line change
@@ -21,44 +21,45 @@
2121
"build-android-release-splits-flavors": "export SENTRY_SAMPLE_ENABLE_ABI_SPLIT=true; export SENTRY_SAMPLE_ENABLE_FLAVORS=true; cd android; ./gradlew assembleRelease; cd .."
2222
},
2323
"dependencies": {
24-
"@react-navigation/bottom-tabs": "^7.0.4",
25-
"@react-navigation/native": "^7.0.3",
26-
"@react-navigation/native-stack": "^7.0.3",
27-
"@react-navigation/stack": "^7.0.3",
24+
"@react-navigation/bottom-tabs": "^7.2.0",
25+
"@react-navigation/native": "^7.0.14",
26+
"@react-navigation/native-stack": "^7.2.0",
27+
"@react-navigation/stack": "^7.1.1",
2828
"@sentry/react-native": "6.6.0",
2929
"delay": "^6.0.0",
3030
"react": "18.3.1",
31-
"react-native": "0.76.3",
32-
"react-native-gesture-handler": "^2.21.1",
33-
"react-native-reanimated": "3.16.1",
34-
"react-native-safe-area-context": "4.14.0",
35-
"react-native-screens": "4.1.0",
36-
"react-native-svg": "^15.9.0",
31+
"react-native": "0.77.0",
32+
"react-native-gesture-handler": "^2.22.1",
33+
"react-native-reanimated": "3.16.7",
34+
"react-native-safe-area-context": "5.2.0",
35+
"react-native-screens": "4.6.0",
36+
"react-native-svg": "^15.11.1",
3737
"react-native-vector-icons": "^10.2.0",
38-
"react-native-webview": "^13.12.3",
38+
"react-native-webview": "^13.13.2",
3939
"react-redux": "^8.1.3",
4040
"redux": "^4.2.1"
4141
},
4242
"devDependencies": {
43-
"@babel/core": "^7.25.2",
44-
"@babel/preset-env": "^7.25.3",
45-
"@babel/runtime": "^7.25.0",
46-
"@react-native-community/cli": "15.0.1",
47-
"@react-native-community/cli-platform-android": "15.0.1",
48-
"@react-native-community/cli-platform-ios": "15.0.1",
49-
"@react-native/babel-preset": "0.76.3",
50-
"@react-native/eslint-config": "0.76.3",
51-
"@react-native/metro-config": "0.76.3",
52-
"@react-native/typescript-config": "0.76.3",
43+
"@babel/core": "^7.26.7",
44+
"@babel/preset-env": "^7.26.7",
45+
"@babel/runtime": "^7.26.7",
46+
"@react-native-community/cli": "15.1.3",
47+
"@react-native-community/cli-platform-android": "15.1.3",
48+
"@react-native-community/cli-platform-ios": "15.1.3",
49+
"@react-native/babel-preset": "0.77.0",
50+
"@react-native/eslint-config": "0.77.0",
51+
"@react-native/metro-config": "0.77.0",
52+
"@react-native/typescript-config": "0.77.0",
5353
"@sentry/babel-plugin-component-annotate": "^2.18.0",
5454
"@types/react": "^18.2.65",
5555
"@types/react-native-vector-icons": "^6.4.18",
5656
"@types/react-test-renderer": "^18.0.0",
5757
"@typescript-eslint/eslint-plugin": "^7.18.0",
5858
"@typescript-eslint/parser": "^7.18.0",
59-
"babel-jest": "^29.2.1",
59+
"babel-jest": "^29.6.3",
6060
"babel-plugin-module-resolver": "^5.0.0",
6161
"eslint": "^8.19.0",
62+
"eslint-plugin-ft-flow": "^3.0.11",
6263
"jest": "^29.6.3",
6364
"patch-package": "^8.0.0",
6465
"prettier": "2.8.8",

0 commit comments

Comments
 (0)