expo-dev-menu 57.0.20 → 57.0.22
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.
- package/CHANGELOG.md +10 -0
- package/android/build.gradle +2 -2
- package/ios/FAB/DevMenuFABWindow.swift +17 -0
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -10,6 +10,16 @@
|
|
|
10
10
|
|
|
11
11
|
### 💡 Others
|
|
12
12
|
|
|
13
|
+
## 57.0.22 — 2026-11-23
|
|
14
|
+
|
|
15
|
+
_This version does not introduce any user-facing changes._
|
|
16
|
+
|
|
17
|
+
## 57.0.21 — 2026-11-05
|
|
18
|
+
|
|
19
|
+
### 🐛 Bug fixes
|
|
20
|
+
|
|
21
|
+
- [iOS] Fix the floating tools button leaving the app stuck in landscape after returning to a portrait-only screen. ([#50344](https://github.com/expo/expo/pull/50344) by [@evrimfeyyaz](https://github.com/evrimfeyyaz))
|
|
22
|
+
|
|
13
23
|
## 57.0.20 — 2026-10-12
|
|
14
24
|
|
|
15
25
|
_This version does not introduce any user-facing changes._
|
package/android/build.gradle
CHANGED
|
@@ -12,7 +12,7 @@ apply plugin: 'expo-module-gradle-plugin'
|
|
|
12
12
|
apply plugin: 'org.jetbrains.kotlin.plugin.compose'
|
|
13
13
|
|
|
14
14
|
group = 'host.exp.exponent'
|
|
15
|
-
version = '57.0.
|
|
15
|
+
version = '57.0.22'
|
|
16
16
|
|
|
17
17
|
def hasDevLauncher = findProject(":expo-dev-launcher") != null
|
|
18
18
|
def configureInRelease = findProperty("expo.devmenu.configureInRelease") == "true"
|
|
@@ -29,7 +29,7 @@ android {
|
|
|
29
29
|
|
|
30
30
|
defaultConfig {
|
|
31
31
|
versionCode 10
|
|
32
|
-
versionName '57.0.
|
|
32
|
+
versionName '57.0.22'
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
buildTypes {
|
|
@@ -12,11 +12,13 @@ class DevMenuFABWindow: UIWindow {
|
|
|
12
12
|
var fabFrame: CGRect = .zero
|
|
13
13
|
private var currentAnimator: UIViewPropertyAnimator?
|
|
14
14
|
private var targetVisibility: Bool?
|
|
15
|
+
private var appWindowFrameObservation: NSKeyValueObservation?
|
|
15
16
|
|
|
16
17
|
init(manager: DevMenuManager, windowScene: UIWindowScene) {
|
|
17
18
|
self.manager = manager
|
|
18
19
|
super.init(windowScene: windowScene)
|
|
19
20
|
setupWindow()
|
|
21
|
+
observeAppWindowRotation(in: windowScene)
|
|
20
22
|
}
|
|
21
23
|
|
|
22
24
|
@available(*, unavailable)
|
|
@@ -45,6 +47,21 @@ class DevMenuFABWindow: UIWindow {
|
|
|
45
47
|
rootViewController = hostingController
|
|
46
48
|
}
|
|
47
49
|
|
|
50
|
+
// react-native-screens rotates only the app window, and UIKit does not ask this overlay for its orientations again.
|
|
51
|
+
// The scene would then report the overlay's old orientation, and react-native-screens would skip the next rotation.
|
|
52
|
+
private func observeAppWindowRotation(in windowScene: UIWindowScene) {
|
|
53
|
+
guard let appWindow = windowScene.windows.first(where: { $0.windowLevel == .normal }) else {
|
|
54
|
+
return
|
|
55
|
+
}
|
|
56
|
+
appWindowFrameObservation = appWindow.observe(\.frame, options: [.old, .new]) { [weak self] _, change in
|
|
57
|
+
guard let old = change.oldValue, let new = change.newValue,
|
|
58
|
+
(old.width > old.height) != (new.width > new.height) else {
|
|
59
|
+
return
|
|
60
|
+
}
|
|
61
|
+
self?.hostingController?.setNeedsUpdateOfSupportedInterfaceOrientations()
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
|
|
48
65
|
private var edgeTranslation: CGAffineTransform {
|
|
49
66
|
let screenWidth = windowScene?.screen.bounds.width ?? UIScreen.main.bounds.width
|
|
50
67
|
let isOnRight = fabFrame == .zero || fabFrame.midX > (screenWidth / 2)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "expo-dev-menu",
|
|
3
|
-
"version": "57.0.
|
|
3
|
+
"version": "57.0.22",
|
|
4
4
|
"description": "Expo/React Native module with the developer menu.",
|
|
5
5
|
"main": "build/DevMenu.js",
|
|
6
6
|
"types": "build/DevMenu.d.ts",
|
|
@@ -32,15 +32,15 @@
|
|
|
32
32
|
"@types/node": "^22.14.0",
|
|
33
33
|
"react": "19.2.3",
|
|
34
34
|
"react-native": "0.86.3",
|
|
35
|
-
"expo": "57.0.
|
|
36
|
-
"
|
|
37
|
-
"
|
|
35
|
+
"expo": "57.0.34",
|
|
36
|
+
"expo-module-scripts": "56.0.3",
|
|
37
|
+
"babel-preset-expo": "57.0.17"
|
|
38
38
|
},
|
|
39
39
|
"peerDependencies": {
|
|
40
40
|
"expo": "*",
|
|
41
41
|
"react-native": "*"
|
|
42
42
|
},
|
|
43
|
-
"gitHead": "
|
|
43
|
+
"gitHead": "14616b4ffe6167019952be745310f563d15bf68a",
|
|
44
44
|
"scripts": {
|
|
45
45
|
"build": "expo-module build",
|
|
46
46
|
"clean": "expo-module clean",
|