Closed kirtanbodawala closed 6 months ago
React-native-maps happens to be same with navsdk in terms of using the map alone. Maybe they can use through gradle config to resolve those duplicates. @ArturoSalazarB16
@zbillones-navagis @ArturoSalazarB16 I was able to exclude react-native-navigation-sdk
dependency in gradle file and built was successful but now the android application keeps crashing. Can you help us what are the options because this is preventing us to deploy to production. Thanks
Hi @kirtanbodawala, the reason why this happens is because both are trying to pull MapsSDK classes into runtime.
Ideally, you'd only load react-native-navigation-sdk
as we don't support compatibility with react-native-maps
. Is there anything specific from the latter that you need that we don't provide in react-native-navigation-sdk
?
For context, in the upcoming weeks, we'll be working to take this library to GA, which will also involve adding functionality that is in the native SDKs but is currently not exposed on the library.
CC @caio1985
Hi @ArturoSalazarB16 The purpose we are using react-native-maps is to show polyline with multiple stops, kinda overview of the multiple destinations from start point to stop point. Is this achievable using this library?
We have a good amount of MapsSDK functionality built-in to the library. Some examples are Markers, Polylines. Can you please take a look through this and see if this would suffice? https://github.com/googlemaps/react-native-navigation-sdk/blob/ed9e87cfb7775d4b53ed0a57e05baf7519bf33ef/components/maps/mapView/types.ts#L212
The sample app showcases how to achieve some of this functionality: https://github.com/googlemaps/react-native-navigation-sdk/blob/ed9e87cfb7775d4b53ed0a57e05baf7519bf33ef/SampleApp/src/mapsControls.tsx#L144
Will be closing this but please feel free to open a feature request in case there's anything missing from the maps artifacts.
hi @ArturoSalazarB16 We are using distance matrix api with react-native-maps to get the overview between multiple routes. Is this achievable using sdk?
When having
react-native-maps
andreact-native-navigation-sdk
dependencies together we are seeing below error during build phase.Error