Skip to content

fix: reanimated 4.3.0 attachment preview list#3569

Merged
isekovanic merged 3 commits intodevelopfrom
fix/reanimated-4.3.0-attachment-preview-list
Apr 24, 2026
Merged

fix: reanimated 4.3.0 attachment preview list#3569
isekovanic merged 3 commits intodevelopfrom
fix/reanimated-4.3.0-attachment-preview-list

Conversation

@isekovanic
Copy link
Copy Markdown
Contributor

@isekovanic isekovanic commented Apr 24, 2026

🎯 Goal

This PR fixes an issue that was unfortunately introduced with upgrading react-native-reanimated to 4.3.0 amongst other things. The issue stems from how reanimated actually synchronizes values with state and scrolling behaviour, which has clearly changed. Because of that, it was very common for our scrollable area (the calculated one) to become completely out of sync with the list because of the correction we were applying.

For now, this has been fixed by ditching that approach entirely and relying purely on a resizable spacer that waits for animations to finish and all frames to settle before reducing its width. Essentially, it's deferred list resizing that forces waiting for animations to finish before that. A lot of code has been added, but now the animations are smooth on both versions of reanimated.

🛠 Implementation details

🎨 UI Changes

iOS
Before After
Android
Before After

🧪 Testing

☑️ Checklist

  • I have signed the Stream CLA (required)
  • PR targets the develop branch
  • Documentation is updated
  • New code is tested in main example apps, including all possible scenarios
    • SampleApp iOS and Android
    • Expo iOS and Android

@isekovanic isekovanic requested a review from oliverlaz April 24, 2026 17:54
@Stream-SDK-Bot
Copy link
Copy Markdown
Contributor

SDK Size

title develop branch diff status
js_bundle_size 360 KB 360 KB 0 B 🟢

@isekovanic isekovanic merged commit c059844 into develop Apr 24, 2026
6 checks passed
@isekovanic isekovanic deleted the fix/reanimated-4.3.0-attachment-preview-list branch April 24, 2026 18:03
@github-actions github-actions Bot mentioned this pull request Apr 28, 2026
6 tasks
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.

2 participants