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

When is native driver used? #202

Open
H-Shafiei opened this issue Jul 5, 2019 · 1 comment
Open

When is native driver used? #202

H-Shafiei opened this issue Jul 5, 2019 · 1 comment

Comments

@H-Shafiei
Copy link

Hi,

Thanks for the awesome library! I did not understand how the native driver is used? If I have an image as a shared element, on which conditions does this library use native drivers?
More specifically, if I use width and height in style would this image transition use native driver or not? For example, the FlatList example.

Thanks

@xxRockOnxx
Copy link

It uses native driver by default and as stated in this React native blog post:

The main limitation is that you can only animate non-layout properties, things like transform and opacity will work but flexbox and position properties won't.

Not sure if it can be disabled since I dont see any problems "yet" with animations on JS thread, but that will open up a lot of animation possibilities.

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

2 participants