Skip to content
This repository was archived by the owner on Dec 5, 2024. It is now read-only.

Commit 61c1d12

Browse files
fix: fix listener naming (react-native-sensors#405)
1 parent b0fa500 commit 61c1d12

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/sensors.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@ const {
1313
} = NativeModules;
1414

1515
const listenerKeys = new Map([
16-
["accelerometer", "Accelerometer"],
17-
["gyroscope", "Gyroscope"],
18-
["magnetometer", "Magnetometer"],
19-
["barometer", "Barometer"],
20-
["orientation", "Orientation"],
21-
["gravity", "Gravity"],
16+
["accelerometer", "RNSensorsAccelerometer"],
17+
["gyroscope", "RNSensorsGyroscope"],
18+
["magnetometer", "RNSensorsMagnetometer"],
19+
["barometer", "RNSensorsBarometer"],
20+
["orientation", "RNSensorsOrientation"],
21+
["gravity", "RNSensorsGravity"],
2222
]);
2323

2424
const nativeApis = new Map([

0 commit comments

Comments
 (0)