Skip to content

Conversation

@antonis
Copy link
Contributor

@antonis antonis commented Oct 6, 2025

📢 Type of change

  • Bugfix
  • New feature
  • Enhancement
  • Refactoring

📜 Description

Fixes #5189

Removes usage of deprecated SafeAreaView in the playground and replaces it by using a simple View. Adding react-native-safe-area-context as suggested by the warning would be be desirable since it would add a third party dependency in core.

💡 Motivation and Context

💚 How did you test it?

Used the Expo app by uncommenting these lines and verified that the app behavior and appearance does not change

iOS Android
Screenshot_20251006_124952 Simulator Screenshot - iPhone 17 Pro - 2025-10-06 at 12 39 33

📝 Checklist

  • I added tests to verify changes
  • No new PII added or SDK only sends newly added PII if sendDefaultPII is enabled
  • I updated the docs if needed.
  • I updated the wizard if needed.
  • All tests passing
  • No breaking changes

🔮 Next steps

@github-actions
Copy link
Contributor

github-actions bot commented Oct 6, 2025

Android (legacy) Performance metrics 🚀

  Plain With Sentry Diff
Startup time 478.98 ms 477.38 ms -1.60 ms
Size 17.75 MiB 19.70 MiB 1.95 MiB

Baseline results on branch: main

Startup times

Revision Plain With Sentry Diff
af9331b 449.77 ms 479.20 ms 29.43 ms
9f211e3 451.50 ms 500.00 ms 48.50 ms
49ef936+dirty 405.96 ms 417.22 ms 11.26 ms
276d348+dirty 375.48 ms 403.76 ms 28.28 ms
98f632c 424.25 ms 435.48 ms 11.23 ms
170d5ea+dirty 407.92 ms 422.49 ms 14.57 ms
20d5eaa 377.62 ms 406.50 ms 28.88 ms
5526494 440.84 ms 448.36 ms 7.52 ms
95aaf8a 437.89 ms 419.45 ms -18.44 ms
6479fd5+dirty 412.95 ms 434.02 ms 21.07 ms

App size

Revision Plain With Sentry Diff
af9331b 17.75 MiB 19.68 MiB 1.94 MiB
9f211e3 17.75 MiB 19.68 MiB 1.94 MiB
49ef936+dirty 17.75 MiB 19.69 MiB 1.94 MiB
276d348+dirty 17.75 MiB 19.69 MiB 1.94 MiB
98f632c 17.75 MiB 20.15 MiB 2.41 MiB
170d5ea+dirty 17.75 MiB 19.70 MiB 1.95 MiB
20d5eaa 17.75 MiB 20.15 MiB 2.41 MiB
5526494 17.75 MiB 19.68 MiB 1.93 MiB
95aaf8a 17.75 MiB 19.68 MiB 1.93 MiB
6479fd5+dirty 17.75 MiB 19.68 MiB 1.94 MiB

Previous results on branch: antonis/remove-SafeAreaView

Startup times

Revision Plain With Sentry Diff
c5ae113+dirty 413.04 ms 414.98 ms 1.94 ms

App size

Revision Plain With Sentry Diff
c5ae113+dirty 17.75 MiB 19.70 MiB 1.95 MiB

@github-actions
Copy link
Contributor

github-actions bot commented Oct 6, 2025

iOS (legacy) Performance metrics 🚀

  Plain With Sentry Diff
Startup time 1220.08 ms 1235.48 ms 15.40 ms
Size 2.63 MiB 3.98 MiB 1.35 MiB

Baseline results on branch: main

Startup times

Revision Plain With Sentry Diff
7be1f99+dirty 1226.69 ms 1217.76 ms -8.93 ms
534ba8c+dirty 1230.22 ms 1231.18 ms 0.96 ms
5c16cdc+dirty 1209.32 ms 1210.67 ms 1.35 ms
a0b15d6+dirty 1220.18 ms 1223.18 ms 3.00 ms
8d89cc9+dirty 1222.92 ms 1239.43 ms 16.51 ms
e2fa43d+dirty 1216.04 ms 1232.65 ms 16.61 ms
1853710+dirty 1224.35 ms 1230.18 ms 5.84 ms
77061ed+dirty 1233.16 ms 1234.88 ms 1.71 ms
20d5eaa+dirty 1231.12 ms 1226.00 ms -5.12 ms
49ef936+dirty 1228.42 ms 1217.09 ms -11.33 ms

App size

Revision Plain With Sentry Diff
7be1f99+dirty 2.63 MiB 3.81 MiB 1.18 MiB
534ba8c+dirty 2.63 MiB 3.81 MiB 1.18 MiB
5c16cdc+dirty 2.63 MiB 3.96 MiB 1.33 MiB
a0b15d6+dirty 2.63 MiB 3.81 MiB 1.18 MiB
8d89cc9+dirty 2.63 MiB 3.96 MiB 1.33 MiB
e2fa43d+dirty 2.63 MiB 3.81 MiB 1.18 MiB
1853710+dirty 2.63 MiB 3.91 MiB 1.28 MiB
77061ed+dirty 2.63 MiB 3.98 MiB 1.34 MiB
20d5eaa+dirty 2.63 MiB 3.81 MiB 1.18 MiB
49ef936+dirty 2.63 MiB 3.98 MiB 1.34 MiB

Previous results on branch: antonis/remove-SafeAreaView

Startup times

