brh55 / react-native-open-maps

🗺 A simple react-native library to perform cross-platform map actions (Google, Apple, or Yandex Maps)
MIT License
359 stars 47 forks source link

Expected 'end' parameter in navigation, defaulting to preview mode. #52

Closed Irfanwani closed 2 years ago

Irfanwani commented 2 years ago

I tried the navigation feature and it works fine but it shows this warning;

Expected 'end' parameter in navigation, defaulting to preview mode.

Here is the code;

openMap({ latitude: some_latitude, longitude: some_longitude, end:${some_latitude},${some_longitude}, navigate: true })

Irfanwani commented 2 years ago

So i think i got it. It requires query parameter to be set.

So my code will look like this;

openMap({query: address, end: address, navigate: true })

we can give address as latitude and longitude seperated by a comma (,)