-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Android - Search - Text in search input, bounces with every letter added to the search. #56526
Comments
Triggered auto assignment to @zanyrenney ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.Android - Search - Text in search input, bounces with every letter added to the search. What is the root cause of that problem?
App/src/components/TextInput/BaseTextInput/index.native.tsx Lines 402 to 408 in 33a03bf
What changes do you think we should make in order to solve the problem?use {inputProps.isLoading !== undefined && (
<ActivityIndicator
size="small"
animating={!!inputProps.isLoading}
color={theme.iconSuccessFill}
style={[styles.mt4, styles.ml1, loadingSpinnerStyle]}
/>
)} Option 2: {!!inputProps.canShowLoading && (
<ActivityIndicator
size="small"
animating={!!inputProps.isLoading}
color={theme.iconSuccessFill}
style={[styles.mt4, styles.ml1, loadingSpinnerStyle]}
/>
)} What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?N/A What alternative solutions did you explore? (Optional)N/A |
ProposalPlease re-state the problem that we are trying to solve in this issue.
What is the root cause of that problem?
App/src/components/TextInput/BaseTextInput/index.native.tsx Lines 402 to 408 in 33a03bf
What changes do you think we should make in order to solve the problem?
{inputProps.isLoading !== undefined && (
<ActivityIndicator
size="small"
color={theme.iconSuccessFill}
style={[styles.mt4, styles.ml1, loadingSpinnerStyle, {opacity: inputProps.isLoading ? 1 : 0}]}
/>
)}
What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?
What alternative solutions did you explore? (Optional)
{inputProps.isLoading !== undefined && (
<ActivityIndicator
size="small"
animating={inputProps.isLoading}
key={String(inputProps.isLoading)}
color={theme.iconSuccessFill}
style={[styles.mt4, styles.ml1, loadingSpinnerStyle]}
/>
)} or <View style={[{flexDirection: 'row', justifyContent: 'center', alignItems: 'center'}, props.isLoading !== undefined && {width: 20}]}>
{!!inputProps.isLoading && (
<ActivityIndicator
size="small"
color={theme.iconSuccessFill}
style={[styles.mt4, styles.ml1, loadingSpinnerStyle]}
/>
)}
</View> |
@zanyrenney Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Version Number: 9.0.95-0
Reproducible in staging?: Yes
Reproducible in production?: Yes
If this was caught on HybridApp, is this reproducible on New Expensify Standalone?: Yes, reproducible on both
Email or phone of affected tester (no customers): [email protected]
Issue reported by: Applause Internal Team
Device used: Motorola MotoG60 - Android 12
App Component: Search
Action Performed:
Expected Result:
Content in search input shouldn´t move when adding more text and the green loader is displayed.
Actual Result:
Text in search input bounces everytime the user adds a letter and the loader appears.
Workaround:
Unknown
Platforms:
Screenshots/Videos
Bug6735812_1738894933713.Bounce.mp4
View all open jobs on GitHub
The text was updated successfully, but these errors were encountered: