AndrewDongminYoo / react-native-step-counter

[리액트 네이티브 라이브러리] 사용자의 걸음 수를 계산합니다. Android는 StepCounter (or Accelerometer) 센서 API를, iOS는 CoreMotion CMPedometer 를 사용하여 걸음 수를 측정합니다.
https://andrewdongminyoo.github.io/react-native-step-counter/
MIT License
29 stars 10 forks source link

The package '@dongminyu/react-native-step-counter' doesn't seem to be linked #29

Closed bundittha closed 1 year ago

bundittha commented 1 year ago

React Native Step Counter New Issue

System: OS: macOS 13.4 CPU: (10) arm64 Apple M2 Pro Memory: 90.77 MB / 16.00 GB Shell: version: "5.9" path: /bin/zsh Binaries: Node: version: 16.19.1 path: /var/folders/9b/n0rg4df53tl1jtslh236tfmm0000gn/T/yarn--1692443137067-0.6712097544769973/node Yarn: version: 1.22.19 path: /var/folders/9b/n0rg4df53tl1jtslh236tfmm0000gn/T/yarn--1692443137067-0.6712097544769973/yarn npm: version: 8.19.3 path: ~/.nvm/versions/node/v16.19.1/bin/npm Watchman: version: 2023.04.10.00 path: /opt/homebrew/bin/watchman Managers: CocoaPods: version: 1.12.1 path: /Users/buddy/.rvm/gems/ruby-3.0.0/bin/pod SDKs: iOS SDK: Platforms:

Expected Behavior

Actual Behavior

Screenshot_20230819_181029

Specifications

bundittha commented 1 year ago
Screenshot 2566-08-25 at 00 36 16

I think this is root cause, I can fixed by patch-package. Thank you for your times @AndrewDongminYoo

zvici commented 1 year ago
image

"@dongminyu/react-native-step-counter": "^0.2.1" "react-native": "0.70.6"

in gradle.properties newArchEnabled=false

I also have the same problem

fzerman commented 1 year ago

I have same error with 0.2.1 on react-native 0.71.11 without newArch

AndrewDongminYoo commented 1 year ago

Well 🧐🧐🧐 I apologize for the delayed update on the issue. It looks like the syntax for NativeModules.RNStepCounter should be changed to NativeModules.StepCounter, as you're pointing out. I'll try to get that into the code as soon as possible. Please use tools like patch-packages to prioritize this. Thanks for being patient.

mauriciolcs commented 11 months ago

same problem here, it looks like the package is not linking correctly on android ios is working fine

mehandi-bytes commented 11 months ago

same problem here, it looks like the package is not linking please help me out @morricedev do you find any solution

mauriciolcs commented 11 months ago

@mehandi-bytes

Which release are you trying? The v0.2.2 is working for me.

mehandi-bytes commented 11 months ago

0.2.3

can you please provide me a step for installation

bundittha commented 11 months ago

0.2.3

can you please provide me a step for installation

If you facing same problem with me I think problem is this class

Screenshot 2566-10-18 at 17 38 56

you can extend with this class ReactContextBaseJavaModule(context) Hope it can help

mehandi-bytes commented 11 months ago

@bundittha @morricedev need help

image

so i can write down but still not working

image

i can change this file

mehandi-bytes commented 11 months ago

@morricedev @bundittha help o

instead i got this error

image

bundittha commented 11 months ago

instead i got this error

image My solution will work only in old architecture I see you turn on new architecture. I did't face issue on new architect

mauriciolcs commented 11 months ago

@mehandi-bytes Could you downgrade to 0.2.2 version and try again?

It may be that some change in this new version is causing this error

mehandi-bytes commented 11 months ago

@mehandi-bytes Could you downgrade to 0.2.2 version and try again?

It may be that some change in this new version is causing this error

i have done it to low version as a result not working

mauriciolcs commented 11 months ago

@mehandi-bytes Could you downgrade to 0.2.2 version and try again? It may be that some change in this new version is causing this error

i have done it to low version as a result not working

I recommend you open a new issue with more details, so I can help you better there