expo-router 6.0.8-canary-20250919-7a31b96 → 6.0.9

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 = false {
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 = false {
32
+ var disabled: Bool? {
33
33
  didSet {
34
34
  updateUiAction()
35
35
  }
36
36
  }
37
- var isOn: Bool = false {
37
+ var isOn: Bool? {
38
38
  didSet {
39
39
  updateUiAction()
40
40
  }
41
41
  }
42
- var keepPresented: Bool = false {
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.8-canary-20250919-7a31b96",
3
+ "version": "6.0.9",
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",
@@ -77,12 +77,12 @@
77
77
  "expo"
78
78
  ],
79
79
  "peerDependencies": {
80
- "@expo/metro-runtime": "6.1.3-canary-20250919-7a31b96",
80
+ "@expo/metro-runtime": "^6.1.2",
81
81
  "@react-navigation/drawer": "^7.5.0",
82
82
  "@testing-library/react-native": ">= 12.0.0",
83
- "expo": "55.0.0-canary-20250919-7a31b96",
84
- "expo-constants": "18.0.10-canary-20250919-7a31b96",
85
- "expo-linking": "8.0.9-canary-20250919-7a31b96",
83
+ "expo": "*",
84
+ "expo-constants": "^18.0.9",
85
+ "expo-linking": "^8.0.8",
86
86
  "react": "*",
87
87
  "react-dom": "*",
88
88
  "react-native": "*",
@@ -128,9 +128,9 @@
128
128
  "tsd": "^0.28.1"
129
129
  },
130
130
  "dependencies": {
131
- "@expo/metro-runtime": "6.1.3-canary-20250919-7a31b96",
132
- "@expo/schema-utils": "0.1.8-canary-20250919-7a31b96",
133
- "@expo/server": "0.7.5-canary-20250919-7a31b96",
131
+ "@expo/metro-runtime": "^6.1.2",
132
+ "@expo/schema-utils": "^0.1.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",
@@ -151,5 +151,6 @@
151
151
  "shallowequal": "^1.1.0",
152
152
  "use-latest-callback": "^0.2.1",
153
153
  "vaul": "^1.1.2"
154
- }
154
+ },
155
+ "gitHead": "1ab3b9621b78b77b81049ebf06149753a1e0898c"
155
156
  }
@@ -0,0 +1 @@
1
+ {"root":["./src/index.ts"],"version":"5.8.3"}
package/server.d.ts CHANGED
@@ -1,9 +1,20 @@
1
- import { type ExpoRequest, type ExpoResponse } from '@expo/server';
2
- export { type MiddlewareFunction } from '@expo/server';
1
+ export type { MiddlewareFunction } from '@expo/server';
2
+
3
+ /**
4
+ * @deprecated Use Fetch API `Request` instead.
5
+ *
6
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request)
7
+ */
8
+ export type ExpoRequest = Request;
9
+
10
+ /**
11
+ * @deprecated Use Fetch API `Response` instead.
12
+ *
13
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response)
14
+ */
15
+ export type ExpoResponse = Response;
3
16
 
4
17
  export type RequestHandler = (
5
18
  request: Request,
6
19
  params: Record<string, string>
7
20
  ) => Response | Promise<Response>;
8
-
9
- export { ExpoRequest, ExpoResponse };
package/server.js CHANGED
@@ -1,3 +1 @@
1
- // These should be installed on the global by the server runtime to ensure faster bundling and smaller bundles.
2
- module.exports.ExpoRequest = global.ExpoRequest;
3
- module.exports.ExpoResponse = global.ExpoResponse;
1
+ // Use `@expo/server` directly instead