react-native-yamap icon indicating copy to clipboard operation
react-native-yamap copied to clipboard

Cannot read property 'suggest' of null

Open Nodirbek3d opened this issue 2 years ago • 0 comments

In my case, GeoCoder works, but Suggest does not. Here is my code:

import {Geocoder, Suggest} from 'react-native-yamap';

Geocoder.init('xxx-xxx-xxx-xxx-xxx');

....
    const response_ = await Geocoder.reverseGeocode(q) ; // This one works
   const suggestions_ = await Suggest.suggestWithCoords(q); // this one throws errors:

The error is straight forward:

[TypeError: Cannot read property 'suggest' of null]

"react-native-yamap": "^4.1.18",

Nodirbek3d avatar May 31 '23 21:05 Nodirbek3d