Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RNSensorsAccelerometer is not a supported event type for RNSensorsAccelerometer #407

Closed
kyoz opened this issue Aug 19, 2021 · 3 comments · Fixed by #408
Closed

RNSensorsAccelerometer is not a supported event type for RNSensorsAccelerometer #407

kyoz opened this issue Aug 19, 2021 · 3 comments · Fixed by #408
Labels

Comments

@kyoz
Copy link

kyoz commented Aug 19, 2021

Describe the bug

Version 7.3.2 will throw this error when try listeners for sensors:

`RNSensorsAccelerometer` is not a supported event type for RNSensorsAccelerometer. Supported events are: `Accelerometer`

Maybe duo to the change of listener names in this commit

7.3.1 and below still working

Expected behavior

Should working without error

Desktop (please complete the following information):

  • React Native Version: 0.64.2
  • Device: Iphone 5S (64GB)
  • Version: 7.3.2
@kurovskyiii
Copy link

The same thing on RN 0.64.2

@kurovskyiii
Copy link

I've tried go to "node_modules/react-native-sensors/src/sensors.js" and rename "RNSensorAccelerometer" to "Accelerometer" in listenerKeys var:
["accelerometer", "Accelerometer"],

Waiting for the fix.

@DanielMSchmidt
Copy link
Member

🎉 This issue has been resolved in version 7.3.3 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants