Skip to content

Commit a553c93

Browse files
committed
feat: done
1 parent 9414f3b commit a553c93

18 files changed

+1132
-84
lines changed

react-native-pencil-kit.podspec renamed to RNPencilKit.podspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@ package = JSON.parse(File.read(File.join(__dir__, "package.json")))
44
folly_compiler_flags = '-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -Wno-comma -Wno-shorten-64-to-32'
55

66
Pod::Spec.new do |s|
7-
s.name = "react-native-pencil-kit"
7+
s.name = "RNPencilKit"
88
s.version = package["version"]
99
s.summary = package["description"]
1010
s.homepage = package["homepage"]
1111
s.license = package["license"]
1212
s.authors = package["author"]
1313

14-
s.platforms = { :ios => min_ios_version_supported }
14+
s.platforms = { :ios => '14.0' }
1515
s.source = { :git => "https://github.com/mym0404/react-native-pencil-kit.git", :tag => "#{s.version}" }
1616

1717
s.source_files = "ios/**/*.{h,m,mm}"

example/ios/PencilKitExample.xcodeproj/project.pbxproj

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@
1212
13B07FBC1A68108700A75B9A /* AppDelegate.mm in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB01A68108700A75B9A /* AppDelegate.mm */; };
1313
13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB51A68108700A75B9A /* Images.xcassets */; };
1414
13B07FC11A68108700A75B9A /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB71A68108700A75B9A /* main.m */; };
15+
2D8473532BE51B21002D299C /* noop.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2D8473522BE51B21002D299C /* noop.swift */; };
16+
2D8473582BE51E3E002D299C /* libPods-PencilKitExample.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 2D8473572BE51E3E002D299C /* libPods-PencilKitExample.a */; };
17+
2D8473592BE51E96002D299C /* PencilKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 2D8473552BE51D03002D299C /* PencilKit.framework */; };
1518
7699B88040F8A987B510C191 /* libPods-PencilKitExample-PencilKitExampleTests.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 19F6CBCC0A4E27FBF8BF4A61 /* libPods-PencilKitExample-PencilKitExampleTests.a */; };
1619
81AB9BB82411601600AC10FF /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 81AB9BB72411601600AC10FF /* LaunchScreen.storyboard */; };
1720
/* End PBXBuildFile section */
@@ -38,6 +41,10 @@
3841
13B07FB71A68108700A75B9A /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = main.m; path = PencilKitExample/main.m; sourceTree = "<group>"; };
3942
13B07FB81A68108700A75B9A /* PrivacyInfo.xcprivacy */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = PrivacyInfo.xcprivacy; path = PencilKitExample/PrivacyInfo.xcprivacy; sourceTree = "<group>"; };
4043
19F6CBCC0A4E27FBF8BF4A61 /* libPods-PencilKitExample-PencilKitExampleTests.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-PencilKitExample-PencilKitExampleTests.a"; sourceTree = BUILT_PRODUCTS_DIR; };
44+
2D8473512BE51B21002D299C /* PencilKitExample-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "PencilKitExample-Bridging-Header.h"; sourceTree = "<group>"; };
45+
2D8473522BE51B21002D299C /* noop.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = noop.swift; sourceTree = "<group>"; };
46+
2D8473552BE51D03002D299C /* PencilKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = PencilKit.framework; path = System/Library/Frameworks/PencilKit.framework; sourceTree = SDKROOT; };
47+
2D8473572BE51E3E002D299C /* libPods-PencilKitExample.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; path = "libPods-PencilKitExample.a"; sourceTree = BUILT_PRODUCTS_DIR; };
4148
3B4392A12AC88292D35C810B /* Pods-PencilKitExample.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-PencilKitExample.debug.xcconfig"; path = "Target Support Files/Pods-PencilKitExample/Pods-PencilKitExample.debug.xcconfig"; sourceTree = "<group>"; };
4249
5709B34CF0A7D63546082F79 /* Pods-PencilKitExample.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-PencilKitExample.release.xcconfig"; path = "Target Support Files/Pods-PencilKitExample/Pods-PencilKitExample.release.xcconfig"; sourceTree = "<group>"; };
4350
5B7EB9410499542E8C5724F5 /* Pods-PencilKitExample-PencilKitExampleTests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-PencilKitExample-PencilKitExampleTests.debug.xcconfig"; path = "Target Support Files/Pods-PencilKitExample-PencilKitExampleTests/Pods-PencilKitExample-PencilKitExampleTests.debug.xcconfig"; sourceTree = "<group>"; };
@@ -60,7 +67,9 @@
6067
isa = PBXFrameworksBuildPhase;
6168
buildActionMask = 2147483647;
6269
files = (
70+
2D8473582BE51E3E002D299C /* libPods-PencilKitExample.a in Frameworks */,
6371
0C80B921A6F3F58F76C31292 /* libPods-PencilKitExample.a in Frameworks */,
72+
2D8473592BE51E96002D299C /* PencilKit.framework in Frameworks */,
6473
);
6574
runOnlyForDeploymentPostprocessing = 0;
6675
};
@@ -94,13 +103,17 @@
94103
81AB9BB72411601600AC10FF /* LaunchScreen.storyboard */,
95104
13B07FB71A68108700A75B9A /* main.m */,
96105
13B07FB81A68108700A75B9A /* PrivacyInfo.xcprivacy */,
106+
2D8473522BE51B21002D299C /* noop.swift */,
107+
2D8473512BE51B21002D299C /* PencilKitExample-Bridging-Header.h */,
97108
);
98109
name = PencilKitExample;
99110
sourceTree = "<group>";
100111
};
101112
2D16E6871FA4F8E400B85C8A /* Frameworks */ = {
102113
isa = PBXGroup;
103114
children = (
115+
2D8473572BE51E3E002D299C /* libPods-PencilKitExample.a */,
116+
2D8473552BE51D03002D299C /* PencilKit.framework */,
104117
ED297162215061F000B7C4FE /* JavaScriptCore.framework */,
105118
5DCACB8F33CDC322A6C60F78 /* libPods-PencilKitExample.a */,
106119
19F6CBCC0A4E27FBF8BF4A61 /* libPods-PencilKitExample-PencilKitExampleTests.a */,
@@ -208,7 +221,7 @@
208221
TestTargetID = 13B07F861A680F5B00A75B9A;
209222
};
210223
13B07F861A680F5B00A75B9A = {
211-
LastSwiftMigration = 1120;
224+
LastSwiftMigration = 1530;
212225
};
213226
};
214227
};
@@ -395,6 +408,7 @@
395408
buildActionMask = 2147483647;
396409
files = (
397410
13B07FBC1A68108700A75B9A /* AppDelegate.mm in Sources */,
411+
2D8473532BE51B21002D299C /* noop.swift in Sources */,
398412
13B07FC11A68108700A75B9A /* main.m in Sources */,
399413
);
400414
runOnlyForDeploymentPostprocessing = 0;
@@ -414,6 +428,7 @@
414428
isa = XCBuildConfiguration;
415429
baseConfigurationReference = 5B7EB9410499542E8C5724F5 /* Pods-PencilKitExample-PencilKitExampleTests.debug.xcconfig */;
416430
buildSettings = {
431+
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
417432
BUNDLE_LOADER = "$(TEST_HOST)";
418433
GCC_PREPROCESSOR_DEFINITIONS = (
419434
"DEBUG=1",
@@ -441,6 +456,7 @@
441456
isa = XCBuildConfiguration;
442457
baseConfigurationReference = 89C6BE57DB24E9ADA2F236DE /* Pods-PencilKitExample-PencilKitExampleTests.release.xcconfig */;
443458
buildSettings = {
459+
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
444460
BUNDLE_LOADER = "$(TEST_HOST)";
445461
COPY_PHASE_STRIP = NO;
446462
INFOPLIST_FILE = PencilKitExampleTests/Info.plist;
@@ -470,6 +486,8 @@
470486
CURRENT_PROJECT_VERSION = 1;
471487
ENABLE_BITCODE = NO;
472488
INFOPLIST_FILE = PencilKitExample/Info.plist;
489+
INFOPLIST_KEY_LSApplicationCategoryType = "public.app-category.developer-tools";
490+
IPHONEOS_DEPLOYMENT_TARGET = 14.0;
473491
LD_RUNPATH_SEARCH_PATHS = (
474492
"$(inherited)",
475493
"@executable_path/Frameworks",
@@ -482,6 +500,7 @@
482500
);
483501
PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)";
484502
PRODUCT_NAME = PencilKitExample;
503+
SWIFT_OBJC_BRIDGING_HEADER = "PencilKitExample-Bridging-Header.h";
485504
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
486505
SWIFT_VERSION = 5.0;
487506
VERSIONING_SYSTEM = "apple-generic";
@@ -496,6 +515,8 @@
496515
CLANG_ENABLE_MODULES = YES;
497516
CURRENT_PROJECT_VERSION = 1;
498517
INFOPLIST_FILE = PencilKitExample/Info.plist;
518+
INFOPLIST_KEY_LSApplicationCategoryType = "public.app-category.developer-tools";
519+
IPHONEOS_DEPLOYMENT_TARGET = 14.0;
499520
LD_RUNPATH_SEARCH_PATHS = (
500521
"$(inherited)",
501522
"@executable_path/Frameworks",
@@ -508,6 +529,7 @@
508529
);
509530
PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)";
510531
PRODUCT_NAME = PencilKitExample;
532+
SWIFT_OBJC_BRIDGING_HEADER = "PencilKitExample-Bridging-Header.h";
511533
SWIFT_VERSION = 5.0;
512534
VERSIONING_SYSTEM = "apple-generic";
513535
};

