Commit 6f14f762 authored by Qiu Xiang's avatar Qiu Xiang

修正 iOS MapView#animateTo duration 参数 bug

parent aeeca19f
......@@ -70,7 +70,7 @@ RCT_EXPORT_METHOD(animateTo:(nonnull NSNumber *)reactTag params:(NSDictionary *)
if (params[@"rotation"]) {
mapStatus.rotationDegree = [params[@"rotation"] floatValue];
}
[mapView setMapStatus:mapStatus animated:YES duration:duration / 1000];
[mapView setMapStatus:mapStatus animated:YES duration:duration / 1000.0];
}];
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment