Skip to content

Modal View resizes automatically when keyboard opens (Android) #28063

@panda0603

Description

@panda0603

Description:

I'm using Modal component, which contains multiple views as child. The View has some TextInput elements. When the keyboard pops up, the modal view resizes to fit into the remaining space above the keyboard, and reverts back when keyboard closes(checked by giving borderWidth), but I don't want the Modal to resize when keyboard opens.

This does not happen for IOS. And also, it does not happen in non-modal Views for Android.

I have windowSoftInputMode="adjustPan" set in my android Manifest, but it doesn't seem to be applied on the Modal.

Tried applying fixed height to the Modal, and full screen height to modal's child view as well, but doesn't work

React Native version:

0.61.5

Steps To Reproduce

TextInput within a modal.

Expected Results

Modal view to retain its height.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Needs: Triage 🔍StaleThere has been a lack of activity on this issue and it may be closed soon.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions