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.

Remove unwanted bottom padding in InputToolbar when Keyboard open

See original GitHub issue

Issue Description

I want to remove unwanted bottom padding in InputToolbar when keyboard opened. Its only happened in ios, In android it’s working without any issue.

Steps to Reproduce / Code Snippets

Here is the code sample

Picture1

 <GiftedChat
                        messages={ar_messages}
                        onSend={messages => this._onSendMessage(messages)}

                        user={{
                            _id: CurUser.user_id,
                            name: CurUser.display_name
                        }}
                        renderActions={this._renderLeftButton}
                        renderAccessory={this._renderSecondLine}
                        renderSend={this._renderSendButton}
                        text={this.state.txt_input_value}
                        onInputTextChanged={text => this.setCustomText(text)}
                        multiline={true}
                        alwaysShowSend={true}
                        keyboardShouldPersistTaps={'never'}
                        textInputProps={AppStyles.InputStyles.ChatInput.Props}
                        textInputStyle={AppStyles.InputStyles.ChatInput.Style}
                        renderBubble={this._renderBubble}
                        isTyping={false}
                        accessoryStyle={{ height: accessoryHeight }}
                        lightboxProps={{ springConfig: { tension: 90000, friction: 90000 } }}
                    />
```



#### Expected Results
Remove unwanted bottom padding


#### Additional Information

* Nodejs version: v12.14.0
* React version: 16.9.0
* React Native version:0.61.5
* react-native-gifted-chat version: 0.16.0
* Platform(s) (iOS, Android, or both?): iOS

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:8 (2 by maintainers)

github_iconTop GitHub Comments

7reactions
abdi4commented, Jul 30, 2020

Any update on this?

0reactions
fukemycommented, Apr 19, 2022

ok i found problem, when render accessoryview then

getMinInputToolbarHeight() { return this.props.renderAccessory ? this.props.minInputToolbarHeight * 2 : this.props.minInputToolbarHeight; }

so need to calculate bottomoffset again by + inputtoolbarheight

Read more comments on GitHub >

github_iconTop Results From Across the Web

Remove space between keyboard and composer in React ...
I'm using the react-native-gifted-chat package for my React Native application. Somehow there is a space between the composer and the keyboard, ...
Read more >
react-native-gifted-chat - npm
Append KeyboardAvoidingView after GiftedChat. This should only be done for Android, as KeyboardAvoidingView may conflict with the iOS keyboard ...
Read more >
Handbook for MuseScore 4
The Properties panel; Note input toolbar; Menu bar; Inserting measures with keyboard shortcuts. Deleting measures. Remove empty trailing measures. See also.
Read more >
A Flutter guide to visual overlap: padding, viewPadding, and ...
Notice that when the keyboard appears, the bottom indicator section turns from partially to completely obscured UI. How Flutter handles this: ...
Read more >
User Manual - Melco Tech
New Open Dialog - View all supported embroidery AND graphic files at the same ... The input toolbar contains the majority of the...
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