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.
@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 ...
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.