example/ios/Podfile.lock

Lines changed: 50 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,27 @@
11
PODS:
22
- boost (1.83.0)
33
- DoubleConversion (1.1.6)
4+
- dr-pogodin-react-native-fs (2.24.6):
5+
- DoubleConversion
6+
- glog
7+
- hermes-engine
8+
- RCT-Folly (= 2024.01.01.00)
9+
- RCTRequired
10+
- RCTTypeSafety
11+
- React-Codegen
12+
- React-Core
13+
- React-debug
14+
- React-Fabric
15+
- React-featureflags
16+
- React-graphics
17+
- React-ImageManager
18+
- React-NativeModulesApple
19+
- React-RCTFabric
20+
- React-rendererdebug
21+
- React-utils
22+
- ReactCommon/turbomodule/bridging
23+
- ReactCommon/turbomodule/core
24+
- Yoga
425
- FBLazyVector (0.74.0)
526
- fmt (9.1.0)
627
- glog (0.3.5)
@@ -935,27 +956,6 @@ PODS:
935956
- React-Mapbuffer (0.74.0):
936957
- glog
937958
- React-debug
938-
- react-native-pencil-kit (0.1.0-alpha.2):
939-
- DoubleConversion
940-
- glog
941-
- hermes-engine
942-
- RCT-Folly (= 2024.01.01.00)
943-
- RCTRequired
944-
- RCTTypeSafety
945-
- React-Codegen
946-
- React-Core
947-
- React-debug
948-
- React-Fabric
949-
- React-featureflags
950-
- React-graphics
951-
- React-ImageManager
952-
- React-NativeModulesApple
953-
- React-RCTFabric
954-
- React-rendererdebug
955-
- React-utils
956-
- ReactCommon/turbomodule/bridging
957-
- ReactCommon/turbomodule/core
958-
- Yoga
959959
- React-nativeconfig (0.74.0)
960960
- React-NativeModulesApple (0.74.0):
961961
- glog
@@ -1184,12 +1184,34 @@ PODS:
11841184
- React-logger (= 0.74.0)
11851185
- React-perflogger (= 0.74.0)
11861186
- React-utils (= 0.74.0)
1187+
- RNPencilKit (0.1.0-alpha.2):
1188+
- DoubleConversion
1189+
- glog
1190+
- hermes-engine
1191+
- RCT-Folly (= 2024.01.01.00)
1192+
- RCTRequired
1193+
- RCTTypeSafety
1194+
- React-Codegen
1195+
- React-Core
1196+
- React-debug
1197+
- React-Fabric
1198+
- React-featureflags
1199+
- React-graphics
1200+
- React-ImageManager
1201+
- React-NativeModulesApple
1202+
- React-RCTFabric
1203+
- React-rendererdebug
1204+
- React-utils
1205+
- ReactCommon/turbomodule/bridging
1206+
- ReactCommon/turbomodule/core
1207+
- Yoga
11871208
- SocketRocket (0.7.0)
11881209
- Yoga (0.0.0)
11891210

