matinzd / react-native-health-connect

React native library for health connect (Android only)
http://matinzd.github.io/react-native-health-connect
MIT License
231 stars 43 forks source link

iOS Pod install fails #168

Closed olehtalanov closed 1 month ago

olehtalanov commented 1 month ago

There is an error when trying to install Pods.

UnsupportedGenericParserError: Module NativeHealthConnect: Unrecognized generic type 'TimeRangeSlicer' in NativeModule spec.

Downgrade to 3.1.2 works so far.

P.S. Tried to exlude package with react-native.config.js also didn't work.

matinzd commented 1 month ago

Have you turned on the new architecture? It seems like codegen is trying to build corresponding types and it's failing. I will release a fix for this soon but for a workaround change this line to Object and remove the import:

https://github.com/matinzd/react-native-health-connect/blob/8c2cf3998ae2bdb12b2eb723416a676208e1a6d8/src/NativeHealthConnect.ts#L39