Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
panda0603 opened this issue Feb 14, 2020 · 5 comments
Closed

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

panda0603 opened this issue Feb 14, 2020 · 5 comments
Labels
Needs: Triage 🔍 Stale There has been a lack of activity on this issue and it may be closed soon.

Comments

@panda0603
Copy link

panda0603 commented Feb 14, 2020

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.

@panda0603 panda0603 changed the title Modal View resizes when keyboard opens (Android) Modal View resizes automatically when keyboard opens (Android) Feb 14, 2020
@ashertoufeeq
Copy link

Can you provide screen shots?

@panda0603
Copy link
Author

panda0603 commented Feb 16, 2020

@ashertoufeeq Sure thing.

Before textInput focused:
image

After text input focused:
image

You can see that red border shrinks as keyboard pops up. Happens only within a modal

@safaiyeh
Copy link
Contributor

Hello, Modal was moved to a community repo, can you make the issue there and make sure you’re using that one. https://github.com/react-native-community/react-native-modal

@stale
Copy link

stale bot commented May 16, 2020

Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. You may also label this issue as a "Discussion" or add it to the "Backlog" and I will leave it open. Thank you for your contributions.

@stale stale bot added the Stale There has been a lack of activity on this issue and it may be closed soon. label May 16, 2020
@stale
Copy link

stale bot commented May 23, 2020

Closing this issue after a prolonged period of inactivity. If this issue is still present in the latest release, please feel free to create a new issue with up-to-date information.

@stale stale bot closed this as completed May 23, 2020
@facebook facebook locked as resolved and limited conversation to collaborators May 24, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Needs: Triage 🔍 Stale There has been a lack of activity on this issue and it may be closed soon.
Projects
None yet
Development

No branches or pull requests

3 participants