Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Slow loading in TextInputs labels #4190

Open
AMDev2023 opened this issue Nov 19, 2023 · 17 comments
Open

Slow loading in TextInputs labels #4190

AMDev2023 opened this issue Nov 19, 2023 · 17 comments
Assignees

Comments

@AMDev2023
Copy link

AMDev2023 commented Nov 19, 2023

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)

<TextInput
mode='outlined'
label={<Text style={{ fontSize: 14, fontFamily: 'poppins-500' }}>{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
@AMDev2023 AMDev2023 added the bug label Nov 19, 2023
@lukewalczak lukewalczak self-assigned this Nov 23, 2023
@souzaluiz
Copy link

@AMDev2023 i have same problem in 5.11.5 version

Simulator.Screen.Recording.-.iPhone.15.Pro.-.2023-12-28.at.14.34.01.online-video-cutter.com.mp4

@badalsaibo
Copy link

Related #2602 #2380

@choudhary-github
Copy link

I am also facing the same issue of rendering labels after the box Is rendered.

RNP: 5.12.3

@pedrohbl03
Copy link

pedrohbl03 commented May 6, 2024

Hi guys, I have the same problem using RNP -> 5.12.2 and RN -> 0.72.7
Has anyone made any progress with this?

The problem occurs on ANDROID RELEASE BUNDLE, but in IOS everything works fine.

@danbeo95
Copy link

I am also facing the same issue :(

@neur0ns
Copy link

neur0ns commented May 11, 2024

same

@tkrafael
Copy link

tkrafael commented Jun 5, 2024

Same here, think that must be discussed.
My scenario makes margin/padding to change when screen is loaded

@Rohphi
Copy link

Rohphi commented Jun 19, 2024

same

@AMDev2023
Copy link
Author

@lukewalczak
Please fix the issue, We are looking for the fix!

@choudhary-github
Copy link

It is more horrible when TextInput fields render with value.

@prince272
Copy link

Here updates please.

@xbittencourt
Copy link

Same here, v5.12.5

@carlosqrib
Copy link

Same issue here. Using: expo 51.0.36, react-native 0.74.5, react-native-paper 5.12.5, node 20.

@fozzarelo
Copy link

same here..

@marko-mlinarevic
Copy link

I'm out this library is becoming useless

@israel-dryer
Copy link

israel-dryer commented Feb 5, 2025

same issue. There is an annoying delay when loading the labels. There are 9 TextInput components on the page with default values.

Android 15
Pixel 7a

"react-native": "0.76.6",
"react-native-paper": "^5.13.1",

@felix-lambert
Copy link

I’m also experiencing this issue when switching between tabs/screens. The TextInput floating label animation causes a noticeable delay when rendering the screen, especially when there are multiple inputs. This affects the perceived performance of the app.

I'm using react-native-paper with expo-router.

Thanks for looking into this – a fix or optimization would be greatly appreciated!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests