mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Fixed MapView's draggable annotation
Reviewed By: javache Differential Revision: D3384947 fbshipit-source-id: 801a0998c8db788a731d27ae5956193ff23aa198
This commit is contained in:
committed by
Facebook Github Bot 1
parent
4959b21290
commit
993a928833
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user