11901211
DEPENDENCIES:
11911212
- boost (from `../node_modules/react-native/third-party-podspecs/boost.podspec`)
11921213
- DoubleConversion (from `../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec`)
1214+
- "dr-pogodin-react-native-fs (from `../node_modules/@dr.pogodin/react-native-fs`)"
11931215
- FBLazyVector (from `../node_modules/react-native/Libraries/FBLazyVector`)
11941216
- fmt (from `../node_modules/react-native/third-party-podspecs/fmt.podspec`)
11951217
- glog (from `../node_modules/react-native/third-party-podspecs/glog.podspec`)
@@ -1220,7 +1242,6 @@ DEPENDENCIES:
12201242
- React-jsitracing (from `../node_modules/react-native/ReactCommon/hermes/executor/`)
12211243
- React-logger (from `../node_modules/react-native/ReactCommon/logger`)
12221244
- React-Mapbuffer (from `../node_modules/react-native/ReactCommon`)
1223-
- react-native-pencil-kit (from `../..`)
12241245
- React-nativeconfig (from `../node_modules/react-native/ReactCommon`)
12251246
- React-NativeModulesApple (from `../node_modules/react-native/ReactCommon/react/nativemodule/core/platform/ios`)
12261247
- React-perflogger (from `../node_modules/react-native/ReactCommon/reactperflogger`)
@@ -1244,6 +1265,7 @@ DEPENDENCIES:
12441265
- React-runtimescheduler (from `../node_modules/react-native/ReactCommon/react/renderer/runtimescheduler`)
12451266
- React-utils (from `../node_modules/react-native/ReactCommon/react/utils`)
12461267
- ReactCommon/turbomodule/core (from `../node_modules/react-native/ReactCommon`)
1268+
- RNPencilKit (from `../..`)
12471269
- Yoga (from `../node_modules/react-native/ReactCommon/yoga`)
12481270

