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.

The entire screen moves up when keyboard opened.

See original GitHub issue

When I tap the input and opens the keyboard, the screen moves up and the header and some messages are hidden due to this behavior.

image image

Code:

<View style={{ paddingTop: 5, paddingBottom: 10, flex: 1 }}>
    <GiftedChat
          bottomOffset={10}
          keyboardShouldPersistTaps="never"
          text={sendMessageText}
          onInputTextChanged={setSendMessageText}
          messages={chatMessages}
          renderAvatar={props.isGroup ? undefined : null}
          alwaysShowSend
          onSend={onSend}
          onLongPress={onLongPress}
          renderSend={renderSendAction}
          textInputStyle={styles.textInputStyle}
          listViewProps={{
            showsHorizontalScrollIndicator: false,
            showsVerticalScrollIndicator: false,
            scrollEventThrottle: 400,
            onScroll: ({ nativeEvent }) => {
              if (isCloseToTop(nativeEvent)) {
                loadMore();
              }
            }
          }}
          renderBubble={(prop) =>
            renderBubble({
              ...prop,
              theme,
            })
          }
          renderMessage={renderMessage}
          renderCustomView={renderCustomView}
          renderActions={renderActionPlus}
          renderInputToolbar={renderInputToolbar}
          renderDay={renderDay}
          renderTime={() => {}}
          user={{
            _id: content.chatRoomReducer.authUser._id
          }}
    />
</View>

Issue Analytics

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

github_iconTop GitHub Comments

0reactions
Darex1991commented, May 25, 2022

Hi, the same problem with ios. Any ideas? I’m using react-navigation

Read more comments on GitHub >

github_iconTop Results From Across the Web

Move layouts up when soft keyboard is shown? - Stack Overflow
I would like them to move up so that if there is enough screen space they are shown above the keyboard, or to...
Read more >
Move your layout up to a certain View when Keyboard is ...
Well, one solution to achieve this is to put everything inside a ScrollView and just scroll up to the required position when the...
Read more >
Use the On-Screen Keyboard (OSK) to type - Microsoft Support
Go to Start , then select Settings > Accessibility > Keyboard, and turn on the On-Screen Keyboard toggle. A keyboard that can be...
Read more >
How to Navigate Windows Using a Keyboard - Computer Hope
To maximize a window, press the Windows key and up arrow at the same time. Moving a window. Before you can move any...
Read more >
My desktop keyboard wont type letters
Once the command window opens up, type in the command below and hit 'Enter' ... On-Screen Keyboard is workable Step Two - Disable...
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