The entire screen moves up when keyboard opened.
See original GitHub issueWhen I tap the input and opens the keyboard, the screen moves up and the header and some messages are hidden due to this behavior.
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:
- Created 3 years ago
- Comments:6 (1 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
another solution?
Hi, the same problem with ios. Any ideas? I’m using react-navigation