dpa99c / react-native-launch-navigator

A React Native module for launching today's most popular navigation/ride apps to navigate to a destination.
143 stars 34 forks source link

ExceptionsManager.js:76 Error: '_40' is not a recognised app #32

Closed gilshaan closed 4 years ago

gilshaan commented 4 years ago

let apps = LaunchNavigator.getAvailableApps(); console.log(apps) // Consolled result : [_40: 0, _65: 0, _55: null, _72: null]

for(let app in apps){ console.log(LaunchNavigator.getAppDisplayName(app)) // throwing error while calling like this in Android & ios }

gilshaan commented 4 years ago

Issue solved by using this code LaunchNavigator.getAvailableApps() .then((apps) => { console.log("->getAvailableApps(): "+JSON.stringify(apps)); }) .catch((error) => { console.error(error); });