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

iOS: Keyboard covers input when predictive text is disabled and TextInput has multiline enabled #74

Open
michaelcurtis opened this issue Mar 20, 2019 · 4 comments

Comments

@michaelcurtis
Copy link

react-native: 0.57.7
macOS: 10.14.3
Xcode: 10.1 (10B61)
Device: iPhone X
iOS: 12.1.4
[email protected]
[email protected]

Component:
KeyboardAccessoryView

Description:
With predictive text disabled in the iPhone settings: the keyboard covers the TextInput after showing a custom keyboard then focusing the TextInput field. With predictive text enabled it works fine.

Clue:
I narrowed it down to "multiline" in the TextArea. If "multiline" is disabled it works as expected. react-native-autogrow-textinput has multiline enabled by default, so the demoScreen.js doesn't work out of the box when you disable "predictive" mode.

Steps to reproduce:

  1. Disable predictive text on iPhone in: Settings > General > Keyboard
  2. Run demoScreen.js (from this package)
  3. Open a custom keyboard ("show1")
  4. Focus the TextInput.

I have omitted the code for brevity, but I am running copy/paste from demoScreen.js. Thanks in advance for taking a look and for creating this otherwise great package!

Screenshot of step 3:
IMG_1753

Screenshot of step 4:
IMG_1754

@michaelcurtis michaelcurtis changed the title iOS: Keyboard covers input when predictive text is off and TextInput has multiline enabled iOS: Keyboard covers input when predictive text is disabled and TextInput has multiline enabled Mar 20, 2019
@silverbuggy
Copy link

I have the same issue on simulator when I set autoCorrect={false} on TextInput, which I believe has the same effect as disabling predictive text. I see the bug regardless of whether TextInput has multiline enabled. It only covers input if I first bring up the alternate keyboard and then focus on the text input. If I bring up the real keyboard first and then switch to alternate keyboard it's fine.

@mlapeter
Copy link

@michaelcurtis Curious were you ever able to resolve this? I'm seeing same.

@michaelcurtis
Copy link
Author

@mlapeter Unfortunately not. I ended up sticking with a hand-rolled implementation.

@dekameron22
Copy link

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants