React-native-mapbox-gl: Animating SymbolLayer (iconSize)

Created on 22 Jun 2018  路  2Comments  路  Source: nitaliano/react-native-mapbox-gl

Hello! I'm using MapboxGL.Animated.ShapeSource and within it a MapboxGL.Animated.SymbolLayer, with it's iconSize being an Animated.Value. I'm able to get it to animate in which is nice, but it's running on the JS thread... is there any way to get it to animate iconSize on the native thread?

Basically I am trying to pop SymbolLayers in as they appear.

All 2 comments

At the current moment there is no way to do this on the native thread. We don't have the bandwidth at the current moment but we are going to add native drivers for this.

If you or anyone needed to work around this you can write a native driver, and use the reactTag that's on the Sources and Layers to find them from the view registry on the native side and perform the animation. If any class properties are needed to become public to support this I would be happy to merge those types of changes in.

Ok gotcha. Thanks for your quick response.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

olofd picture olofd  路  3Comments

EwanValentine picture EwanValentine  路  3Comments

max-prokopenko picture max-prokopenko  路  4Comments

yaduc picture yaduc  路  3Comments

glennverschooren picture glennverschooren  路  4Comments