Skip to content

[Android] Error while updating property reactStyle #10

@EugenePisotsky

Description

@EugenePisotsky

Hello!

I've got a problem on Android when updating iconRotate style dynamically. Is this a bug or I can fix it somehow?

<MapboxGL.ShapeSource
    id="symbolLocationSource"
    shape={this.route.coordinate}
>
    <MapboxGL.Animated.SymbolLayer
        id="symbolLocationSymbols"
        minZoomLevel={1}
        style={[styles.icon, { iconRotate: this.rotationValue }]}
    />
</MapboxGL.ShapeSource>

...

const styles = MapboxGL.StyleSheet.create({
    icon: {
        iconImage: require('assets/images/test@x1.png'),
        iconAllowOverlap: true,
        iconSize: 1,
    },
});

Screenshot_1556449415

This code works if iconRotate value is not changing

Versions (please complete the following information):

  • Platfrom: Android
  • React Native Version [e.g. 0.59.1]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions