Comments (9)
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.
@hhunaid would you be able to look into this anytime soon?
from react-native-location-view.
Same here.
from react-native-location-view.
I’ll take a look this weekend.
from react-native-location-view.
Not solved yet? :(
from react-native-location-view.
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.
@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.
same here
from react-native-location-view.
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)
- Functionality HOT 4
- dependency issue HOT 2
- Feature missing HOT 5
- close app on samsung note10 HOT 1
- maximumAge is not usable as a native method HOT 1
- Compatibility HOT 1
- Promise Unhandled Promise Rejection (id: 2) HOT 3
- Geocoding is not working HOT 2
- Current Location is Slow HOT 1
- Just autocompleting input? HOT 2
- How to change placeholder text or add label ?
- Location Suggestions not comming HOT 3
- saving lat and lng and address to use it later HOT 3
- It is possible to get Country and City individually ? HOT 7
- Not updating current location address on Search bar HOT 6
- not compatible with react native 60+ HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-native-location-view.