Closed adun closed 3 years ago
Add lineDashPattern={[0]}
property on MapViewDirections like the following example...
<MapViewDirections
origin={ORIGIN}
destination={DESTINATION}
apikey={GOOGLE_MAPS_APIKEY}
strokeWidth={3}
strokeColor="hotpink"
optimizeWaypoints={true}
onStart={(params) => {
console.log(
`Started routing between "${params.origin}" and "${params.destination}"`
);
}}
onReady={(result) => {
console.log(`Distance: ${result.distance} km`);
console.log(`Duration: ${result.duration} min.`);
}}
onError={(errorMessage) => {
console.log(`GOT AN ERROR ${errorMessage}`);
}}
lineDashPattern={[0]}
/>
I found this solution o stackoverflow Link: https://stackoverflow.com/questions/68320484/error-while-updating-property-linecap-of-a-view-managed-by-airmappolyline-in
Hi @hiagoLF,
When I ran my project in the Android Emulator, the Expo Go app updates itself. As a consequence, running my app works now and without adding changes to the codebase. The bug is no longer reproductible and might be related to an underlying bug in Expo itself.
I'm closing this.
This was very helpful. Thanks.
Hello,
I'm having an issue running the extended example on Android.
Sample screen embedded in a SafeAreaProvider
A test ready project is available here: https://github.com/adun/react-native-maps-directions-issue
Thanks for your help! adun