Skip to content

Commit 1e21d2b

Browse files
committed
🐞 Bugfix: Compile Error
Issue Link: #4
1 parent 88c290e commit 1e21d2b

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

ios/src_library/React Native/RCTContextMenu/RCTMenuActionItem.swift

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,8 @@ class RCTMenuActionItem: RCTMenuElement {
4242
self.actionKey = actionKey as String;
4343
self.actionTitle = actionTitle as String;
4444

45-
if let dict = dictionary["icon"] as? NSDictionary,
46-
let icon = RCTMenuIcon(dictionary: dict) {
47-
48-
self.icon = icon;
45+
if let dict = dictionary["icon"] as? NSDictionary {
46+
self.icon = RCTMenuIcon(dictionary: dict);
4947

5048
// temp support for icon config shorthand/shortcut
5149
} else if let stringType = dictionary["iconType" ] as? String,

ios/src_library/React Native/RCTContextMenu/RCTMenuImageType.swift

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,16 @@ import Foundation
1010

1111

1212
@available(iOS 13.0, *)
13-
public struct RCTMenuIcon {
13+
struct RCTMenuIcon {
1414
enum IconType: String, CaseIterable, Encodable {
1515
case NONE;
1616
case URL;
1717
case SYSTEM;
1818
case ASSET;
1919
};
2020

21-
var iconType : IconType = .NONE;
21+
var iconType: IconType = .NONE;
22+
2223
var iconValue: String?;
2324
var iconSize : CGFloat?;
2425
var iconTint : UIColor?;

0 commit comments

Comments
 (0)