Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions android/src/main/java/com/stepcounter/StepCounterModule.kt
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import com.stepcounter.services.AccelerometerService
import com.stepcounter.services.SensorListenService
import com.stepcounter.services.StepCounterService
import com.stepcounter.utils.AndroidVersionHelper
import com.facebook.react.module.annotations.ReactModule

/**
* This class is the native module for the react-native-step-counter package.
Expand Down
6 changes: 3 additions & 3 deletions ios/StepCounter.h
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
#ifdef RCT_NEW_ARCH_ENABLED
#import "StepCounterSpec.h"
#import <React/RCTEventEmitter.h>

@interface StepCounter : NSObject <NativeStepCounterSpec>
@interface StepCounter : RCTEventEmitter <NativeStepCounterSpec>
#else
#import <Foundation/Foundation.h>
#import <React/RCTBridgeModule.h>
#import <React/RCTEventEmitter.h>
#import "SOMotionDetecter.h"

@interface StepCounter : RCTEventEmitter<RCTBridgeModule>
@interface StepCounter : RCTEventEmitter <RCTBridgeModule>
#endif

@end
3 changes: 0 additions & 3 deletions ios/StepCounter.mm
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#import <CoreMotion/CoreMotion.h>
#import <React/RCTBridge.h>
#import <React/RCTEventDispatcher.h>
#import "StepCounter.h"
#import "SOMotionDetecter.h"

Expand All @@ -13,8 +12,6 @@ + (BOOL)requiresMainQueueSetup {
return YES;
}

@synthesize bridge = _bridge;

RCT_EXPORT_MODULE();

- (NSArray<NSString *> *)supportedEvents {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"version": "0.2.5",
"summary": "It is a multi-platform library that combines CoreMotionSensor from iOS with SensorEventListener from Android.",
"description": "This library provides an interface for tracking the number of steps taken by the user in a React Native app.",
"main": "lib/commonjs/index.js",
"main": "lib/module/index.js",
"module": "lib/module/index.js",
"types": "lib/typescript/src/index.d.ts",
"react-native": "src/index.tsx",
Expand Down
Loading