Coder Social home page Coder Social logo

Comments (5)

pin0S avatar pin0S commented on May 27, 2024 1

Yeah see the same error. I'll dig in a bit more tomorrow, I can't get the useStatisticsForQuantity hook to work it might be related to this issue.

from react-native-healthkit.

robertherber avatar robertherber commented on May 27, 2024

Hi @gordysc,

Not quite sure why you're getting this. Are you using the latest version of the library? Could you put up a reproducible example of this happening?

from react-native-healthkit.

pin0S avatar pin0S commented on May 27, 2024

Hi @robertherber and @gordysc, I'm having the same issue and I'm getting the error message in the console TypeError: Object is not a function at line 494 in the example below.

I am just trying to run the example in the repo, you can reproduce if you run the following: https://github.com/Kingstinct/react-native-healthkit/blob/master/example/src/App.tsx

Running React Native 0.70 and latest version of library.

Edit: I solved my issue by reverting to the Healthkit.module format instead of importing the hooks at the top of the file.

from react-native-healthkit.

gordysc avatar gordysc commented on May 27, 2024

@robertherber I'll get a repo up later today if you want an example, but to @pin0S 's point you see the same error even on the example repo:

image

I'm using Node 16.8.1 FWIW

from react-native-healthkit.

robertherber avatar robertherber commented on May 27, 2024

I think this only occurs if you open the example folder directly in VSCode (stumbled across the same today). Try opening VSCode from the root and it should work as expected :)

If opening VSCode from the root directory doesn't solve it - let's reopen this.

from react-native-healthkit.

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.