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.

Samsung Keyboard, textInputBox covered [Expo: 35.0.0]

See original GitHub issue

Issue Description

Samsung s7 Edge, using Samsung Keyboard which comes with the phone. The textInputBox is being hidden when the keyboard becomes active.

At the moment I can still see all the messages in the conversation, scroll through them etc. I am wrapping the <GiftedChat /> comp in a <KeyboardAvoidingView /> after reading another github issue here - didnt solve my issue, putting the <KeyboardAvoidingView /> after the <GiftedChat /> didnt fix the issue either.

Steps to Reproduce / Code Snippets


renderContent = () => {
    const { messages: stateMessages } = this.state;
    const me = this.getMe();
    return (
      <View style={{ flex: 1 }}>
        <KeyboardAvoidingView style={{ flex: 1 }}>
          <GiftedChat
            showUserAvatar
            scrollToBottom
            messages={stateMessages}
            onSend={messages => this.onSend(messages)}
            user={me}
            bottomOffset={55}
            parsePatterns={this.parsePatterns}
            renderActions={this.renderConversationActions}
            renderCustomView={this.renderCustomView}
            renderBubble={this.renderBubble}
            renderMessageVideo={this.renderCustomVideo}
            renderTime={this.renderTime}
            forceGetKeyboardHeight
          />
        </KeyboardAvoidingView>
      </View>
    );
  };

Expected Results

should be able to scroll and see all messages in conversation as well as the textInput and the message I am typing.

Additional Information

I have an android device to test with that is using Gboard as the keyboard software and everything works fine.

  • Nodejs version: 12.12.0
  • React version: [FILL THIS OUT]
  • React Native version: [FILL THIS OUT]
  • Expo version: 35.0.0
  • react-native-gifted-chat version: ^0.7.3
  • Platform(s) (iOS, Android, or both?): Android
  • TypeScript version: [FILL THIS OUT]

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:7

github_iconTop GitHub Comments

2reactions
theodelebarrecommented, Dec 16, 2019

@virtualLast Just had the same issue. Solved it by NOT having forceGetKeyboardHeight prop and by adding the following below GiftedChat component: {Platform.OS === "android" && <KeyboardSpacer />}

Find it here I do not know if that works with a Google Keyboard


EDIT: Just tried with Google Keyboard and it is working.

0reactions
stale[bot]commented, Jan 15, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Expo SDK v(null) - Expo Client requires v35.0.0 - Stack Overflow
I basically just did what was asked and changed expo to 35.0.0 and have react-native point to sdk-35.0.0.tar.gz.
Read more >
Expo v35: Error: Unsupported SDK Version!
Hi, I try to build the apk / ipa and every time i get this error: Error: Unsupported SDK Version! Expo CLI 3.1.2...
Read more >
Expo network response Timed Out, Can't run ... - AndroidBugFix
Users/RiggedToBlow/Downloads/Compressed/react-native-sdk-35.0.0.tar.gz", "react-native-gesture-handler": "~1.3.0", ...
Read more >
expo - npm
The Expo SDK. Latest version: 47.0.9, last published: 2 days ago. Start using expo in your project by running `npm i expo`.
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