callstack / callstack/react-native-paper
TextInput expands parent container unexpectedly
- 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
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