Android - Keyboard hides InputToolBar and navigation hidden when input is focused
See original GitHub issueIssue Description
Android - Keyboard hides InputToolBar and navigation hidden when input is focused
Steps to Reproduce / Code Snippets
import { GiftedChat,
InputToolbar,
Composer,
LoadEarlier } from 'react-native-gifted-chat';
import React from 'react';
import { View } from 'react-native';
<View style={MessageStyle.container}>
<GiftedChat
isAnimated
showScrollBottom
alwaysShowSend
showUserAvatar
renderAvatarOnTop
showAvatarForEveryMessage
messages={[...messages]}
listViewProps={{
showsVerticalScrollIndicator: false,
style: { marginBottom: 12 },
}}
onSend={this.onSend}
user={senderDetails}
onDetail={() => true}
renderMessage={this.renderMessage}
renderSend={(props) => <Send {...props} status={sendMessageStatus === 'sending'} />}
renderLoadEarlier={(props) => (
<LoadEarlier
{...props}
label='Load more'
textStyle={MessageStyle.textStyle}
wrapperStyle={MessageStyle.loadEarlierStyle}
/>
)}
isLoadingEarlier={fetchMessagesStatus === 'fetching'}
onLoadEarlier={this.onLoadEarlier}
loadEarlier={loadEarlier}
renderComposer={(props) => (
<Composer {...props} textInputStyle={MessageStyle.textInputStyle} />
)}
renderInputToolbar={(props) => <InputToolbar {...props} />}
placeholder="Type here"
/>
</View>
Expected Results
- Keyboard should not hide input tool bar.
- Header is not visible.
Additional Information
System:
OS: macOS 10.15
CPU: (4) x64 Intel(R) Core(TM) i5-7267U CPU @ 3.10GHz
Memory: 21.13 MB / 8.00 GB
Shell: 5.7.1 - /bin/zsh
Binaries:
Node: 10.14.1 - /usr/local/bin/node
Yarn: 1.13.0 - /usr/local/bin/yarn
npm: 6.12.0 - /usr/local/bin/npm
Watchman: 4.9.0 - /usr/local/bin/watchman
SDKs:
iOS SDK:
Platforms: iOS 13.1, DriverKit 19.0, macOS 10.15, tvOS 13.0, watchOS 6.0
Android SDK:
API Levels: 23, 25, 26, 27, 28
Build Tools: 26.0.2, 27.0.3, 28.0.2, 28.0.3, 29.0.0
System Images: android-27 | Google Play Intel x86 Atom, android-28 | Google APIs Intel x86 Atom_64, android-Q | Android TV Intel x86 Atom, android-Q | Intel x86 Atom, android-Q | Google APIs Intel x86 Atom, android-Q | Google APIs Intel x86 Atom_64, android-Q | Google Play Intel x86 Atom, android-Q | Google Play Intel x86 Atom_64
IDEs:
Android Studio: 3.5 AI-191.8026.42.35.5791312
Xcode: 11.1/11A1027 - /usr/bin/xcodebuild
npmPackages:
react: 16.8.6 => 16.8.6
react-native: 0.60.5 => 0.60.5
npmGlobalPackages:
react-native-cli: 2.0.1
react-native-create-library: 3.1.2
react-native-git-upgrade: 0.2.7
react-native-swift-cli: 2.3.0
iOS 13, Android 8 or above
Issue Analytics
- State:
- Created 4 years ago
- Comments:7
Top Results From Across the Web
Hiding 'Bottom Navigation Bar' whilst keyboard is present
I have a small demo chat UI application. This application has a bottom navigation bar. I need the bottom navigation bar to hide...
Read more >Handle input method visibility | Android Developers
When input focus moves in or out of an editable text field, Android shows or hides the input method—such as the on-screen keyboard—as ......
Read more >react-native-gifted-chat - npm
focusTextInput() - Open the keyboard and focus the text input box ... If you are using Create React Native App / Expo, no...
Read more >Keyboard does not hide when navigating to a screen without ...
... not hide if I navigate to a different screen when an input is focused and the keyboard is open. Compose 1.0.5 hides...
Read more >Working with the Soft Keyboard | CodePath Android Cliffnotes
The Android system shows an on-screen keyboard, known as a soft input method, ... You can force Android to hide the virtual keyboard...
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 Free
Top 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
OK the first thing to try is adding a
<KeyboardAvoidingView />
just under<GiftedChat />
and make sure that the wrapping<View />
has aflex: 1
on it that should fix the inputBox issue.did u tried with other device? I think static height is not good solution