callstack / callstack/react-native-paper

Slow loading in TextInputs labels

Offen
#4,190 19 Kommentare 7 Reaktionen 1 zugewiesene Person Beansprucht von @lukewalczak 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
Delay loading in textInputs label, When we using multiple textinput in same screen.

### Expected behaviour
Textinputs labels dont take time to load.

### How to reproduce?
When using more than 4 or 5 textinput in same screen, Navigating to multiple textinputs screen having this issue(In android simulator Android 12-Nexus 5x)

{label}}
value={value}
style={[{ height: 50 }, style]}
onChangeText={onChangeText}
placeholder={placeholder}
outlineColor={colors.LIGHT_GREY1}
activeOutlineColor={colors.PRIMARY}
outlineStyle={{ borderRadius: 4, borderWidth: 1 }}
contentStyle={[styles.container, multiline && { paddingTop: 12 }]}
textColor={colors.LIGHT_BLACK}
theme={{
colors: {
background: colors.LIGHT_BLUE,
onSurfaceVariant: colors.VERY_LIGHT_GREY,
},
}}
maxLength={maxLength}
keyboardType={keyboardType}
secureTextEntry={passwordVisible}
multiline={multiline}
textContentType={textContentType as any}
autoCapitalize={autoCapitalize as any}
autoCorrect={autoCorrect}
contextMenuHidden={contextMenuHidden}
/>

### Preview
https://drive.google.com/file/d/1KbP4KgPucbomRQBp6t0yXLrIXaUJA8z5/view?usp=drive_link

### Your Environment

| software | version
| --------------------- | -------
| android | Android 12 (Nexus 5x)
| react-native | 0.72.6
| react-native-paper | 5.11.1
| node | 18.16.0
| npm | 9.6.5
| expo sdk | 49.0.5

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

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