bramus / react-native-maps-directions

Directions Component for `react-native-maps`
MIT License
1.24k stars 196 forks source link

Fixes Error: Element type is invalid error #196

Closed xiaoxu193 closed 2 years ago

xiaoxu193 commented 2 years ago

With latest react-native-maps 1.0.0, the use of Polyline is required. Otherwise you get: ERROR Error: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: undefined.

nicolasdevienne commented 2 years ago

@bramus the fix seems not to be included in the last version 1.1.0 ... When I install the package thanks to yarn add react-native-maps-directions, the fix is missing from file src/MapViewDirections.js ...