File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change 1+ import React , { Component } from 'react' ;
2+ import { Polyline } from 'react-google-maps' ;
3+
4+ class MapViewPolyline extends Component {
5+ render ( ) {
6+ return < Polyline { ...this . props } /> ;
7+ }
8+ }
9+
10+ export default MapViewPolyline ;
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ import React, { Component } from 'react';
22import { View , ActivityIndicator , StyleSheet } from 'react-native' ;
33import { withGoogleMap , GoogleMap } from 'react-google-maps' ;
44import Marker from './Marker' ;
5+ import Polyline from './Polyline' ;
56
67const GoogleMapContainer = withGoogleMap ( props => (
78 < GoogleMap { ...props } ref = { props . handleMapMounted } />
@@ -47,6 +48,7 @@ class MapView extends Component {
4748}
4849
4950MapView . Marker = Marker ;
51+ MapView . Polyline = Polyline ;
5052
5153const styles = StyleSheet . create ( {
5254 container : {
You can’t perform that action at this time.
0 commit comments