Coder Social home page Coder Social logo

Comments (5)

nick avatar nick commented on April 19, 2024

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.

vjeux avatar vjeux commented on April 19, 2024

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.

JoeStanton avatar JoeStanton commented on April 19, 2024

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.

vjeux avatar vjeux commented on April 19, 2024

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.

JoeStanton avatar JoeStanton commented on April 19, 2024

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)

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.