Comments (5)
Awesome - I'll give it a whirl on my Weather example. @vjeux mentioned that there is already a location API internally that they were planning on exposing soon - not sure what approach that will take.
from react-native.
Our API looks like that right now FYI
class GeoLocation {
static getCurrentPosition(geo_success, geo_error, geo_options)
static watchPosition(callback)
static clearWatch(watchID)
static stopObserving()
}
from react-native.
Thanks @vjeux. Good to know you're using a similar approach.
Is exposing Facebook's Geolocation API near-future or does it make sense to keep working on mine for now? I don't plan to get it merged as my Obj-C is probably awful. ;)
Also, would this belong in React Core?
from react-native.
We're going to port back our version to github soon, so we're unlikely going to use yours sorry :( I hope this was a good learning experience though. There's a bunch of other apis that will need to be bridged in a similar fashion so your skills won't be lost
from react-native.
Hah no worries! I knew it wouldn't. Was just for the learning experience. Maybe I can assist with writing some docs when you start, and yeah I'll look at other API's as and when I need them.
from react-native.
Related Issues (20)
- REACT NATIVE 0.74.3 Signed Release APK Issue HOT 5
- [IOS] Compile Issue. It was working fine previously but now it stops working. HOT 2
- java.lang.Exception: React Native needs Node.js >= 18 HOT 5
- backgroundColor is not being applied to Text and View when giving borderStyle as 'dotted' or 'dashed' HOT 1
- Xcode Unsupported Swift Version HOT 3
- Execution failed for task ':app:compileDebugJavaWithJavac'. HOT 2
- How to use https agent in React Native? HOT 4
- NativeModules is {} HOT 1
- Platform.constants.reactNativeVersion.prerelease should be a string HOT 5
- App restarts / crashes when enabling remote debugging with RN 0.73.9 for Android HOT 4
- 0.75.0-rc.4 - App build failed for task ':app:generateAutolinkingPackageList'. HOT 12
- `headers` defined in Image `source` prop are not sent along with the request for a remote image HOT 3
- Invariant Violation: "App" has not been registered. This can happen if: * Metro (the local dev server) is run from the wrong folder. Check if Metro is running, stop it and restart it in the current project. HOT 2
- AppState 'change' fires redundant 'active' when app is already active the first time the listener is added on Android iOS Prod HOT 3
- Build failure in Fabric when implementing custom Shadow Node with Swift integration
- build error HOT 3
- Strange Issue with PagerView/Image in a Full Screen Overlay (iOS only) HOT 3
- TextInput menu is not hidden even contextMenuHidden is true on Android HOT 2
- onEndReached does not trigger even though onEndReachedThreshold is set HOT 2
- [iOS] Hash Generated Using Broken Cryptography API (SHA1) HOT 3
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.