diff --git a/CHANGELOG.md b/CHANGELOG.md index 88edc6e3ed..782e0a1f81 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,7 @@ ### Fixes +- TimetoTisplay correctly warns about not supporting the new React Native architecture ([#4160](https://github.com/getsentry/sentry-react-native/pull/4160)) - Handles error with string cause ([#4163](https://github.com/getsentry/sentry-react-native/pull/4163)) - Use `appLaunchedInForeground` to determine invalid app start data on Android ([#4146](https://github.com/getsentry/sentry-react-native/pull/4146)) - Upload source maps for all release variants on Android (not only the last found) ([#4125](https://github.com/getsentry/sentry-react-native/pull/4125)) diff --git a/samples/react-native/src/App.tsx b/samples/react-native/src/App.tsx index 31b3b89e1d..ce23f6828f 100644 --- a/samples/react-native/src/App.tsx +++ b/samples/react-native/src/App.tsx @@ -33,6 +33,7 @@ import { HttpClient } from '@sentry/integrations'; import Ionicons from 'react-native-vector-icons/Ionicons'; import PlaygroundScreen from './Screens/PlaygroundScreen'; import { logWithoutTracing } from './utils'; +import HeavyNavigationScreen from './Screens/HeavyNavigationScreen'; LogBox.ignoreAllLogs(); @@ -168,6 +169,10 @@ const TabTwoStack = Sentry.withProfiler( name="ManualTracker" component={ManualTrackerScreen} /> + ; + route?: { + params?: { + manualTrack: boolean; + }; + }; +} +const buttonTitles = Array.from( + { length: 500 }, + (_, index) => `Sample button ${index + 1}`, +); + +/** + * this page takes around 300ms to initially display, we navigate to another page in 100ms. + * The time to initial display will never be finished on this page. + */ +const HeavyNavigationScreen = (props: Props) => { + const content = ( + + + + Heavy page only intended for navigating to another page while the page + is loading. + + + {buttonTitles.map((title, index) => ( +