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

Commit b0fa500

Browse files
authored
fix: utils prefix bug (react-native-sensors#402)
* prefix refrence * prefix
1 parent 18e81cd commit b0fa500

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ios/RNSensorsGravity.m

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
#import <React/RCTBridge.h>
66
#import <React/RCTEventDispatcher.h>
77
#import "RNSensorsGravity.h"
8-
#import "Utils.h"
8+
#import "RNSensorsUtils.h"
99

1010
@implementation RNSensorsGravity
1111

@@ -91,7 +91,7 @@ - (void) isAvailableWithResolver:(RCTPromiseResolveBlock) resolve
9191
double x = self->_motionManager.deviceMotion.gravity.x;
9292
double y = self->_motionManager.deviceMotion.gravity.y;
9393
double z = self->_motionManager.deviceMotion.gravity.z;
94-
double timestamp = [Utils sensorTimestampToEpochMilliseconds:self->_motionManager.deviceMotion.timestamp];
94+
double timestamp = [RNSensorsUtils sensorTimestampToEpochMilliseconds:self->_motionManager.deviceMotion.timestamp];
9595

9696
if (self->logLevel > 0) {
9797
NSLog(@"getData: %f, %f, %f, %f", x, y, z, timestamp);
@@ -122,7 +122,7 @@ - (void) isAvailableWithResolver:(RCTPromiseResolveBlock) resolve
122122
double y = deviceMotion.gravity.y;
123123
double z = deviceMotion.gravity.z;
124124

125-
double timestamp = [Utils sensorTimestampToEpochMilliseconds:deviceMotion.timestamp];
125+
double timestamp = [RNSensorsUtils sensorTimestampToEpochMilliseconds:deviceMotion.timestamp];
126126

127127
if (self->logLevel > 1) {
128128
NSLog(@"Updated gravity values: %f, %f, %f, %f", x, y, z, timestamp);

0 commit comments

Comments
 (0)