Skip to content

Commit 38ffe0c

Browse files
authored
Merge pull request #11 from padlet/colin/fix-issue-with-iOS-17.4
[ENG-12857] Fix issue with iOS 17.4
2 parents 7f3e053 + 30214d9 commit 38ffe0c

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

ios/RNPencilKit.m

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,7 @@ - (void)layoutSubviews {
7676

7777
- (void)setToolPicker API_AVAILABLE(ios(13)) {
7878
RCTLogInfo(@"[RNPencilKit] creating tool bar!");
79-
UIWindow *window = [[[UIApplication sharedApplication] delegate] window];
80-
self.picker = [PKToolPicker sharedToolPickerForWindow:window];
79+
self.picker = [[PKToolPicker alloc] init];
8180
[self.picker addObserver:self.canvas];
8281
[self.picker setVisible:true forFirstResponder:self.canvas];
8382
[self.canvas becomeFirstResponder];

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "react-native-draw-canvas",
33
"title": "React Native Draw Canvas",
4-
"version": "1.1.4",
4+
"version": "1.2.0",
55
"description": "Cross platform native draw canvas for both iOS and Android",
66
"main": "index.js",
77
"scripts": {

0 commit comments

Comments
 (0)