Revision Plain With Sentry Diff
c5ae113+dirty 1230.71 ms 1225.78 ms -4.94 ms

App size

Revision Plain With Sentry Diff
c5ae113+dirty 2.63 MiB 3.98 MiB 1.35 MiB

@github-actions
Copy link
Contributor

github-actions bot commented Oct 6, 2025

iOS (new) Performance metrics 🚀

  Plain With Sentry Diff
Startup time 1253.10 ms 1250.57 ms -2.53 ms
Size 3.19 MiB 4.55 MiB 1.36 MiB

Baseline results on branch: main

Startup times

Revision Plain With Sentry Diff
7be1f99+dirty 1222.43 ms 1217.15 ms -5.28 ms
534ba8c+dirty 1225.00 ms 1237.43 ms 12.43 ms
5c16cdc+dirty 1235.67 ms 1241.18 ms 5.51 ms
a0b15d6+dirty 1213.79 ms 1210.45 ms -3.34 ms
8d89cc9+dirty 1232.35 ms 1228.53 ms -3.82 ms
e2fa43d+dirty 1224.43 ms 1235.40 ms 10.98 ms
1853710+dirty 1213.67 ms 1226.35 ms 12.67 ms
77061ed+dirty 1210.77 ms 1218.45 ms 7.68 ms
20d5eaa+dirty 1224.67 ms 1223.16 ms -1.51 ms
49ef936+dirty 1221.27 ms 1221.60 ms 0.34 ms

App size

Revision Plain With Sentry Diff
7be1f99+dirty 3.19 MiB 4.38 MiB 1.19 MiB
534ba8c+dirty 3.19 MiB 4.38 MiB 1.19 MiB
5c16cdc+dirty 3.19 MiB 4.53 MiB 1.34 MiB
a0b15d6+dirty 3.19 MiB 4.38 MiB 1.19 MiB
8d89cc9+dirty 3.19 MiB 4.53 MiB 1.35 MiB
e2fa43d+dirty 3.19 MiB 4.38 MiB 1.19 MiB
1853710+dirty 3.19 MiB 4.48 MiB 1.29 MiB
77061ed+dirty 3.19 MiB 4.54 MiB 1.36 MiB
20d5eaa+dirty 3.19 MiB 4.38 MiB 1.19 MiB
49ef936+dirty 3.19 MiB 4.54 MiB 1.36 MiB

Previous results on branch: antonis/remove-SafeAreaView

Startup times

Revision Plain With Sentry Diff
c5ae113+dirty 1208.18 ms 1201.55 ms -6.63 ms

App size

Revision Plain With Sentry Diff
c5ae113+dirty 3.19 MiB 4.55 MiB 1.36 MiB

@github-actions
Copy link
Contributor

github-actions bot commented Oct 6, 2025

Android (new) Performance metrics 🚀

  Plain With Sentry Diff
Startup time 382.27 ms 438.33 ms 56.06 ms
Size 7.15 MiB 8.42 MiB 1.27 MiB

Baseline results on branch: main

Startup times

Revision Plain With Sentry Diff
459a438+dirty 359.50 ms 390.53 ms 31.03 ms
6fee48d+dirty 370.23 ms 427.86 ms 57.63 ms
955f2eb+dirty 388.13 ms 433.56 ms 45.44 ms
b3b5b0d+dirty 361.42 ms 403.90 ms 42.48 ms
d916aa3+dirty 411.72 ms 451.76 ms 40.03 ms
bc9680d+dirty 346.77 ms 463.48 ms 116.71 ms
98f632c+dirty 323.98 ms 375.39 ms 51.41 ms
46da307+dirty 356.62 ms 415.02 ms 58.40 ms
c08359e+dirty 406.04 ms 428.87 ms 22.83 ms
5526494+dirty 380.79 ms 432.70 ms 51.91 ms

App size

Revision Plain With Sentry Diff
459a438+dirty 7.15 MiB 8.42 MiB 1.27 MiB
6fee48d+dirty 7.15 MiB 8.41 MiB 1.26 MiB
955f2eb+dirty 7.15 MiB 8.42 MiB 1.27 MiB
b3b5b0d+dirty 7.15 MiB 8.41 MiB 1.26 MiB
d916aa3+dirty 7.15 MiB 8.42 MiB 1.27 MiB
bc9680d+dirty 7.15 MiB 8.42 MiB 1.27 MiB
98f632c+dirty 7.15 MiB 8.42 MiB 1.27 MiB
46da307+dirty 7.15 MiB 8.41 MiB 1.26 MiB
c08359e+dirty 7.15 MiB 8.42 MiB 1.27 MiB
5526494+dirty 7.15 MiB 8.41 MiB 1.26 MiB

Previous results on branch: antonis/remove-SafeAreaView

Startup times

Revision Plain With Sentry Diff
c5ae113+dirty 400.43 ms 465.56 ms 65.13 ms

App size

Revision Plain With Sentry Diff
c5ae113+dirty 7.15 MiB 8.42 MiB 1.27 MiB

Copy link
Collaborator

@lucas-zimerman lucas-zimerman left a comment

Choose a reason for hiding this comment

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

LGTM!

@antonis antonis merged commit 0b64753 into main Oct 6, 2025
73 of 74 checks passed
@antonis antonis deleted the antonis/remove-SafeAreaView branch October 6, 2025 12:47
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.

SafeAreaView imported from react-native

3 participants