Unable to control the modal behavior, it moves up every time the keyboard is opened. #27326
Labels
API: Keyboard
Bug
Component: Modal
Stale
There has been a lack of activity on this issue and it may be closed soon.
To reproduce this behavior I created a modal with two input texts and when you click on any one of them, the whole modal moves out of the screen. I tried setting
android:windowSoftInputMode
in AndroidManifest.xml toAdjustPan
,AdjustResize
and other values as well, nothing seems to have any effect on the behavior.Also, even though the first text input could be visible even when the keyboard is open yet it moves up and the second text input is not even visible when the keyboard is opened.
can't we control this behavior?
React Native version:
System:
OS: macOS High Sierra 10.13.6
CPU: (8) x64 Intel(R) Core(TM) i7-4770HQ CPU @ 2.20GHz
Memory: 56.18 MB / 16.00 GB
Shell: 3.2.57 - /bin/bash
Binaries:
Node: 8.11.4 - /usr/local/bin/node
Yarn: 1.9.4 - /usr/local/bin/yarn
npm: 6.4.1 - /usr/local/bin/npm
SDKs:
iOS SDK:
Platforms: iOS 11.4, macOS 10.13, tvOS 11.4, watchOS 4.3
Android SDK:
API Levels: 19, 20, 21, 22, 23, 24, 25, 26, 27, 28
Build Tools: 20.0.0, 23.0.1, 23.0.2, 23.0.3, 24.0.0, 24.0.1, 24.0.2, 24.0.3, 25.0.0, 25.0.1, 25.0.2, 25.0.3, 26.0.0, 26.0.1, 26.0.2, 26.0.3, 27.0.0, 27.0.1, 27.0.2, 27.0.3, 28.0.0, 28.0.1, 28.0.2, 28.0.3
System Images: android-23 | Google APIs Intel x86 Atom, android-24 | Google APIs Intel x86 Atom, android-24 | Google Play Intel x86 Atom, android-28 | Google APIs Intel x86 Atom
IDEs:
Android Studio: 3.4 AI-183.6156.11.34.5522156
Xcode: 9.4.1/9F2000 - /usr/bin/xcodebuild
npmPackages:
react: 16.9.0 => 16.9.0
react-native: 0.61.5 => 0.61.5
npmGlobalPackages:
create-react-native-app: 1.0.0
react-native-cli: 2.0.1
react-native-git-upgrade: 0.2.7
Steps To Reproduce
Describe what you expected to happen: Ability to control this behavior.
Here's the link to reproduce demo -> https://github.com/vishalenrique/modalBehavior
The text was updated successfully, but these errors were encountered: