question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Keyboard blocking over text input - iOS

See original GitHub issue

Issue Description

I am using the gifted chat library to send a message, however, when the keyboard is displayed the TextInput is hidden.

Steps to Reproduce / Code Snippets

Inside the render method

: question ? <View> <ChatBox text={question.text} textStyle={{fontSize: this.state.customFontSize}} /> <View> {actionMenuContent} </View> </View>

createActionMenu() { if (this.state.isAnswering) { return ( <View style={styles.answeringView}> <GiftedChat placeholder={'Type an answer...'} text={this.state.answerText} onInputTextChanged={txt => this.setState({ answerText: txt })} onSend={this.answerQuestion.bind(this)} textStyle={{color:'red', fontSize: 22}} /> </View> )

answeringView: { flex: 1, height: 45, marginTop: 500, flexDirection: 'row', justifyContent: 'center', paddingHorizontal: 10, paddingVertical: 3, backgroundColor: '#EEE', },

photo_2018-03-01_11-53-08 photo_2018-03-01_11-53-13

Expected Results

The TextInput should be displayed on top of the keyboard. I have been dealing with this for quite some time now. Any help would be appreciative. Thanks.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:3
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
c-goettertcommented, Sep 3, 2018

I could fix this by setting a negative bottomOffset- prop for GiftedChat on iOS. Looks like a hacky workaround, but seems to do it’s job…

<GiftedChat bottomOffset={-40} />
1reaction
selfekycommented, May 5, 2018

did you find a solution? @yoonzm @isthaison @hakuj

Read more comments on GitHub >

github_iconTop Results From Across the Web

Virtual keyboard covers text when typing - Apple Community
On you iPad = Go to settings, general, keyboard and close split keyboard. This should fix it. Show more Less. View in context....
Read more >
iPhone Keyboard Covers UITextField - ios - Stack Overflow
The simplest way to manage text objects with the keyboard is to embed them inside a UIScrollView object (or one of its subclasses...
Read more >
Keyboard covering text field? : r/iphone - Reddit
Recently my keyboard is rolling up and covering the text field so I can't see what I'm typing and can't copy/paste or use...
Read more >
Keyboard hides input field on iPhone device - OutSystems
Keyboard hides input field on iPhone device ... Hi,. In a mobile application, I have an input widget at the bottom of the...
Read more >
ipad - This gray bar blocking my text box is driving me insane ...
That bar is part of the QuickType predictive keyboard feature on iOS. To turn the feature off, go to Settings > General >...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found