Style property left is not supported


#1

Hi,

created a spring animation as below;

 Animated.spring(this.position, {
      toValue: { x: 200, y: 500 }
    }).start();

<Animated.View style={this.position.getLayout()}>
                <View style={styles.ball} />
            </Animated.View>

works well. However, when I try to use native driver like below;

 Animated.spring(this.position, {
      toValue: { x: 200, y: 500 },
      useNativeDriver: true
    }).start();

image

What can be the problem?

Thanks


#2

Hi @killjoy2013, it doesnt seem to be a bug – native Animation only supports non layout props, such as transform and opacity