callstack / callstack/react-native-paper

TextInput outlined strange behavior on tablet

Offen
#3,808 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
bug TextInput
Vorherrschende Sprache
TypeScript
Sterne
14.5k
Forks
2.2k
Ø Merge
5 T. 23 Std.
Gemergte PRs (30 T.)
12

Beschreibung

### 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

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.