Problem
Issue while getting mapbox bounds coordinates using this.map refereance @mapbox/react-native-mapbox-gl npm module. I used getVisibleBounds() method but it will not resolve promise any how.
try {
let bounds = await this.map.getVisibleBounds();
console.log("Bounds : ", bounds);
} catch (err) {
console.log("Error : ", err);
}
I used below dependecy for React-Native App with Android.
"@mapbox/react-native-mapbox-gl": "6.1.2-beta2"
"react": "16.3.1"
"react-native": "0.55.4"
It will neither print Bounds nor Error
Any please help me solve out this problem
There is issue raise on gitgub mapbox repo as well but they also didn't reply on this issue. You can check on below link for more details.