Skip to content

Conversation

@alduzy
Copy link
Contributor

@alduzy alduzy commented Oct 14, 2024

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

Test code and steps to reproduce

  • use Test2282.tsx repro

Checklist

  • Included code example that can be used to test this change
  • Ensured that CI passes

@alduzy alduzy requested a review from WoLewicki October 14, 2024 14:15
Copy link
Member

@kkafar kkafar left a comment

Choose a reason for hiding this comment

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

Just a single note, the logic seems ok.

Copy link
Member

@kkafar kkafar left a comment

Choose a reason for hiding this comment

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

Final remark

@alduzy alduzy merged commit d40e108 into main Oct 14, 2024
@alduzy alduzy deleted the @alduzy/going-back-with-horizontal-list-fix branch October 14, 2024 14:52
kkafar pushed a commit that referenced this pull request Oct 25, 2024
## 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)
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.

Android RN 0.75.3, app crashes when returning to the previous screen

4 participants