12491271
SPEC REPOS:
@@ -1255,6 +1277,8 @@ EXTERNAL SOURCES:
12551277
:podspec: "../node_modules/react-native/third-party-podspecs/boost.podspec"
12561278
DoubleConversion:
12571279
:podspec: "../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec"
1280+
dr-pogodin-react-native-fs:
1281+
:path: "../node_modules/@dr.pogodin/react-native-fs"
12581282
FBLazyVector:
12591283
:path: "../node_modules/react-native/Libraries/FBLazyVector"
12601284
fmt:
@@ -1312,8 +1336,6 @@ EXTERNAL SOURCES:
13121336
:path: "../node_modules/react-native/ReactCommon/logger"
13131337
React-Mapbuffer:
13141338
:path: "../node_modules/react-native/ReactCommon"
1315-
react-native-pencil-kit:
1316-
:path: "../.."
13171339
React-nativeconfig:
13181340
:path: "../node_modules/react-native/ReactCommon"
13191341
React-NativeModulesApple:
@@ -1360,12 +1382,15 @@ EXTERNAL SOURCES:
13601382
:path: "../node_modules/react-native/ReactCommon/react/utils"
13611383
ReactCommon:
13621384
:path: "../node_modules/react-native/ReactCommon"
1385+
RNPencilKit:
1386+
:path: "../.."
13631387
Yoga:
13641388
:path: "../node_modules/react-native/ReactCommon/yoga"
13651389

13661390
SPEC CHECKSUMS:
13671391
boost: d3f49c53809116a5d38da093a8aa78bf551aed09
13681392
DoubleConversion: 76ab83afb40bddeeee456813d9c04f67f78771b5
1393+
dr-pogodin-react-native-fs: 7e0b92aa0ea441ed86247cec1686e6682378afe0
13691394
FBLazyVector: 026c8f4ae67b06e088ae01baa2271ef8a26c0e8c
13701395
fmt: 4c2741a687cc09f0634a2e2c72a838b99f1ff120
13711396
glog: c5d68082e772fa1c511173d6b30a9de2c05a69a2
@@ -1394,7 +1419,6 @@ SPEC CHECKSUMS:
13941419
React-jsitracing: 36a2bbc272300313653d980de5ab700ec86c534a
13951420
React-logger: 03f2f7b955cfe24593a2b8c9705c23e142d1ad24
13961421
React-Mapbuffer: 5e05d78fe6505f4a054b86f415733d4ad02dd314
1397-
react-native-pencil-kit: 5c143168cadf085370cc469a732d357da8aa74a1
13981422
React-nativeconfig: 951ec32f632e81cbd7d40aebb3211313251c092e
13991423
React-NativeModulesApple: 0b3a42ca90069119ef79d8b2327d01441d71abd4
14001424
React-perflogger: 271f1111779fef70f9502d1d38da5132e5585230
@@ -1418,6 +1442,7 @@ SPEC CHECKSUMS:
14181442
React-runtimescheduler: 7fe561d179b97cecd0c2bec0bbd08f9fd8581c26
14191443
React-utils: f013537c3371270d2095bff1d594d00d4bc9261b
14201444
ReactCommon: 2cde697fd80bd31da1d6448d25a5803088585219
1445+
RNPencilKit: f290fbdcadd41189b33df9d6ba300b2fe7d272c8
14211446
SocketRocket: abac6f5de4d4d62d24e11868d7a2f427e0ef940d
14221447
Yoga: 56f906bf6c11c931588191dde1229fd3e4e3d557
14231448

