Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Define MIN_COMPOSER_HEIGHT for Platform.web #980

Closed
jadczyk opened this issue Sep 27, 2018 · 1 comment
Closed

Define MIN_COMPOSER_HEIGHT for Platform.web #980

jadczyk opened this issue Sep 27, 2018 · 1 comment
Labels

Comments

@jadczyk
Copy link

jadczyk commented Sep 27, 2018

Issue Description

I'm using your plugin on the web (using more and more popular react-native-web), but MIN_COMPOSER_HEIGHT is not defined for web in Constant.js. Therefore, height of the container is not calculated and AnimatedView height is not set which results in messages overflowing under the input. Besides, input height is also wrong.

This fixes both issues and doesn't influence apps at all:
export const MIN_COMPOSER_HEIGHT = Platform.select({ ios: 33, android: 41, web: 44, });

Additional Information

screen shot 2018-09-27 at 12 19 16

  • react-native-gifted-chat version: 0.4.3
  • Platform(s) (iOS, Android, or both?): web
@stale
Copy link

stale bot commented Feb 12, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant