bug: not autoresizing when multiline

Open
#51 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
react-native
Domain
mobile-dev

Research direction

Start with the provided React Native PasteInput example using multiline={true} and numberOfLines={5}, and reproduce the sizing behavior. Trace how the component handles those props; done means the input automatically matches the text height with the shown configuration.

Written by the indexing model from the issue text.

Description

when multiline param is set and numberOfLines is defined it does not automatically adjusts itself to match height of text

https://github.com/user-attachments/assets/7c87f611-be33-4933-9ea2-4b28cde7d98b

current comp

    <PasteInput
          ref={inputRef}
          disableCopyPaste={false}
          onPaste={onPaste}
          style={[{ color }, styles.input]}
          multiline={true}
          numberOfLines={5}
          placeholder="This is a PasteInput"
          submitBehavior="newline"
          underlineColorAndroid="transparent"
          keyboardType="default"
          disableFullscreenUI={true}
          textContentType="none"
          autoComplete="off"
          smartPunctuation="disable"
        />
Dominant language
Objective-C
Stars
213
Forks
38
Avg merge
12h 25m
Merged PRs (30d)
1

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from mattermost/react-native-paste-input

All issues in mattermost/react-native-paste-input

Similar issues

More Objective-C issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.