Skip to content

Composer not rezise after send multiline message #2716

@SaSe25

Description

@SaSe25

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

Same as in this issue: #1929

Details:

I am not rendering a custom Composer like in the other issue. However I am rendering a custom InputToolbar so just in case I will leave this here:

  const inputToolbarContainerStyle: StyleProp<ViewStyle> = {
    backgroundColor: theme.colors.borderLight,
    borderColor: theme.colors.inactive,
    borderStyle: 'solid',
    borderWidth: 1,
    borderRadius: 8,
  }

      renderInputToolbar={(props) => {
        return (
          <InputToolbar
            {...props}
            containerStyle={inputToolbarContainerStyle}
            renderSend={(props) => {
              const sendLabel = isMobile() ? 'Senden' : 'Senden ↵'
              return (
                <Send
                  {...props}
                  label={sendLabel}
                  containerStyle={{ borderWidth: 0 }}
                  textStyle={{ ...theme.typography.r15 }}
                />
              )
            }}
          />
        )
      }}

Packages:

  • "react-native-gifted-chat": "^3.3.2"
  • "react-native": "0.83.1"
  • "react": "19.2.4"
  • Plattform: Desktop web

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions