Fixed MapView's draggable annotation

Reviewed By: javache

Differential Revision: D3384947

fbshipit-source-id: 801a0998c8db788a731d27ae5956193ff23aa198
This commit is contained in:
Nathan Azaria authored and Facebook Github Bot 1 committed 2016-06-07 07:28:27 -07:00
1 parent 4959b21290
commit 993a928833
2 files changed
+51 -9

No files matched your search

-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);