callstack / callstack/react-native-paper

TextInput expands parent container unexpectedly

Open
#4,790 2 comments 2 reactions 0 assignees View on GitHub
bug
Dominant language
TypeScript
Stars
14.5k
Forks
2.2k
Avg merge
5d 23h
Merged PRs (30d)
12

Description

### Current behaviour
TextInput inside a flex container without width constraints, the input expands to full width, causing the parent container to stretch. Expected behavior is that it should respect the parent’s intrinsic size unless explicitly styled.

### Expected behaviour
Expand the parent container

Contributor guide

Open the contributing guide

Research direction

No source file or test is named. Start by reproducing TextInput inside an unconstrained flex container and compare the current and intended sizing; clarify the contradictory expected-behavior text before locating the component implementation and adding a regression test for the agreed intrinsic-size behavior.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.