mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-02-01 22:41:16 +08:00
MapView to support MKPointAnnotation using new attribute annotate in Map...
Summary:
### MapView to support Pin annotation
var pinLocation = {
latitude: property.latitude,
longitude: property.longitude,
title: property.title
};
this.state = {propertyPoint: pinLocation};
<MapView style={styles.map} region={this.state.region} annotate={this.state.propertyPoint}>
</MapView>

Closes https://github.com/facebook/react-native/pull/810
Github Author: guru inamdar <guru.inamdar@gmail.com>
Test Plan: Imported from GitHub, without a `Test Plan:` line.
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
* of patent rights can be found in the PATENTS file in the same directory.
|
||||
*
|
||||
* @providesModule loadSourceMap
|
||||
* @flow
|
||||
* -- disabled flow due to mysterious validation errors --
|
||||
*/
|
||||
|
||||
'use strict';
|
||||
|
||||
Reference in New Issue
Block a user