diff --git a/android/src/main/java/com/swmansion/reanimated/sensor/ReanimatedSensor.java b/android/src/main/java/com/swmansion/reanimated/sensor/ReanimatedSensor.java index c26ecdadff9..4b520bedb74 100644 --- a/android/src/main/java/com/swmansion/reanimated/sensor/ReanimatedSensor.java +++ b/android/src/main/java/com/swmansion/reanimated/sensor/ReanimatedSensor.java @@ -17,6 +17,7 @@ public class ReanimatedSensor { Sensor sensor; ReanimatedSensorType sensorType; int interval; + private static final int DEFAULT_INTERVAL = 8; ReanimatedSensor( WeakReference reactContext, @@ -30,7 +31,7 @@ public class ReanimatedSensor { (SensorManager) reactContext.get().getSystemService(reactContext.get().SENSOR_SERVICE); this.sensorType = sensorType; if (interval == -1) { - this.interval = SensorManager.SENSOR_DELAY_UI; + this.interval = DEFAULT_INTERVAL; } else { this.interval = interval; }