expo-router 6.0.7 → 6.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -19,7 +19,7 @@ class LinkPreviewNativeActionView: ExpoView, LinkPreviewMenuUpdatable {
|
|
|
19
19
|
}
|
|
20
20
|
}
|
|
21
21
|
}
|
|
22
|
-
var destructive: Bool
|
|
22
|
+
var destructive: Bool? {
|
|
23
23
|
didSet {
|
|
24
24
|
updateUiAction()
|
|
25
25
|
if isMenuAction {
|
|
@@ -29,17 +29,17 @@ class LinkPreviewNativeActionView: ExpoView, LinkPreviewMenuUpdatable {
|
|
|
29
29
|
}
|
|
30
30
|
|
|
31
31
|
// MARK: - Action only props
|
|
32
|
-
var disabled: Bool
|
|
32
|
+
var disabled: Bool? {
|
|
33
33
|
didSet {
|
|
34
34
|
updateUiAction()
|
|
35
35
|
}
|
|
36
36
|
}
|
|
37
|
-
var isOn: Bool
|
|
37
|
+
var isOn: Bool? {
|
|
38
38
|
didSet {
|
|
39
39
|
updateUiAction()
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
|
-
var keepPresented: Bool
|
|
42
|
+
var keepPresented: Bool? {
|
|
43
43
|
didSet {
|
|
44
44
|
updateUiAction()
|
|
45
45
|
}
|
|
@@ -114,7 +114,7 @@ class LinkPreviewNativeActionView: ExpoView, LinkPreviewMenuUpdatable {
|
|
|
114
114
|
if displayInline {
|
|
115
115
|
options.insert(.displayInline)
|
|
116
116
|
}
|
|
117
|
-
if destructive {
|
|
117
|
+
if destructive == true {
|
|
118
118
|
options.insert(.destructive)
|
|
119
119
|
}
|
|
120
120
|
|
|
@@ -130,17 +130,17 @@ class LinkPreviewNativeActionView: ExpoView, LinkPreviewMenuUpdatable {
|
|
|
130
130
|
|
|
131
131
|
private func updateUiAction() {
|
|
132
132
|
var attributes: UIMenuElement.Attributes = []
|
|
133
|
-
if destructive { attributes.insert(.destructive) }
|
|
134
|
-
if disabled { attributes.insert(.disabled) }
|
|
133
|
+
if destructive == true { attributes.insert(.destructive) }
|
|
134
|
+
if disabled == true { attributes.insert(.disabled) }
|
|
135
135
|
|
|
136
136
|
if #available(iOS 16.0, *) {
|
|
137
|
-
if keepPresented { attributes.insert(.keepsMenuPresented) }
|
|
137
|
+
if keepPresented == true { attributes.insert(.keepsMenuPresented) }
|
|
138
138
|
}
|
|
139
139
|
|
|
140
140
|
baseUiAction.title = title
|
|
141
141
|
baseUiAction.image = icon.flatMap { UIImage(systemName: $0) }
|
|
142
142
|
baseUiAction.attributes = attributes
|
|
143
|
-
baseUiAction.state = isOn ? .on : .off
|
|
143
|
+
baseUiAction.state = isOn == true ? .on : .off
|
|
144
144
|
|
|
145
145
|
parentMenuUpdatable?.updateMenu()
|
|
146
146
|
}
|
|
@@ -48,13 +48,13 @@ public class LinkPreviewNativeModule: Module {
|
|
|
48
48
|
Prop("title") { (view: LinkPreviewNativeActionView, title: String) in
|
|
49
49
|
view.title = title
|
|
50
50
|
}
|
|
51
|
-
Prop("icon") { (view: LinkPreviewNativeActionView, icon: String) in
|
|
51
|
+
Prop("icon") { (view: LinkPreviewNativeActionView, icon: String?) in
|
|
52
52
|
view.icon = icon
|
|
53
53
|
}
|
|
54
|
-
Prop("disabled") { (view: LinkPreviewNativeActionView, disabled: Bool) in
|
|
54
|
+
Prop("disabled") { (view: LinkPreviewNativeActionView, disabled: Bool?) in
|
|
55
55
|
view.disabled = disabled
|
|
56
56
|
}
|
|
57
|
-
Prop("destructive") { (view: LinkPreviewNativeActionView, destructive: Bool) in
|
|
57
|
+
Prop("destructive") { (view: LinkPreviewNativeActionView, destructive: Bool?) in
|
|
58
58
|
view.destructive = destructive
|
|
59
59
|
}
|
|
60
60
|
Prop("singleSelection") { (view: LinkPreviewNativeActionView, singleSelection: Bool) in
|
|
@@ -63,10 +63,10 @@ public class LinkPreviewNativeModule: Module {
|
|
|
63
63
|
Prop("displayAsPalette") { (view: LinkPreviewNativeActionView, displayAsPalette: Bool) in
|
|
64
64
|
view.displayAsPalette = displayAsPalette
|
|
65
65
|
}
|
|
66
|
-
Prop("isOn") { (view: LinkPreviewNativeActionView, isOn: Bool) in
|
|
66
|
+
Prop("isOn") { (view: LinkPreviewNativeActionView, isOn: Bool?) in
|
|
67
67
|
view.isOn = isOn
|
|
68
68
|
}
|
|
69
|
-
Prop("keepPresented") { (view: LinkPreviewNativeActionView, keepPresented: Bool) in
|
|
69
|
+
Prop("keepPresented") { (view: LinkPreviewNativeActionView, keepPresented: Bool?) in
|
|
70
70
|
view.keepPresented = keepPresented
|
|
71
71
|
}
|
|
72
72
|
Prop("displayInline") { (view: LinkPreviewNativeActionView, displayInline: Bool) in
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "expo-router",
|
|
3
|
-
"version": "6.0.
|
|
3
|
+
"version": "6.0.8",
|
|
4
4
|
"description": "Expo Router is a file-based router for React Native and web applications.",
|
|
5
5
|
"author": "650 Industries, Inc.",
|
|
6
6
|
"license": "MIT",
|
|
@@ -130,7 +130,7 @@
|
|
|
130
130
|
"dependencies": {
|
|
131
131
|
"@expo/metro-runtime": "^6.1.2",
|
|
132
132
|
"@expo/schema-utils": "^0.1.7",
|
|
133
|
-
"@expo/server": "^0.7.
|
|
133
|
+
"@expo/server": "^0.7.5",
|
|
134
134
|
"@radix-ui/react-slot": "1.2.0",
|
|
135
135
|
"@radix-ui/react-tabs": "^1.1.12",
|
|
136
136
|
"@react-navigation/bottom-tabs": "^7.4.0",
|
|
@@ -152,5 +152,5 @@
|
|
|
152
152
|
"use-latest-callback": "^0.2.1",
|
|
153
153
|
"vaul": "^1.1.2"
|
|
154
154
|
},
|
|
155
|
-
"gitHead": "
|
|
155
|
+
"gitHead": "6523053d0d997d2a21f580d2752b2f873c122038"
|
|
156
156
|
}
|