pwmckenna / react-native-motion-manager

CMMotionManager wrapper for react-native
https://www.npmjs.com/package/react-native-motion-manager
247 stars 69 forks source link

Multiple CMMotionManager instances #6

Closed paramaggarwal closed 4 years ago

paramaggarwal commented 9 years ago

From CMMotionManager docs:

An app should create only a single instance of the CMMotionManager class. Multiple instances of this class can affect the rate at which data is received from the accelerometer and gyroscope.

Currently if both Accelerometer and Gyroscope were used, it would create two instances.

(Raised this to keep track of it, not asking for a fix - I do understand that it is the community's responsibility to help out.)

pwmckenna commented 9 years ago

@paramaggarwal thanks for the report. I don't really have much time to work on OSS at the moment, but I'll leave this open just to track. If anyone would like to take a crack at this, PRs welcome!