Skip to content

Commit 652a104

Browse files
author
Krystof Woldrich
committed
Merge remote-tracking branch 'origin/main' into kw-expo-doctor
2 parents 887ea6e + f32b22a commit 652a104

26 files changed

Lines changed: 102 additions & 40 deletions

File tree

CHANGELOG.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@
66
> make sure you follow our [migration guide](https://docs.sentry.io/platforms/react-native/migration/) first.
77
<!-- prettier-ignore-end -->
88
9-
## Unreleased
9+
## 6.11.0-beta.0
1010

1111
### Features
1212

13-
- Improve Warm App Start reporting on Android ([#4641](https://github.com/getsentry/sentry-react-native/pull/4641))
13+
- Improve Warm App Start reporting on Android ([#4641](https://github.com/getsentry/sentry-react-native/pull/4641), [#4695](https://github.com/getsentry/sentry-react-native/pull/4695))
1414
- Add `createTimeToInitialDisplay({useFocusEffect})` and `createTimeToFullDisplay({useFocusEffect})` to allow record full display on screen focus ([#4665](https://github.com/getsentry/sentry-react-native/pull/4665))
1515
- Add support for measuring Time to Initial Display for already seen routes ([#4661](https://github.com/getsentry/sentry-react-native/pull/4661))
1616
- Introduce `enableTimeToInitialDisplayForPreloadedRoutes` option to the React Navigation integration.
@@ -33,6 +33,7 @@
3333
### Fixes
3434

3535
- Equalize TTID and TTFD duration when TTFD manual API is called and resolved before auto TTID ([#4680](https://github.com/getsentry/sentry-react-native/pull/4680))
36+
- Avoid loading Sentry native components in Expo Go ([#4696](https://github.com/getsentry/sentry-react-native/pull/4696))
3637

3738
### Changes
3839

dev-packages/e2e-tests/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "sentry-react-native-e2e-tests",
3-
"version": "6.10.0",
3+
"version": "6.11.0-beta.0",
44
"private": true,
55
"description": "Sentry React Native End to End Tests Library",
66
"main": "dist/index.js",
@@ -14,7 +14,7 @@
1414
"@babel/preset-env": "^7.25.3",
1515
"@babel/preset-typescript": "^7.18.6",
1616
"@sentry/core": "8.54.0",
17-
"@sentry/react-native": "6.10.0",
17+
"@sentry/react-native": "6.11.0-beta.0",
1818
"@types/node": "^20.9.3",
1919
"@types/react": "^18.2.64",
2020
"appium": "2.4.1",

dev-packages/type-check/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "sentry-react-native-type-check",
33
"private": true,
4-
"version": "6.10.0",
4+
"version": "6.11.0-beta.0",
55
"scripts": {
66
"type-check": "./run-type-check.sh"
77
}

dev-packages/utils/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "sentry-react-native-samples-utils",
3-
"version": "6.10.0",
3+
"version": "6.11.0-beta.0",
44
"description": "Internal Samples Utils",
55
"main": "index.js",
66
"license": "MIT",

lerna.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"$schema": "node_modules/lerna/schemas/lerna-schema.json",
3-
"version": "6.10.0",
3+
"version": "6.11.0-beta.0",
44
"packages": [
55
"packages/*",
66
"dev-packages/*",

packages/core/android/src/main/java/io/sentry/react/RNSentryVersion.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
class RNSentryVersion {
44
static final String REACT_NATIVE_SDK_PACKAGE_NAME = "npm:@sentry/react-native";
5-
static final String REACT_NATIVE_SDK_PACKAGE_VERSION = "6.10.0";
5+
static final String REACT_NATIVE_SDK_PACKAGE_VERSION = "6.11.0-beta.0";
66
static final String NATIVE_SDK_NAME = "sentry.native.android.react-native";
77
static final String ANDROID_SDK_NAME = "sentry.java.android.react-native";
88
static final String REACT_NATIVE_SDK_NAME = "sentry.javascript.react-native";

packages/core/ios/RNSentryVersion.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
NSString *const NATIVE_SDK_NAME = @"sentry.cocoa.react-native";
44
NSString *const REACT_NATIVE_SDK_NAME = @"sentry.javascript.react-native";
55
NSString *const REACT_NATIVE_SDK_PACKAGE_NAME = @"npm:@sentry/react-native";
6-
NSString *const REACT_NATIVE_SDK_PACKAGE_VERSION = @"6.10.0";
6+
NSString *const REACT_NATIVE_SDK_PACKAGE_VERSION = @"6.11.0-beta.0";

packages/core/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "@sentry/react-native",
33
"homepage": "https://github.com/getsentry/sentry-react-native",
44
"repository": "https://github.com/getsentry/sentry-react-native",
5-
"version": "6.10.0",
5+
"version": "6.11.0-beta.0",
66
"description": "Official Sentry SDK for react-native",
77
"typings": "dist/js/index.d.ts",
88
"types": "dist/js/index.d.ts",

packages/core/src/js/integrations/appRegistry.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import type { Client, Integration } from '@sentry/core';
22
import { getClient, logger } from '@sentry/core';
33

4+
import { isWeb } from '../utils/environment';
45
import { fillTyped } from '../utils/fill';
56
import { ReactNativeLibraries } from '../utils/rnlibraries';
67

@@ -14,6 +15,10 @@ export const appRegistryIntegration = (): Integration & {
1415
return {
1516
name: INTEGRATION_NAME,
1617
setupOnce: () => {
18+
if (isWeb()) {
19+
return;
20+
}
21+
1722
patchAppRegistryRunApplication(callbacks);
1823
},
1924
onRunApplication: (callback: () => void) => {
@@ -28,6 +33,9 @@ export const appRegistryIntegration = (): Integration & {
2833

2934
export const patchAppRegistryRunApplication = (callbacks: (() => void)[]): void => {
3035
const { AppRegistry } = ReactNativeLibraries;
36+
if (!AppRegistry) {
37+
return;
38+
}
3139

3240
fillTyped(AppRegistry, 'runApplication', originalRunApplication => {
3341
return (...args) => {

packages/core/src/js/replay/CustomMask.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ import * as React from 'react';
33
import type { HostComponent, ViewProps } from 'react-native';
44
import { UIManager, View } from 'react-native';
55

6+
import { isExpoGo } from '../utils/environment';
7+
68
const NativeComponentRegistry: {
79
get<T, C extends Record<string, unknown>>(componentName: string, createViewConfig: () => C): HostComponent<T>;
810
// eslint-disable-next-line @typescript-eslint/no-var-requires
@@ -35,7 +37,7 @@ const UnmaskFallback = (viewProps: ViewProps): React.ReactElement => {
3537
const hasViewManagerConfig = (nativeComponentName: string): boolean => UIManager.hasViewManagerConfig && UIManager.hasViewManagerConfig(nativeComponentName);
3638

3739
const Mask = ((): HostComponent<ViewProps> | React.ComponentType<ViewProps> => {
38-
if (!hasViewManagerConfig(MaskNativeComponentName)) {
40+
if (isExpoGo() || !hasViewManagerConfig(MaskNativeComponentName)) {
3941
logger.warn(`[SentrySessionReplay] Can't load ${MaskNativeComponentName}.`);
4042
return MaskFallback;
4143
}
@@ -48,7 +50,7 @@ const Mask = ((): HostComponent<ViewProps> | React.ComponentType<ViewProps> => {
4850
})()
4951

5052
const Unmask = ((): HostComponent<ViewProps> | React.ComponentType<ViewProps> => {
51-
if (!hasViewManagerConfig(UnmaskNativeComponentName)) {
53+
if (isExpoGo() || !hasViewManagerConfig(UnmaskNativeComponentName)) {
5254
logger.warn(`[SentrySessionReplay] Can't load ${UnmaskNativeComponentName}.`);
5355
return UnmaskFallback;
5456
}

0 commit comments

Comments
 (0)