android - React-native: How to pass predefined string to RNGooglePlaces.openAutocompleteModal -
i having search functionality using react-native-google-places dependency.
i using rngoogleplaces.openautocompletemodal search .
can customization like, when search place "xyz" , google should give me searched place "xyz, city"?
<touchableopacity accessibilitycomponenttype="button" onpress={()=>this.opensearchmodal()}> <view> <text>search preffered location</text> </view> </touchableopacity> opensearchmodal() { rngoogleplaces.openautocompletemodal({ country: 'in', useoverlay : true, }) .then((place) => { this.persistdata(place); }) .catch(error => console.log(error.message)); }
Comments
Post a Comment