Quantcast
Channel: Active questions tagged react-native+ios - Stack Overflow
Viewing all articles
Browse latest Browse all 17242

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

$
0
0

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?


Viewing all articles
Browse latest Browse all 17242

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>