React-native-gifted-chat: Android composer not rezise after send multiline message

Created on 24 Sep 2020  路  3Comments  路  Source: FaridSafi/react-native-gifted-chat

Issue Description

After sending a multiline message the composer remains in the multiline size, this only resizes to normal size after inserting a key inside.

Writing a multiline message:
image

After send:
image

Steps to Reproduce / Code Snippets

Write a multiline text inside de composer.

Here is my Composer code:

import React, { memo } from 'react'
import { Composer } from 'react-native-gifted-chat'
import { withTheme } from 'styled-components'
import { Platform } from 'react-native'

const RenderComposer = ({ props, theme: { color, chat: { screen: { textInputStyle } } } }) => (
  <Composer
    {...props}
    textInputStyle={{
      fontSize: textInputStyle.fontSize,
      color: textInputStyle.color,
      backgroundColor: color.white,
      borderRadius: textInputStyle.borderRadius,
      width: textInputStyle.width,
      height: textInputStyle.height,
      borderColor: color.neutral300,
      paddingTop: textInputStyle.paddingTop,
      paddingHorizontal: textInputStyle.paddingHorizontal,
      marginRight: textInputStyle.marginRight,
      shadowColor: color.shadowColor,
      shadowOffset: {
        width: textInputStyle.shadowOffset.width,
        height: textInputStyle.shadowOffset.height
      },
      shadowOpacity: textInputStyle.shadowOpacity,
      shadowRadius: textInputStyle.shadowRadius,
      elevation: textInputStyle.elevation,
      marginBottom: Platform.OS === 'ios' ? 4 : 0
    }}
  />
)
export default withTheme(memo(RenderComposer))

Expected Results

After send the message, the composer returns to the normal size.

Additional Information

  • Nodejs version: 12.13.0
  • React version: 16.9.0
  • React Native version: 0.61.5
  • react-native-gifted-chat version: 0.16.3
  • Platform(s) (iOS, Android, or both?): Android
wontfix

Most helpful comment

Same here :/

All 3 comments

Same here :/

Up

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.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

iamdurui picture iamdurui  路  3Comments

redwind picture redwind  路  3Comments

Hayko1994 picture Hayko1994  路  3Comments

SytzeAndr picture SytzeAndr  路  3Comments

inceptivetech picture inceptivetech  路  3Comments