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 covers text input on android only

See original GitHub issue

Issue Description

The keyboard covers the text input on android only. It doesn’t look like the content moves at all. My configuration is essentially the default, and while I do use react-navigation, this page has neither tabs nor a top header.

I’ve been through all of the other issues on this repo concerning what seems to be the same issue here and tried all of them to no avail on android (iOS works fine, even when I do add a header or bottom tabs).

Steps to Reproduce / Code Snippets

<View style={{ flex: 1 }}>
<GiftedChat
          messages={messages}
          onSend={sendMessage}
          user={{
            _id: -1,
          }}
/>
</View>

Expected Results

The text input (and the existing messages) to slide up above the keyboard.

Additional Information

  • Nodejs version: v16.13.0
  • React version: 17.0.2
  • React Native version: 0.68.2

https://user-images.githubusercontent.com/19966086/179897620-9637ad3f-b338-48db-8d23-d91409151836.mov

  • react-native-gifted-chat version: 1.0.4
  • Platform(s) (iOS, Android, or both?): Android
  • TypeScript version: N/A

Issue Analytics

  • State:open
  • Created a year ago
  • Reactions:1
  • Comments:9

github_iconTop GitHub Comments

3reactions
huuthinh95commented, Jul 21, 2022

You can try https://stackoverflow.com/questions/3295672/android-soft-keyboard-covers-edittext-field

0reactions
chunghncommented, Sep 27, 2022

There is no effect of bottomOffset if windowSoftInputMode=“adjustPan”

Turns out I just use the default value, ‘resize’, and figured out these value for the Offset (I’m using expo)

bottomOffset={Platform.OS === "ios" ? 10 : 0}
minInputToolbarHeight={Platform.OS == "android" ? 48 : 40}
Read more comments on GitHub >

github_iconTop Results From Across the Web

My keyboard covers what I am typing in a text box
Hold down the icon to the right of the "Sym" at the bottom of the keyboard (it looks kind of like a microphone)....
Read more >
Keyboard covering text input : r/GooglePixel
Hello, Recently I began having issues with my phone where the keyboard will pop up from the bottom of the screen and cover...
Read more >
Android soft keyboard covers EditText field
When soft keyboard hide the input in webview or xwalkview you have use android:windowSoftInputMode="adjustResize".
Read more >
Virtual keyboard covers up texting conversation
In the initial text screen if I select an existing conversation and tap the "Text Message" box the virtual screen pops up but...
Read more >
How to fix: "My keyboard covers up what I'm trying to write ...
What to do when your Android keyboard covers up too much of an app. · The answer is surprisingly easy. You just shrink...
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