Skip to content

Commit 8fcddc1

Browse files
committed
match expo-modules-core to build on react-native-macos
1 parent e5a7fad commit 8fcddc1

2 files changed

Lines changed: 19 additions & 1 deletion

File tree

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,16 @@
3838
"build:macos": "./build_nativescript.sh --macos --no-iphone --no-simulator",
3939
"build:macos-cli": "./build_nativescript.sh --no-iphone --no-simulator --macos-cli",
4040
"build:macos-napi": "./build_nativescript.sh --no-iphone --no-simulator --macos-napi",
41-
"nsr": "./dist/nsr"
41+
"nsr": "./dist/nsr",
42+
"postinstall": "patch-package"
4243
},
4344
"license": "Apache-2.0",
4445
"devDependencies": {
4546
"conventional-changelog-cli": "^2.1.1",
4647
"dayjs": "^1.11.7",
4748
"husky": "^9.0.11",
4849
"lint-staged": "^15.2.7",
50+
"patch-package": "^8.0.1",
4951
"semver": "^7.5.0"
5052
},
5153
"lint-staged": {
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
diff --git a/node_modules/expo-modules-core/ios/Interfaces/ImageLoader/EXImageLoaderInterface.h b/node_modules/expo-modules-core/ios/Interfaces/ImageLoader/EXImageLoaderInterface.h
2+
index 2b241d1..c8b2701 100644
3+
--- a/node_modules/expo-modules-core/ios/Interfaces/ImageLoader/EXImageLoaderInterface.h
4+
+++ b/node_modules/expo-modules-core/ios/Interfaces/ImageLoader/EXImageLoaderInterface.h
5+
@@ -2,7 +2,11 @@
6+
7+
#import <ExpoModulesCore/Platform.h>
8+
9+
+#if TARGET_OS_OSX
10+
+typedef void (^EXImageLoaderCompletionBlock)(NSError *error, void *image);
11+
+#else
12+
typedef void (^EXImageLoaderCompletionBlock)(NSError *error, UIImage *image);
13+
+#endif
14+
15+
@protocol EXImageLoaderInterface <NSObject>
16+

0 commit comments

Comments
 (0)