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

useNativeDriver: true not supported if a non-native animated value style is present albeit not being animated #1306

Open
Dibbledeedoo opened this issue Jul 8, 2021 · 0 comments

Comments

@Dibbledeedoo
Copy link

Running latest ReactXp (v 2.0.0). I set up a basic animated View component to test some things I am seeing. I found that if I add two animated value styles to the same component, one that is native animatable (eg, opacity) and one that is not (eg, top), and then try to animate only the former (opacity) with useNativeDriver: true, it fails on iPad with the error "Style property 'top' is not supported by native animated module". This is despite the fact that top is not being animated. NO animation is being run on the 'top' value at all (both are present because different actions could animate one or the other, they never animate together and in fact I've taken out the portion of the code that would animate top, so it currently never animates). This seems very wrong as the value being animated IS native animatable and should be able to run with native drivers.

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

1 participant