Skip to content

Commit

Permalink
docs: update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
mym0404 committed May 3, 2024
1 parent ba5963f commit 8b4717c
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 5 deletions.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,13 @@
yarn add react-native-pencil-kit
```

Add `PencilKit.framework` if you meet OBJC Linking Error
Link `PencilKit.framework`

![xcode](https://raw.githubusercontent.com/mym0404/image-archive/master/202405040319998.webp)

> With Fabric, we should access c++ functions and we should use objective-c++.
> This prevents us from Apple SDK framework module import and shouldn't link PencilKit automatically at now.
## Usage

```tsx
Expand Down
10 changes: 8 additions & 2 deletions example/ios/PencilKitExample.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -610,7 +610,10 @@
"-DFOLLY_CFG_NO_COROUTINES=1",
"-DFOLLY_HAVE_CLOCK_GETTIME=1",
);
OTHER_LDFLAGS = "$(inherited) ";
OTHER_LDFLAGS = (
"$(inherited)",
" ",
);
REACT_NATIVE_PATH = "${PODS_ROOT}/../../node_modules/react-native";
SDKROOT = iphoneos;
USE_HERMES = true;
Expand Down Expand Up @@ -682,7 +685,10 @@
"-DFOLLY_CFG_NO_COROUTINES=1",
"-DFOLLY_HAVE_CLOCK_GETTIME=1",
);
OTHER_LDFLAGS = "$(inherited) ";
OTHER_LDFLAGS = (
"$(inherited)",
" ",
);
REACT_NATIVE_PATH = "${PODS_ROOT}/../../node_modules/react-native";
SDKROOT = iphoneos;
USE_HERMES = true;
Expand Down
4 changes: 2 additions & 2 deletions example/ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1184,7 +1184,7 @@ PODS:
- React-logger (= 0.74.0)
- React-perflogger (= 0.74.0)
- React-utils (= 0.74.0)
- RNPencilKit (0.1.0-alpha.3):
- RNPencilKit (1.1.0):
- DoubleConversion
- glog
- hermes-engine
Expand Down Expand Up @@ -1442,7 +1442,7 @@ SPEC CHECKSUMS:
React-runtimescheduler: 7fe561d179b97cecd0c2bec0bbd08f9fd8581c26
React-utils: f013537c3371270d2095bff1d594d00d4bc9261b
ReactCommon: 2cde697fd80bd31da1d6448d25a5803088585219
RNPencilKit: 817ef7e2050c5e7095428d0cd1acdf8c62b9e80a
RNPencilKit: de12dcfd40e9ddcfb9f4d5aefc8570c1a3434f39
SocketRocket: abac6f5de4d4d62d24e11868d7a2f427e0ef940d
Yoga: 56f906bf6c11c931588191dde1229fd3e4e3d557

Expand Down

0 comments on commit 8b4717c

Please sign in to comment.