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

ActivityIndicator Bug on First Load #2332

Closed
kceb opened this issue Nov 1, 2020 · 10 comments
Closed

ActivityIndicator Bug on First Load #2332

kceb opened this issue Nov 1, 2020 · 10 comments
Labels

Comments

@kceb
Copy link

kceb commented Nov 1, 2020

Current behaviour

I'm using ActivityIndicator on a page and every first load I see a momentary glitch where there are two indicators. Video below.

Expected behaviour

I don't expect a double ActivityIndicator

Code sample

Screenshots (if applicable)

https://d.pr/MJK9rn

What have you tried

Using other components and seeing if they exhibit same behavior. (They don't)

I thought it might be a metro server thing, but upon generating a release apk and sideloading, I see the same thing. I'm not using any other animation library that would conflict.

I tried react-native's default ActivityIndicator and it doesn't exhibit this behavior.

Your Environment

software version
ios or android Android 5.1 API 22
react-native "0.63.3"
react-native-paper 4.2.0
node v14.8.0
npm or yarn yarn 1.22.4
expo sdk N/A
react-native-vector-icons 7.1.0
@github-actions
Copy link

github-actions bot commented Nov 1, 2020

Couldn't find version numbers for the following packages in the issue:

  • react-native-vector-icons
  • npm
  • expo

Can you update the issue to include version numbers for those packages? The version numbers must match the format 1.2.3.

The versions mentioned in the issue for the following packages differ from the latest versions on npm:

  • react-native-paper (found: 4.2.0, latest: 4.3.0)
  • yarn (found: 1.22.4, latest: 1.22.10)

Can you verify that the issue still exists after upgrading to the latest versions of these packages?

@github-actions
Copy link

github-actions bot commented Nov 1, 2020

Couldn't find version numbers for the following packages in the issue:

  • npm
  • expo

Can you update the issue to include version numbers for those packages? The version numbers must match the format 1.2.3.

The versions mentioned in the issue for the following packages differ from the latest versions on npm:

  • react-native-paper (found: 4.2.0, latest: 4.3.0)
  • yarn (found: 1.22.4, latest: 1.22.10)

Can you verify that the issue still exists after upgrading to the latest versions of these packages?

@RichardLindhout
Copy link
Contributor

It only happens with that specific Android version or also on iOS and newer Android versions?

@github-actions
Copy link

Hello 👋, this issue has been open for more than 2 months with no activity on it. If the issue is still present in the latest version, please leave a comment within 7 days to keep it open, otherwise it will be closed automatically. If you found a solution on workaround for the issue, please comment here for others to find. If this issue is critical for you, please consider sending a pull request to fix the issue.

@bradser
Copy link

bradser commented Oct 31, 2021

FWIW, I saw a similar issue, turns out it was a around an in my code.

@CDBridger
Copy link

I see this issue to when I navigate between screens using react-navigation. Would this issue be able to be re opened.

@fr0staman
Copy link

I see similar issue with react-native-reanimated and react-navigation.

import { ActivityIndicator } from "react-native-paper";
import Animated, { FadeOutUp } from "react-native-reanimated";

...

return (
  <Animated.View exiting={FadeOutUp}>
    <ActivityIndicator size={"large"} animating={animating} />
  </Animated.View>
)

@aderyan18
Copy link

How to fixed? I stuck in here case

@fidelusp
Copy link

fidelusp commented Aug 2, 2024

FYI I am also facing the issue

@DenisDov
Copy link

DenisDov commented Jan 2, 2025

In my case, it's related to how the event loop works. I will need to execute await new Promise((resolve) => requestAnimationFrame(resolve)); right before hiding the ActivityIndicator.

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

No branches or pull requests

8 participants