callstack / callstack/react-native-paper

TextInput outlined strange behavior on tablet

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

Description

### Current behaviour

As you can see from the image, when using it on a tablet, that line above appears under the label.

### Expected behaviour

![image](https://user-images.githubusercontent.com/20476002/230873510-49afa90a-2599-43e7-a9e5-fe1570ab1afc.png)

### How to reproduce?

```js
{
setValue('');
if (text === '' || isNaN(text)) return;
addNumber(text);
}}
theme={{
colors: {
placeholder: isDark ? '#FFFFFF' : '#000',
text: '#1E90FF',
primary: '#1E90FF',
background: isDark ? '#1B1A23' : "#EFEFEF"
},
}}
style={[
{
width: 60,
},
]}
/>
```

### Preview

Tablet:
![image](https://user-images.githubusercontent.com/20476002/230873480-ed8f449a-f77c-41ed-bc29-d85bab71243c.png)

Smartphone:
![image](https://user-images.githubusercontent.com/20476002/230873510-49afa90a-2599-43e7-a9e5-fe1570ab1afc.png)

### Your Environment

| software | version
| --------------------- | -------
| android | 8.1.0
| react-native | 0.71.4
| react-native-paper | 5.6.0
| node | 16.14.2
| npm | 9.6.2

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.