From db6b7fa543e41bf14cc4ac2d0ad1e6d87f984245 Mon Sep 17 00:00:00 2001 From: lucas Date: Wed, 9 Oct 2024 23:37:25 -0300 Subject: [PATCH 1/7] add check version to new arch --- samples/react-native/src/App.tsx | 5 + .../src/Screens/HeavyNativationScreen.tsx | 103 ++++++++++++++++++ .../src/Screens/PerformanceScreen.tsx | 18 +++ src/js/tracing/timetodisplay.tsx | 5 +- test/tracing/timetodisplay.test.tsx | 67 ++++++++++++ 5 files changed, 197 insertions(+), 1 deletion(-) create mode 100644 samples/react-native/src/Screens/HeavyNativationScreen.tsx diff --git a/samples/react-native/src/App.tsx b/samples/react-native/src/App.tsx index 31b3b89e1d..5ea25616b4 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 HeavyNativationScreen from './Screens/HeavyNativationScreen'; 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 TrackerScreen = (props: Props) => { + + const content = ( + + + + Heavy page only intended for navigating to another page while the page is loading. + + + {buttonTitles.map((title, index) => ( +