Skip to content

feat(sampleApps): Update sample apps to React Native 0.80, update other dependencies, improve code quality #5057

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 11 commits into
base: main
Choose a base branch
from

Conversation

alwx
Copy link
Contributor

@alwx alwx commented Aug 11, 2025

Fixes #4941

Includes:

  • React Native version bump (to 0.80.2)
  • react-native-vector-icons version bump (with the updated imports)
  • updated usage of Redux (with @toolkit/redux)
  • all the individual tabs have moved to /src/tabs
  • removed the usage of Sentry.getCurrentHub() (not supported anymore because of OpenTelemetry)
  • sorted imports, code style changes
  • returned WebviewScreen which was disabled due to issues with RN 0.79
  • RCTNewArchEnabled added to Info.plist

Important things to know:

Copy link
Contributor

github-actions bot commented Aug 11, 2025

Messages
📖 Do not forget to update Sentry-docs with your feature once the pull request gets approved.

Generated by 🚫 dangerJS against 980c5a5

Copy link
Contributor

github-actions bot commented Aug 11, 2025

Android (new) Performance metrics 🚀

  Plain With Sentry Diff
Startup time 388.48 ms 438.27 ms 49.79 ms
Size 7.15 MiB 8.42 MiB 1.27 MiB

Baseline results on branch: main

Startup times

Revision Plain With Sentry Diff
eb07ba3+dirty 419.49 ms 482.12 ms 62.63 ms
534ba8c+dirty 472.35 ms 537.31 ms 64.96 ms
3e0a5f9+dirty 379.92 ms 450.96 ms 71.04 ms
d916aa3+dirty 411.72 ms 451.76 ms 40.03 ms
785ffb1+dirty 380.65 ms 451.83 ms 71.18 ms

App size

Revision Plain With Sentry Diff
eb07ba3+dirty 7.15 MiB 8.42 MiB 1.27 MiB
534ba8c+dirty 7.15 MiB 8.42 MiB 1.27 MiB
3e0a5f9+dirty 7.15 MiB 8.42 MiB 1.27 MiB
d916aa3+dirty 7.15 MiB 8.42 MiB 1.27 MiB
785ffb1+dirty 7.15 MiB 8.42 MiB 1.27 MiB

Copy link
Contributor

github-actions bot commented Aug 11, 2025

iOS (legacy) Performance metrics 🚀

  Plain With Sentry Diff
Startup time 1219.98 ms 1233.39 ms 13.41 ms
Size 2.63 MiB 3.81 MiB 1.18 MiB

Baseline results on branch: main

Startup times

Revision Plain With Sentry Diff
3e0a5f9+dirty 1226.94 ms 1230.02 ms 3.08 ms
eb07ba3+dirty 1222.46 ms 1220.37 ms -2.08 ms
d916aa3+dirty 1221.02 ms 1228.98 ms 7.96 ms
785ffb1+dirty 1237.63 ms 1240.50 ms 2.87 ms
534ba8c+dirty 1230.22 ms 1231.18 ms 0.96 ms

App size

Revision Plain With Sentry Diff
3e0a5f9+dirty 2.63 MiB 3.81 MiB 1.18 MiB
eb07ba3+dirty 2.63 MiB 3.81 MiB 1.18 MiB
d916aa3+dirty 2.63 MiB 3.81 MiB 1.18 MiB
785ffb1+dirty 2.63 MiB 3.81 MiB 1.18 MiB
534ba8c+dirty 2.63 MiB 3.81 MiB 1.18 MiB

Copy link
Contributor

github-actions bot commented Aug 11, 2025

iOS (new) Performance metrics 🚀

  Plain With Sentry Diff
Startup time 1227.51 ms 1228.43 ms 0.92 ms
Size 3.19 MiB 4.38 MiB 1.19 MiB

Baseline results on branch: main

Startup times

Revision Plain With Sentry Diff
3e0a5f9+dirty 1233.65 ms 1239.10 ms 5.45 ms
eb07ba3+dirty 1214.49 ms 1221.59 ms 7.10 ms
d916aa3+dirty 1211.02 ms 1221.33 ms 10.31 ms
785ffb1+dirty 1213.71 ms 1213.37 ms -0.35 ms
534ba8c+dirty 1225.00 ms 1237.43 ms 12.43 ms

App size

Revision Plain With Sentry Diff
3e0a5f9+dirty 3.19 MiB 4.38 MiB 1.19 MiB
eb07ba3+dirty 3.19 MiB 4.38 MiB 1.19 MiB
d916aa3+dirty 3.19 MiB 4.38 MiB 1.19 MiB
785ffb1+dirty 3.19 MiB 4.38 MiB 1.19 MiB
534ba8c+dirty 3.19 MiB 4.38 MiB 1.19 MiB

@alwx alwx force-pushed the alwx/improvement/sample-apps branch from 86c75f1 to 86a520f Compare August 11, 2025 15:43
@alwx alwx changed the title WIP: Update sample apps to React Native 0.80 feat(sampleApps): Update sample apps to React Native 0.80, update other dependencies, improve code quality Aug 11, 2025
Copy link
Contributor

github-actions bot commented Aug 11, 2025

Android (legacy) Performance metrics 🚀

  Plain With Sentry Diff
Startup time 438.14 ms 423.04 ms -15.10 ms
Size 17.75 MiB 20.15 MiB 2.41 MiB

Baseline results on branch: main

Startup times

Revision Plain With Sentry Diff
eb07ba3 470.04 ms 473.35 ms 3.31 ms
3e0a5f9 401.72 ms 394.98 ms -6.74 ms
534ba8c 484.00 ms 499.93 ms 15.93 ms
d916aa3 425.37 ms 427.02 ms 1.65 ms
785ffb1 471.92 ms 460.96 ms -10.96 ms

App size

Revision Plain With Sentry Diff
eb07ba3 17.75 MiB 20.15 MiB 2.41 MiB
3e0a5f9 17.75 MiB 20.15 MiB 2.41 MiB
534ba8c 17.75 MiB 20.15 MiB 2.41 MiB
d916aa3 17.75 MiB 20.15 MiB 2.41 MiB
785ffb1 17.75 MiB 20.15 MiB 2.41 MiB

@alwx alwx force-pushed the alwx/improvement/sample-apps branch from 5db30fb to b1d66e9 Compare August 12, 2025 09:21
@alwx alwx marked this pull request as ready for review August 12, 2025 09:28
@@ -8,6 +8,8 @@
## Unreleased

- Update the sample app to React Native 0.80, update other dependencies, improve code quality of the sample app ([#5057](https://github.com/getsentry/sentry-react-native/pull/5057))
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We usually omit internal changes like sample update.


interface Props {
navigation: StackNavigationProp<any, 'HeavyNatigavionScreen'>;
navigation: StackNavigationProp<any, 'HeavyNavigationScreen'>;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice catch!

@lucas-zimerman
Copy link
Collaborator

Q: Have you checked if the sample app is building on iOS?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bump sample apps to RN 0.80.0
2 participants