File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -47,6 +47,7 @@ The supported components are `MapView` and `MapView.Marker`.
4747` MapView.Marker ` :
4848- The supported props are:
4949 - ` title `
50+ - ` description `
5051 - ` coordinate `
5152
5253
Original file line number Diff line number Diff line change @@ -22,6 +22,10 @@ storiesOf('MapView', module)
2222 ) ) ;
2323storiesOf ( 'Marker' , module ) . add ( 'basic' , ( ) => (
2424 < MapView region = { { latitude : 48.88 , longitude : 2.32 } } >
25- < MapView . Marker title = "BAM" coordinate = { { latitude : 48.8828463 , longitude : 2.3229091 } } />
25+ < MapView . Marker
26+ title = "BAM"
27+ description = "Shape the future of mobile with us"
28+ coordinate = { { latitude : 48.8828463 , longitude : 2.3229091 } }
29+ />
2630 </ MapView >
2731) ) ;
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ class MapViewMarker extends Component {
55 render ( ) {
66 return (
77 < Marker
8- title = { this . props . title }
8+ title = { this . props . description ? ` ${ this . props . title } \n ${ this . props . description } ` : this . props . title }
99 position = { { lat : this . props . coordinate . latitude , lng : this . props . coordinate . longitude } }
1010 />
1111 ) ;
You can’t perform that action at this time.
0 commit comments