Closed carlossuds closed 4 years ago
same
@carlossuds @jdbaculard you have used version 1.7.3 or less but this package update recently just simply do one thing go to package.json and change "react-native-maps-directions": "^1.7.3", to "react-native-maps-directions": "1.7.3", after this run npm install or yarn install just stick on the version your already use do not change if it is not necessary
@carlossuds @jdbaculard you have used version 1.7.3 or less but this package update recently just simply do one thing go to package.json and change "react-native-maps-directions": "^1.7.3", to "react-native-maps-directions": "1.7.3", after this run npm install or yarn install just stick on the version your already use do not change if it is not necessary
Thank you @ArbazYousuf , it worked perfectly! :)
Hi, I'm facing the same problem. my dependencies are:
"react-native-maps": "^0.27.0",
"react-native-maps-directions": "1.7.3", << As you seggested before. don't work for me.
@ramonhoyo show me your source code
"react-native-maps": "0.26.1",
"react-native-maps-directions": "^1.7.0",
it works for me now ! Thanks
"react-native-maps": "^0.27.0" "react-native-maps-directions": "^1.7.4"
but still i have this problem
"react-native-maps": "^0.27.0" "react-native-maps-directions": "^1.7.4"
but still i have this problem
send the waypoint like an array of object
<MapViewDirections waypoint={[ {...} ]} ... />
@ramonhoyo show me your source code
Hi @ArbazYousuf , I'm running the most basic example as described here, my code looks like:
<MapViewDirections
origin={origin}
destination={destination}
apikey={GOOGLE_MAPS_APIKEY}
/>
I've tried @jdbaculard setup, but when I do that I get the following error:
FAILURE: Build failed with an exception.
Where: Build file 'C:\Users\Manuel\ApkProjects\ParkingApp\node_modules\react-native-maps\lib\android\build.gradle' line: 20
What went wrong: A problem occurred evaluating project ':react-native-maps'.
Could not get unknown property 'supportLibVersion' for object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.
Version 1.7.5 with a fix for this got released. Thanks for the input, everyone!
I still have this problem
@Rafazor Which version of react-native-maps-directions
are you running? If you already are running version 1.7.5 then please provide a minimal demo to reproduce the error you are seeing.
I'm running 1.7.5, but after a full clean of the project the"Cannot read property 'map' of undefined" is gone and now I have this error.
console.error: "Unhandled promise rejection", TypeError: Cannot read property 'distance' of undefined
module.exports host-report-errors.js:6:56 dispatchEvent es.promise.js:147:41 perform$argument_0 es.promise.js:159:15 module.exports perform.js:3:34 task.call$argument_1 es.promise.js:156:15
..................................................
"react-native-maps": "0.26.1",
"react-native-maps-directions": "^1.7.5",
@Rafazor Please refer to https://github.com/bramus/react-native-maps-directions/issues/132#issuecomment-600057488 regarding this, as it was already mentioned there. If you could try and verify the suggested solution, I'll publish a new version with the fix.
@carlossuds @jdbaculard you have used version 1.7.3 or less but this package update recently just simply do one thing go to package.json and change "react-native-maps-directions": "^1.7.3", to "react-native-maps-directions": "1.7.3", after this run npm install or yarn install just stick on the version your already use do not change if it is not necessary
thanks it worked well
When I take out the origin property of the Directions component, it runs with no errors but doesn't show the direction. When I put it, for obvious reasons, I get this error.