callstack / callstack/react-native-paper

Label clips when calling render function prop of TextInput component in outline mode

Open
#4,329 8 comments 0 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

The label of TextInput component clips in outline mode when I call the render function prop. I am calling the render prop so as to render my Custom input, in this case a dropdown select input. Space is sufficient so it should not clip the label. Is the their a way to work around it ?

### Expected behaviour

Should not clip the label
### How to reproduce?

### Preview

### What have you tried so far?

I have tried applying different styles but still not working
### Your Environment

| software | version
| --------------------- | -------
| ios | x
| android | 14
| react-native | 0.73.4
| react-native-paper | 5.12.3
| node | 18.17.1
| npm | 9.6.7
| expo sdk | 50.0.7
![Screenshot_1709322988](https://github.com/callstack/react-native-paper/assets/31744209/b04c7461-7c44-41e9-b179-e0d8947becd9)

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the TextInput outline-mode case with the render prop and custom dropdown described in the issue, using the supplied React Native, React Native Paper, and Expo versions. Compare the rendered label with and without the custom input; done means the label no longer clips when sufficient space is available.

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.