Skip to content

Flicker / layout jump on mount (Android, Expo) #2728

@AnasZairig

Description

@AnasZairig

Description
GiftedChat causes a visible layout flicker on initial mount.
The screen renders with an incorrect height, then quickly re-renders to the correct layout.

Environment
react-native-gifted-chat: "^2.8.1",
react-native: "0.74.5"
expo: "~51.0.39"
Platform: Android (real device)

Expected behavior
No layout shift on mount.

Actual behavior
Visible flicker / jump on first render.

Code snippet

<View style={{ flex: 1, paddingBottom: insets.bottom }}>
<GiftedChat
messages={messages}
onSend={onSend}
user={{ _id: userId }}
keyboardAvoidingViewProps={{
keyboardVerticalOffset: insets.bottom,
}}
/>

Video

WhatsApp.Video.2026-03-25.at.01.12.37.mp4

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions