File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 ];
Original file line number Diff line number Diff line change 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" : {
You can’t perform that action at this time.
0 commit comments