Animation 反应本机:以各自的方向旋转和设置动画的汽车

Animation 反应本机:以各自的方向旋转和设置动画的汽车,animation,react-native,react-native-maps,Animation,React Native,React Native Maps,我正在使用react原生地图,现在我可以更新驱动程序的位置并更新多段线。我想实现的是像Uber一样,我想将汽车动画化到新的坐标,并根据方向旋转它。 现在我可以更新多段线,但没有动画,我做了一些研究,我知道我们使用动画标记,但找不到此实现的文档。 我的渲染方法: renderContent(){ if(this.state.loading){ 返回( ); }else if(this.state.error){ 返回( 没有可用的方向 重试 ); } if(this.props.liveLoca

我正在使用
react原生地图
,现在我可以更新驱动程序的位置并更新
多段线
。我想实现的是像Uber一样,我想将汽车动画化到新的坐标,并根据方向旋转它。 现在我可以更新多段线,但没有动画,我做了一些研究,我知道我们使用
动画标记
,但找不到此实现的文档。 我的渲染方法:

renderContent(){
if(this.state.loading){
返回(
);
}else if(this.state.error){
返回(
没有可用的方向
重试
);
} 
if(this.props.liveLocation.origin!==null){
const{origin,des,coords}=this.props.liveLocation;
返回(
{this.map=ref;}}
起始区={{
纬度:数字(原点纬度),
经度:编号(原点.lng),
纵向德尔塔:0.2,
纬度德尔塔:0.2
}}
onLayout={this.onLayout}
>
{origin!=null&&
}
{des!=null&&
}
{coords.length>1&&
}
);
}  
}

origin有{lat,lng,heading,etc}

Hi@sarmad Aijaz你解决了这个问题吗?你能告诉我如何实现吗