OiO.lk Community platform!

Oio.lk is an excellent forum for developers, providing a wide range of resources, discussions, and support for those in the developer community. Join oio.lk today to connect with like-minded professionals, share insights, and stay updated on the latest trends and technologies in the development field.
  You need to log in or register to access the solved answers to this problem.
  • You have reached the maximum number of guest views allowed
  • Please register below to remove this limitation

Using react native library for IOS (Healthkit ) and running dev server on windows machine

  • Thread starter Thread starter user
  • Start date Start date
U

user

Guest
I just started using expo development builds. I'm an swe and I develop with typescript, so naturally chose rn/expo.

I'd like to first deploy an ios app, and then extend to android. I currently have an Iphone and windows pc. I already did the initial set up and created the expo-app (via developmental builds). I'm now trying to call a library I found on the recommended react-native registry. This library interacts with Apple Healthkit. This is the app: https://kingstinct.com/react-native-healthkit/. (note it has native code - swift)

I followed what they say, but I get an error. I've been banging my head around it, and I'm not sure if I'm on the right track.

Question: should I be able to install this library (given i'm on windows) and be able to see this library "in action" on my iphone? I'm running npx expo start

I'm running the authorization code in the default index.tsx and I have the following error: "invariant violation: new NativeEventEmitter() requires a non-null argument., js engine: hermes.

Does this have to do something with the fact that I'm trying to run this code on windows?
<p>I just started using expo development builds. I'm an swe and I develop with typescript, so naturally chose rn/expo.</p>
<p>I'd like to first deploy an ios app, and then extend to android. I currently have an Iphone and windows pc. I already did the initial set up and created the expo-app (via developmental builds). I'm now trying to call a library I found on the recommended react-native registry. This library interacts with Apple Healthkit. This is the app: <a href="https://kingstinct.com/react-native-healthkit/" rel="nofollow noreferrer">https://kingstinct.com/react-native-healthkit/</a>. (note it has native code - swift)</p>
<p>I followed what they say, but I get an error. I've been banging my head around it, and I'm not sure if I'm on the right track.</p>
<p>Question: should I be able to install this library (given i'm on windows) and be able to see this library "in action" on my iphone? I'm running npx expo start</p>
<p>I'm running the authorization code in the default index.tsx and I have the following error: "invariant violation: <code>new NativeEventEmitter()</code> requires a non-null argument., js engine: hermes.</p>
<p>Does this have to do something with the fact that I'm trying to run this code on windows?</p>
Continue reading...
 
Top