Skip to content

Commit 55b7150

Browse files
authored
Merge pull request #133 from WoLewicki/@wolewicki/fix-newarch
fix: make new arch work on iOS
2 parents 8704646 + 38205b0 commit 55b7150

File tree

5 files changed

+5
-34
lines changed

5 files changed

+5
-34
lines changed

example/ios/Podfile.lock

+3-3
Original file line numberDiff line numberDiff line change
@@ -1145,7 +1145,7 @@ PODS:
11451145
- React-Core
11461146
- React-jsi
11471147
- ReactTestApp-Resources (1.0.0-dev)
1148-
- RNReactNativeHapticFeedback (2.3.0):
1148+
- RNReactNativeHapticFeedback (2.3.1):
11491149
- DoubleConversion
11501150
- glog
11511151
- RCT-Folly (= 2024.01.01.00)
@@ -1402,10 +1402,10 @@ SPEC CHECKSUMS:
14021402
ReactNativeHost: 4983b4bfdef9f1a67f523b633909df57a9c1dae9
14031403
ReactTestApp-DevSupport: f781365c3ae6377dcfa2affe319ae66e0fb20777
14041404
ReactTestApp-Resources: 857244f3a23f2b3157b364fa06cf3e8866deff9c
1405-
RNReactNativeHapticFeedback: 1c82b2b3d51105a01ed0d4b1d696319479e2c777
1405+
RNReactNativeHapticFeedback: 5945b9c7a2e9db8df62e1d94063d8a135c187f32
14061406
SocketRocket: abac6f5de4d4d62d24e11868d7a2f427e0ef940d
14071407
Yoga: 0efb3e1bd40ba59b009f01badea863281101de78
14081408

14091409
PODFILE CHECKSUM: 58b1b5d965384968b1dd12f033ef182aec4c1b6b
14101410

1411-
COCOAPODS: 1.14.3
1411+
COCOAPODS: 1.15.2

ios/RNHapticFeedback.xcodeproj/project.pbxproj

-2
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525

2626
/* Begin PBXFileReference section */
2727
134814201AA4EA6300B7C361 /* libRNHapticFeedback.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libRNHapticFeedback.a; sourceTree = BUILT_PRODUCTS_DIR; };
28-
3FAF13E52C6144D7002E28B1 /* RNHapticFeedbackSpec.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = RNHapticFeedbackSpec.h; path = RNHapticFeedback/RNHapticFeedbackSpec.h; sourceTree = "<group>"; };
2928
558CBA9028EF1100007CF242 /* RNHapticFeedback.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = RNHapticFeedback.h; path = RNHapticFeedback/RNHapticFeedback.h; sourceTree = "<group>"; };
3029
558CBA9128EF1100007CF242 /* DeviceUtils.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = DeviceUtils.h; path = RNHapticFeedback/DeviceUtils.h; sourceTree = "<group>"; };
3130
558CBA9228EF1100007CF242 /* DeviceUtils.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; name = DeviceUtils.mm; path = RNHapticFeedback/DeviceUtils.mm; sourceTree = "<group>"; };
@@ -54,7 +53,6 @@
5453
58B511D21A9E6C8500147676 = {
5554
isa = PBXGroup;
5655
children = (
57-
3FAF13E52C6144D7002E28B1 /* RNHapticFeedbackSpec.h */,
5856
558CBA9128EF1100007CF242 /* DeviceUtils.h */,
5957
558CBA9228EF1100007CF242 /* DeviceUtils.mm */,
6058
558CBA9028EF1100007CF242 /* RNHapticFeedback.h */,

ios/RNHapticFeedback/RNHapticFeedback.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#ifdef RCT_NEW_ARCH_ENABLED
2-
#import "RNHapticFeedbackSpec.h"
2+
#import <RNHapticFeedbackSpec/RNHapticFeedbackSpec.h>
33

44
@interface RNHapticFeedback : NSObject <NativeHapticFeedbackSpec>
55
#else
@@ -25,4 +25,4 @@ typedef NS_ENUM(NSInteger, FeedbackType) {
2525

2626
- (Boolean)supportsHaptic;
2727

28-
@end
28+
@end

ios/RNHapticFeedback/RNHapticFeedbackSpec.h

-15
This file was deleted.

package.json

-12
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,6 @@
66
"source": "src/index.ts",
77
"main": "./lib/commonjs/index.js",
88
"module": "./lib/module/index.js",
9-
"exports": {
10-
".": {
11-
"import": {
12-
"types": "./lib/typescript/module/src/index.d.ts",
13-
"default": "./lib/module/index.js"
14-
},
15-
"require": {
16-
"types": "./lib/typescript/commonjs/src/index.d.ts",
17-
"default": "./lib/commonjs/index.js"
18-
}
19-
}
20-
},
219
"scripts": {
2210
"typecheck": "tsc --noEmit --project tsconfig.test.json",
2311
"test": "jest",

0 commit comments

Comments
 (0)