Commit 5a9afbb
fix(Android): going back on fabric with horizontal list crash (#2403)
## Description
This PR handles yet another case for going back on fabric. In the
previous one
(#2383) I
omitted a case where a horizontal list is simply rendered w/o being
nested in any other list!
Fixes #2341
## Changes
- updated `Test2292.tsx` repro
- handle `parentView is ReactHorizontalScrollView`
<!--
## Screenshots / GIFs
Here you can add screenshots / GIFs documenting your change.
You can add before / after section if you're changing some behavior.
### Before
### After
-->
## Test code and steps to reproduce
- use `Test2282.tsx` repro
## Checklist
- [x] Included code example that can be used to test this change
- [x] Ensured that CI passes
(cherry picked from commit d40e108)1 parent 71db286 commit 5a9afbb
File tree
2 files changed
+25
-8
lines changed- android/src/main/java/com/swmansion/rnscreens/ext
- apps/src/tests
2 files changed
+25
-8
lines changedLines changed: 10 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
44 | | - | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
45 | 53 | | |
46 | | - | |
47 | 54 | | |
48 | 55 | | |
49 | 56 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
36 | 45 | | |
37 | 46 | | |
38 | | - | |
| 47 | + | |
39 | 48 | | |
40 | | - | |
| 49 | + | |
41 | 50 | | |
42 | | - | |
| 51 | + | |
43 | 52 | | |
44 | | - | |
| 53 | + | |
45 | 54 | | |
46 | | - | |
| 55 | + | |
47 | 56 | | |
48 | 57 | | |
49 | 58 | | |
50 | 59 | | |
51 | 60 | | |
| 61 | + | |
52 | 62 | | |
53 | 63 | | |
54 | 64 | | |
| |||
0 commit comments