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.

Message container needs to reflect minInputToolbarHeight when prop changes

See original GitHub issue

Issue Description

I have a use case where I hide/show the input toolbar by passing minInputToolbarHeight in props. Hence, I need the messages container height to reflect on changes of minInputToolbarHeight.

Outdated PRs: https://github.com/FaridSafi/react-native-gifted-chat/pull/537 @kesha-antonov
https://github.com/FaridSafi/react-native-gifted-chat/pull/498 @peteroid

Steps to Reproduce / Code Snippets

Dynamically change minInputToolbarHeight via state.

Expected Results

Height changes when props change.

Additional Information

Environment: OS: macOS High Sierra 10.13.4 Node: 8.11.1 Yarn: 1.7.0 npm: 5.6.0 Watchman: 4.9.0 Xcode: Xcode 9.4 Build version 9F1027a Android Studio: 3.1 AI-173.4720617

Packages: react: 16.2.0 => 16.2.0 react-native: 0.51.0 => 0.51.0 react-native-gifted-chat => “0.4.3”

Diagnostics report: https://exp-xde-diagnostics.s3.amazonaws.com/flyreel-eb36a54c-2ec6-4fef-8948-75ef7a13a44c.tar.gz

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:5
  • Comments:5

github_iconTop GitHub Comments

1reaction
jvgeeecommented, Mar 16, 2021

@watadarkstar This is still an issue in 2021 as far as I can tell, any idea if this was ever attempted to be resolved / if there’s any way around it?

I have a custom input field for a chatbot whose height changes dynamically, and I want to ensure the chat screen doesn’t get hidden behind it.

0reactions
watadarkstarcommented, Mar 18, 2021

Please do and tag me in the new issue @jascination

Read more comments on GitHub >

github_iconTop Results From Across the Web

Reacting to Prop Changes in a React Component | Pluralsight
When building a component using React there is often a requirement to create a side effect when one of the component props changes....
Read more >
Re-render React component when prop changes
I have a SitesTable and a SitesTableContainer . The container is responsible for triggering redux actions to fetch the appropriate sites based ...
Read more >
github.com-FaridSafi-react-native-gifted-chat_-_2021-07 ...
The messages prop should work out-of-the-box with Redux. In most cases, this is all you need. If you decide to specify a text...
Read more >
React-native-gifted-chat: The Most Complete Chat UI for React ...
The messages prop should work out-of-the-box with Redux. In most cases, this is all you need. If you decide to specify a text...
Read more >
Why React Child Components Don't Update on Prop Changes
In React, it's a common problem to have child components that don't re-render when you expect them to. In particular, a common problems...
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