example/ios/noop.swift

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
//
2+
// noop.swift
3+
// PencilKitExample
4+
//
5+
// Created by mj on 5/3/24.
6+
//
7+
8+
import Foundation

example/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
"build:ios": "cd ios && xcodebuild -workspace PencilKitExample.xcworkspace -scheme PencilKitExample -configuration Debug -sdk iphonesimulator CC=clang CPLUSPLUS=clang++ LD=clang LDPLUSPLUS=clang++ GCC_OPTIMIZATION_LEVEL=0 GCC_PRECOMPILE_PREFIX_HEADER=YES ASSETCATALOG_COMPILER_OPTIMIZATION=time DEBUG_INFORMATION_FORMAT=dwarf COMPILER_INDEX_STORE_ENABLE=NO"
1111
},
1212
"dependencies": {
13+
"@dr.pogodin/react-native-fs": "^2.24.6",
1314
"react": "18.2.0",
1415
"react-native": "0.74.0"
1516
},

example/src/App.tsx

Lines changed: 57 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,64 @@
1-
import { StyleSheet, View } from 'react-native';
2-
import PencilKitView from 'react-native-pencil-kit';
1+
import { useRef } from 'react';
2+
import { Text, TouchableOpacity, View } from 'react-native';
3+
import PencilKitView, { type PencilKitRef } from 'react-native-pencil-kit';
4+
import { DocumentDirectoryPath } from '@dr.pogodin/react-native-fs';
35

46
export default function App() {
7+
const ref = useRef<PencilKitRef>(null);
8+
9+
const path = `${DocumentDirectoryPath}/drawing.dat`;
10+
511
return (
6-
<View style={styles.container}>
7-
<PencilKitView style={styles.box} />
12+
<View style={{ width: '100%', height: '100%' }}>
13+
<PencilKitView
14+
ref={ref}
15+
style={{ flex: 1 }}
16+
alwaysBounceVertical={false}
17+
alwaysBounceHorizontal={false}
18+
drawingPolicy={'anyinput'}
19+
backgroundColor={'blue'}
20+
/>
21+
<View
22+
style={{
23+
height: 300,
24+
flexDirection: 'row',
25+
alignItems: 'center',
26+
flexWrap: 'wrap',
27+
gap: 4,
28+
padding: 8,
29+
}}
30+
>
31+
<Btn onPress={() => ref.current?.showToolPicker()} text={'show'} />
32+
<Btn onPress={() => ref.current?.hideToolPicker()} text={'hide'} />
33+
<Btn onPress={() => ref.current?.clear()} text={'clear'} />
34+
<Btn onPress={() => ref.current?.undo()} text={'undo'} />
35+
<Btn onPress={() => ref.current?.redo()} text={'redo'} />
36+
<Btn onPress={() => ref.current?.saveDrawing(path)} text={'save'} />
37+
<Btn onPress={() => ref.current?.loadDrawing(path)} text={'load'} />
38+
<Btn onPress={() => ref.current?.getBase64Data()} text={'get base64'} />
39+
<Btn onPress={() => ref.current?.loadBase64Data('')} text={'load base64'} />
40+
<Btn
41+
onPress={() =>
42+
ref.current?.setTool({
43+
toolType: 'pen',
44+
width: 2,
45+
color: 'red',
46+
})
47+
}
48+
text={'pen'}
49+
/>
50+
</View>
851
</View>
952
);
1053
}
1154

12-
const styles = StyleSheet.create({
13-
container: {
14-
flex: 1,
15-
alignItems: 'center',
16-
justifyContent: 'center',
17-
},
18-
box: {
19-
width: 60,
20-
height: 60,
21-
marginVertical: 20,
22-
},
23-
});
55+
const Btn = ({ onPress, text }: { onPress: () => void; text: string }) => {
56+
return (
57+
<TouchableOpacity
58+
onPress={onPress}
59+
style={{ padding: 8, backgroundColor: 'black', borderRadius: 4 }}
60+
>
61+
<Text style={{ color: 'white', fontWeight: 'bold' }}>{text.toUpperCase()}</Text>
62+
</TouchableOpacity>
63+
);
64+
};

ios/RNPencilKit.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
// This guard prevent this file to be compiled in the old architecture.
22
#ifdef RCT_NEW_ARCH_ENABLED
3+
#import "RNPencilKitUtilFunction.h"
4+
#import <PencilKit/PencilKit.h>
5+
#import <React/RCTEventEmitter.h>
36
#import <React/RCTViewComponentView.h>
47
#import <UIKit/UIKit.h>
58

0 commit comments

Comments
 (0)