Commit 7e84e0b
authored
Update common example not to disable E2E (#3531)
## Description
Removes usage of `StatusBar` component, which disables edge-to-edge mode
and replaces RN's `SafeAreaView` with `useSafeAreaInsets` from
`react-native-safe-area-context`, which also works on Android.
## Test plan
iOS:
|Before|After|
|-|-|
|<img width="544" alt="Screenshot 2025-05-26 at 09 18 52"
src="https://github.com/user-attachments/assets/7c4eb741-e5c5-4176-9465-431d399f480a"
/>|<img width="544" alt="Screenshot 2025-05-26 at 09 19 18"
src="https://github.com/user-attachments/assets/5ad4e627-abf2-42fc-851b-cd6710b461a8"
/>|
Android:
|Before|After|
|-|-|
|<img width="436" alt="Screenshot 2025-05-26 at 09 18 57"
src="https://github.com/user-attachments/assets/57a316d3-5344-40e9-b161-2da2a7a55f99"
/>|<img width="436" alt="Screenshot 2025-05-26 at 09 36 45"
src="https://github.com/user-attachments/assets/55aab0ac-08f8-48e1-aaad-3bf7a6878b75"
/>|1 parent 3a93c6e commit 7e84e0b
2 files changed
Lines changed: 29 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
| 2 | + | |
11 | 3 | | |
12 | 4 | | |
13 | 5 | | |
| |||
19 | 11 | | |
20 | 12 | | |
21 | 13 | | |
| 14 | + | |
22 | 15 | | |
23 | 16 | | |
24 | 17 | | |
| |||
260 | 253 | | |
261 | 254 | | |
262 | 255 | | |
263 | | - | |
264 | 256 | | |
265 | 257 | | |
266 | 258 | | |
| |||
306 | 298 | | |
307 | 299 | | |
308 | 300 | | |
| 301 | + | |
| 302 | + | |
309 | 303 | | |
310 | 304 | | |
311 | 305 | | |
| |||
321 | 315 | | |
322 | 316 | | |
323 | 317 | | |
324 | | - | |
| 318 | + | |
325 | 319 | | |
326 | 320 | | |
327 | 321 | | |
328 | 322 | | |
329 | 323 | | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
330 | 328 | | |
331 | 329 | | |
332 | 330 | | |
| |||
339 | 337 | | |
340 | 338 | | |
341 | 339 | | |
342 | | - | |
| 340 | + | |
343 | 341 | | |
344 | 342 | | |
345 | 343 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
7 | 8 | | |
8 | 9 | | |
9 | 10 | | |
| |||
73 | 74 | | |
74 | 75 | | |
75 | 76 | | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
76 | 86 | | |
77 | 87 | | |
78 | | - | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
79 | 93 | | |
80 | 94 | | |
81 | 95 | | |
| |||
137 | 151 | | |
138 | 152 | | |
139 | 153 | | |
140 | | - | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
141 | 158 | | |
142 | 159 | | |
143 | 160 | | |
| |||
0 commit comments