chore: fix waze
This commit is contained in:
@@ -462,8 +462,8 @@ export default function DashboardScreen() {
|
||||
const encoded = encodeURIComponent(address);
|
||||
const wazeApp = `waze://?q=${encoded}&navigate=yes`;
|
||||
const wazeWeb = `https://waze.com/ul?q=${encoded}&navigate=yes`;
|
||||
Linking.canOpenURL(wazeApp).then((supported) => {
|
||||
Linking.openURL(supported ? wazeApp : wazeWeb);
|
||||
Linking.openURL(wazeApp).catch(() => {
|
||||
Linking.openURL(wazeWeb);
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user