-
Notifications
You must be signed in to change notification settings - Fork 24.3k
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
Comments
Can you provide screen shots? |
@ashertoufeeq Sure thing. You can see that red border shrinks as keyboard pops up. Happens only within a modal |
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 |
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. |
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. |
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:
Steps To Reproduce
TextInput within a modal.
Expected Results
Modal view to retain its height.
The text was updated successfully, but these errors were encountered: