Skip to content

Commit fc7216c

Browse files
jan-happyDanielMSchmidt
authored andcommitted
docs: Fixes a typo in example code
The example stated SensorTypes.Accelerometer, correct is SensorTypes.accelerometer
1 parent 1fefcb9 commit fc7216c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/Usage.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import {
1515
} from "react-native-sensors";
1616
import { map, filter } from "rxjs/operators";
1717

18-
setUpdateIntervalForType(SensorTypes.Accelerometer, 400); // defaults to 100ms
18+
setUpdateIntervalForType(SensorTypes.accelerometer, 400); // defaults to 100ms
1919

2020
const subscription = accelerometer
2121
.pipe(map(({ x, y, z }) => x + y + z), filter(speed => speed > 20))

0 commit comments

Comments
 (0)