Commit 0577b68
authored
fix(Android, Examples): Fix crashes in examples below API level 29 (#3588)
## Description
<img width="1121" height="175" alt="Screenshot 2026-01-29 at 15 41 29"
src="https://github.com/user-attachments/assets/4d19fff5-ca98-40bf-b605-69aa1f9204d1"
/>
## Changes
- Wrapper problematic code with the API-level check
## Before & after - visual documentation
### Before
Crash (on API level 28)
### After
No crash (on API level 28)
## Test plan
Launch both apps on device with API lvl < 29
## Checklist
- [x] Included code example that can be used to test this change.
- [ ] Updated / created local changelog entries in relevant test files.
- [ ] For visual changes, included screenshots / GIFs / recordings
documenting the change.
- [ ] For API changes, updated relevant public types.
- [x] Ensured that CI passes1 parent 1b84d3a commit 0577b68
2 files changed
Lines changed: 8 additions & 2 deletions
File tree
- Example/android/app/src/main/java/com/swmansion/rnscreens/example
- FabricExample/android/app/src/main/java/com/fabricexample
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
34 | 37 | | |
35 | 38 | | |
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
34 | 37 | | |
35 | 38 | | |
0 commit comments