Text box not visible when keyboard active using expo
See original GitHub issueIssue Description
Text bot is invisible when keyboard active in android with expo. I’m usingforceGetKeyboardHeight={true}
and the message content moves correctly but there is an empty space instead of the textbox.
Steps to Reproduce / Code Snippets
<GiftedChat
messages={this.state.messages}
forceGetKeyboardHeight={true}
onSend={(messages) => this.onSend(messages)}
user={{
_id: 1,
}}
/>
Expected Results
The text box should be visible.
Additional Information
- Nodejs version: 8.9.3
- React version: 16.0.0
- React Native version: expo react native sdk 23.0.0
- react-native-gifted-chat version: 0.3.0
- expo version: 23.0.0
- Platform(s) (iOS, Android, or both?): Tested on android
Issue Analytics
- State:
- Created 6 years ago
- Reactions:7
- Comments:21 (1 by maintainers)
Top Results From Across the Web
TextInput Not Visible When Keyboard Is Open Expo React ...
This is my view and this happens when I open the soft keyboard, I'm running on the latest Expo and React Native, the...
Read more >Prevent the On-screen Keyboard from Covering up Text Inputs
[00:34] First, make sure it fills the entire screen by setting a flex one style prop. Then we'll replace the main container view...
Read more >How to make your React Native app respond gracefully when ...
The first thing you have to do is replace the container View with the KeyboardAvoidingView and then add a behavior prop to it....
Read more >Focus on the Next TextInput when Next Keyboard Button is ...
The first step is getting a ref to our Last Name input. The one we want to focus on after our first input...
Read more >Using the KeyboardAvoidingView in React Native
If you choose to use more than one input field and all the other fields are not viewable on the screen, you can...
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
I got it… Just do like this…
need to declare flex to parent view to make it works. 👍
I had the same issue , but in my case textInputBar was pushing above the keyboard but its view was coming partially.
<KeyboardAvoidingView behavior={'padding'} style={{flex:1}} keyboardVerticalOffset={30}> <ChatBot/> </KeyboardAvoidingView>
fixed my problem. Here <ChatBot/> is my component where I have called GiftedChat . Hope this helps.