GithubHelp home page GithubHelp logo

Comments (9)

sharma00praful avatar sharma00praful commented on August 20, 2024 1

i changed the code of _getCurrentLocation arrow function to
_getCurrentLocation = () => {
// const { timeout, maximumAge, enableHighAccuracy } = this.props;
let options = {
timeout: 2000,

}
Geolocation.getCurrentPosition(
position => {
const { latitude, longitude } = position.coords;
this._setRegion({latitude, longitude});
},
error => console.log(error.message),
options
);
};

to make it work. Hope this helps.

from react-native-location-view.

AhsanAyaz avatar AhsanAyaz commented on August 20, 2024

@hhunaid would you be able to look into this anytime soon?

from react-native-location-view.

arryanggaputra avatar arryanggaputra commented on August 20, 2024

Same here.

from react-native-location-view.

hhunaid avatar hhunaid commented on August 20, 2024

I’ll take a look this weekend.

from react-native-location-view.

abner01061998 avatar abner01061998 commented on August 20, 2024

Not solved yet? :(

from react-native-location-view.

hhunaid avatar hhunaid commented on August 20, 2024

I am sorry but I am swamped with other work. If someone wants to submit a PR I'll be able to quickly merge. Other than that I am afraid I don't have much time. Not until a few weeks.

from react-native-location-view.

Arooba-Irfan avatar Arooba-Irfan commented on August 20, 2024

@hhunaid I have created PR for issue#18 (when i use current location button, i get Malformed calls from Js: field sizes are different )

from react-native-location-view.

brokenpieworld avatar brokenpieworld commented on August 20, 2024

same here

from react-native-location-view.

sainirahul779 avatar sainirahul779 commented on August 20, 2024

i changed the code of _getCurrentLocation arrow function to _getCurrentLocation = () => { // const { timeout, maximumAge, enableHighAccuracy } = this.props; let options = { timeout: 2000,

} Geolocation.getCurrentPosition( position => { const { latitude, longitude } = position.coords; this._setRegion({latitude, longitude}); }, error => console.log(error.message), options ); };

to make it work. Hope this helps.

This Solution is working fine can we get a update for this @hhunaid

from react-native-location-view.

Related Issues (17)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.