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

Multiple <Fade> components don't have own animated values #5

Closed
rikkitissier opened this issue Sep 24, 2020 · 2 comments
Closed

Multiple <Fade> components don't have own animated values #5

rikkitissier opened this issue Sep 24, 2020 · 2 comments

Comments

@rikkitissier
Copy link

In my usecase I have more than one Fade on the screen (one is shown when the other is hidden), but right now they share the same visibility (i.e. they both appear or both hide, at the same time). I think this is probably because the opacity is being set as a module-level const rather than a component-level property, but I haven't tested that yet.

Thanks for the handy little Fade component!

@abdullahIsa
Copy link

@rikkitissier Hello, i also have this problem was there any solutions?

@jonsamp
Copy link
Owner

jonsamp commented Oct 7, 2021

This is now fixed with this commit/change: https://github.com/jonsamp/react-native-fade/blob/b13f64944d57eef77bc51897962048fe7e5fb079/src/index.tsx

Screen.Recording.2021-10-07.at.2.53.00.AM.mov

Thanks for reporting!

@jonsamp jonsamp closed this as completed Oct 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants