Skip to content

Conversation

khushal87
Copy link
Member

Due to a bug in earlier RN versions, we needed to implement a workaround for Android regarding inversions of the FlatList.

It boils down to this value here.

Since starting with V8 we are supporting only version 0.73.0 of React Native and onwards, we are finally safe to remove this.

It should prove to be a minor performance boost on Android.

@Stream-SDK-Bot
Copy link
Contributor

Stream-SDK-Bot commented Aug 21, 2025

SDK Size

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

Copy link
Contributor

@isekovanic isekovanic left a comment

Choose a reason for hiding this comment

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

So happy we can do this at last !

@khushal87 khushal87 merged commit 3e4f797 into develop Aug 22, 2025
5 of 6 checks passed
@khushal87 khushal87 deleted the fix/remove-message-list-workaround branch August 22, 2025 08:10
),
[shouldApplyAndroidWorkaround, FooterComponent],
);
const ListFooterComponent = useCallback(() => <FooterComponent />, [FooterComponent]);
Copy link
Member

Choose a reason for hiding this comment

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

Do we have to wrap these components in useCallback()?
I'm pretty sure that

const ListFooterComponent = FooterComponent;

will work the same, and would be more performant too.

@github-actions github-actions bot mentioned this pull request Aug 22, 2025
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.

4 participants