@@ -65,7 +65,8 @@ - (CGRect)sourceRectInView:(UIView *)sourceView
65
65
NSArray <NSString *> *buttons = [RCTConvert NSStringArray: options[@" options" ]];
66
66
NSInteger destructiveButtonIndex = options[@" destructiveButtonIndex" ] ? [RCTConvert NSInteger: options[@" destructiveButtonIndex" ]] : -1 ;
67
67
NSInteger cancelButtonIndex = options[@" cancelButtonIndex" ] ? [RCTConvert NSInteger: options[@" cancelButtonIndex" ]] : -1 ;
68
-
68
+ UIColor *tintColor = [RCTConvert UIColor: options[@" tintColor" ]];
69
+
69
70
UIViewController *controller = RCTKeyWindow ().rootViewController ;
70
71
if (controller == nil ) {
71
72
RCTLogError (@" Tried to display action sheet but there is no application window. options: %@ " , options);
@@ -139,6 +140,8 @@ - (CGRect)sourceRectInView:(UIView *)sourceView
139
140
alertController.popoverPresentationController .permittedArrowDirections = 0 ;
140
141
}
141
142
[controller presentViewController: alertController animated: YES completion: nil ];
143
+
144
+ alertController.view .tintColor = tintColor;
142
145
}
143
146
}
144
147
@@ -176,6 +179,8 @@ - (CGRect)sourceRectInView:(UIView *)sourceView
176
179
if (excludedActivityTypes) {
177
180
shareController.excludedActivityTypes = excludedActivityTypes;
178
181
}
182
+
183
+ UIColor *tintColor = [RCTConvert UIColor: options[@" tintColor" ]];
179
184
180
185
UIViewController *controller = RCTKeyWindow ().rootViewController ;
181
186
@@ -210,6 +215,8 @@ - (CGRect)sourceRectInView:(UIView *)sourceView
210
215
}
211
216
212
217
[controller presentViewController: shareController animated: YES completion: nil ];
218
+
219
+ shareController.view .tintColor = tintColor;
213
220
}
214
221
215
222
#pragma mark UIActionSheetDelegate Methods
0 commit comments