Skip to content

fix: disable LayoutAnimation in KeyboardCompatibleView - #3789

Merged
oliverlaz merged 1 commit into
developfrom
fix/disable-layout-animation-keyboard-compatible-view
Aug 27, 2026
Merged

fix: disable LayoutAnimation in KeyboardCompatibleView#3789
oliverlaz merged 1 commit into
developfrom
fix/disable-layout-animation-keyboard-compatible-view

Conversation

@isekovanic

Copy link
Copy Markdown
Contributor

🎯 Goal

It would appear that in react-native-reanimated version 4.6.0 and onwards, the swallowing of LayoutAnimation.configureNext in Reanimated has been fixed. However, this now causes our keyboard animations to struggle with the Reanimated animation due to the fact that they are both trying to animate the layout.

I somehow missed this in the RN 0.87 upgrade, but it should be fixed here.

To address it, we disable the LayoutAnimation in our KeyboardCompatibleView because:

  1. It never worked pre 4.6.0 of reanimated
  2. Where it does work, it's interfering with the actual layout animation

So this change basically makes sure we have the old behaviour again.

🛠 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

@Stream-SDK-Bot

Copy link
Copy Markdown
Contributor

SDK Size

title develop branch diff status
js_bundle_size 2031 KB 2031 KB -214 B 🚀

@oliverlaz
oliverlaz merged commit bf16ccc into develop Aug 27, 2026
10 checks passed
@oliverlaz
oliverlaz deleted the fix/disable-layout-animation-keyboard-compatible-view branch August 27, 2026 16:05
isekovanic added a commit that referenced this pull request Aug 27, 2026
fix: disable LayoutAnimation in KeyboardCompatibleView (#3789)
@stream-ci-bot

Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 9.8.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants