Fixed MapView's draggable annotation

Reviewed By: javache

Differential Revision: D3384947

fbshipit-source-id: 801a0998c8db788a731d27ae5956193ff23aa198
This commit is contained in:
Nathan Azaria
2016-06-07 07:28:27 -07:00
committed by Facebook Github Bot 1
parent 4959b21290
commit 993a928833
2 changed files with 51 additions and 9 deletions
-3
View File
@@ -437,9 +437,6 @@ const MapView = React.createClass({
onAnnotationDragStateChange = (event: Event) => {
const annotation = findByAnnotationId(event.nativeEvent.annotationId);
if (annotation) {
// Update location
annotation.latitude = event.nativeEvent.latitude;
annotation.longitude = event.nativeEvent.longitude;
// Call callback
annotation.onDragStateChange &&
annotation.onDragStateChange(event.nativeEvent);