expo-dev-menu 7.0.9 → 7.0.11
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 +11 -0
- package/android/build.gradle +2 -2
- package/android/src/debug/java/expo/modules/devmenu/DevMenuManager.kt +2 -3
- package/android/src/main/java/expo/modules/devmenu/compose/DevMenuViewModel.kt +4 -1
- package/android/src/main/java/expo/modules/devmenu/compose/ui/DevMenuBottomSheet.kt +1 -0
- package/android/src/main/java/expo/modules/devmenu/compose/ui/DevMenuScreen.kt +2 -1
- package/android/src/main/java/expo/modules/devmenu/compose/ui/ToolsSection.kt +7 -5
- package/ios/SwiftUI/DevMenuRootView.swift +1 -0
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -10,6 +10,17 @@
|
|
|
10
10
|
|
|
11
11
|
### 💡 Others
|
|
12
12
|
|
|
13
|
+
## 7.0.11 — 2025-09-11
|
|
14
|
+
|
|
15
|
+
### 🐛 Bug fixes
|
|
16
|
+
|
|
17
|
+
- [Android] Fix desynchronization issue between UI and state. ([#39553](https://github.com/expo/expo/pull/39553) by [@lukmccall](https://github.com/lukmccall))
|
|
18
|
+
- [iOS] Fix UI on iPad. ([#39549](https://github.com/expo/expo/pull/39549) by [@alanjhughes](https://github.com/alanjhughes))
|
|
19
|
+
|
|
20
|
+
## 7.0.10 — 2025-09-10
|
|
21
|
+
|
|
22
|
+
_This version does not introduce any user-facing changes._
|
|
23
|
+
|
|
13
24
|
## 7.0.9 — 2025-09-08
|
|
14
25
|
|
|
15
26
|
_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 = '7.0.
|
|
15
|
+
version = '7.0.11'
|
|
16
16
|
|
|
17
17
|
expoModule {
|
|
18
18
|
canBePublished false
|
|
@@ -22,7 +22,7 @@ android {
|
|
|
22
22
|
namespace "expo.modules.devmenu"
|
|
23
23
|
defaultConfig {
|
|
24
24
|
versionCode 10
|
|
25
|
-
versionName '7.0.
|
|
25
|
+
versionName '7.0.11'
|
|
26
26
|
}
|
|
27
27
|
buildFeatures {
|
|
28
28
|
compose true
|
|
@@ -366,9 +366,8 @@ object DevMenuManager : DevMenuManagerInterface, LifecycleEventListener {
|
|
|
366
366
|
}
|
|
367
367
|
|
|
368
368
|
fun toggleFab() {
|
|
369
|
-
preferences?.showFab
|
|
370
|
-
|
|
371
|
-
}
|
|
369
|
+
val current = preferences?.showFab ?: return
|
|
370
|
+
preferences?.showFab = !current
|
|
372
371
|
}
|
|
373
372
|
|
|
374
373
|
override fun setDelegate(newDelegate: DevMenuDelegateInterface) {
|
|
@@ -60,7 +60,10 @@ class DevMenuViewModel : ViewModel() {
|
|
|
60
60
|
DevMenuAction.OpenJSDebugger -> openJSInspector()
|
|
61
61
|
DevMenuAction.OpenReactNativeDevMenu -> getReactHost()?.devSupportManager?.showDevOptionsDialog()
|
|
62
62
|
DevMenuAction.ToggleElementInspector -> toggleInspector()
|
|
63
|
-
is DevMenuAction.ToggleFastRefresh ->
|
|
63
|
+
is DevMenuAction.ToggleFastRefresh -> {
|
|
64
|
+
toggleFastRefresh()
|
|
65
|
+
_state.value = _state.value.copy(devToolsSettings = DevMenuManager.getDevSettings())
|
|
66
|
+
}
|
|
64
67
|
is DevMenuAction.ToggleFab -> toggleFab()
|
|
65
68
|
DevMenuAction.FinishOnboarding -> {
|
|
66
69
|
DevMenuManager.getSettings()?.isOnboardingFinished = true
|
|
@@ -23,6 +23,7 @@ fun DevMenuScreen(
|
|
|
23
23
|
appInfo: DevMenuState.AppInfo,
|
|
24
24
|
devToolsSettings: DevToolsSettings,
|
|
25
25
|
shouldShowOnboarding: Boolean = false,
|
|
26
|
+
showFab: Boolean = false,
|
|
26
27
|
onAction: DevMenuActionHandler = {}
|
|
27
28
|
) {
|
|
28
29
|
if (shouldShowOnboarding) {
|
|
@@ -60,7 +61,7 @@ fun DevMenuScreen(
|
|
|
60
61
|
|
|
61
62
|
Spacer(NewAppTheme.spacing.`5`)
|
|
62
63
|
|
|
63
|
-
ToolsSection(onAction, devToolsSettings)
|
|
64
|
+
ToolsSection(onAction, devToolsSettings, showFab)
|
|
64
65
|
|
|
65
66
|
Box(modifier = Modifier.padding(vertical = NewAppTheme.spacing.`6`)) {
|
|
66
67
|
Warning("Debugging not working? Try manually reloading first")
|
|
@@ -3,7 +3,6 @@ package expo.modules.devmenu.compose.ui
|
|
|
3
3
|
import androidx.compose.foundation.layout.Column
|
|
4
4
|
import androidx.compose.runtime.Composable
|
|
5
5
|
import androidx.compose.ui.unit.dp
|
|
6
|
-
import expo.modules.devmenu.DevMenuPreferencesHandle
|
|
7
6
|
import expo.modules.devmenu.DevToolsSettings
|
|
8
7
|
import expo.modules.devmenu.compose.DevMenuAction
|
|
9
8
|
import expo.modules.devmenu.compose.DevMenuActionHandler
|
|
@@ -13,10 +12,13 @@ import expo.modules.devmenu.compose.primitives.NewText
|
|
|
13
12
|
import expo.modules.devmenu.compose.primitives.RoundedSurface
|
|
14
13
|
import expo.modules.devmenu.compose.primitives.Spacer
|
|
15
14
|
import expo.modules.devmenu.compose.primitives.ToggleSwitch
|
|
16
|
-
import expo.modules.devmenu.compose.utils.IsRunningInPreview
|
|
17
15
|
|
|
18
16
|
@Composable
|
|
19
|
-
fun ToolsSection(
|
|
17
|
+
fun ToolsSection(
|
|
18
|
+
onAction: DevMenuActionHandler,
|
|
19
|
+
devToolsSettings: DevToolsSettings,
|
|
20
|
+
showFab: Boolean
|
|
21
|
+
) {
|
|
20
22
|
Section.Header(
|
|
21
23
|
"TOOLS"
|
|
22
24
|
)
|
|
@@ -39,7 +41,7 @@ fun ToolsSection(onAction: DevMenuActionHandler, devToolsSettings: DevToolsSetti
|
|
|
39
41
|
)
|
|
40
42
|
},
|
|
41
43
|
onClick = {
|
|
42
|
-
onAction(DevMenuAction.
|
|
44
|
+
onAction(DevMenuAction.TogglePerformanceMonitor)
|
|
43
45
|
}
|
|
44
46
|
)
|
|
45
47
|
|
|
@@ -125,7 +127,7 @@ fun ToolsSection(onAction: DevMenuActionHandler, devToolsSettings: DevToolsSetti
|
|
|
125
127
|
},
|
|
126
128
|
rightComponent = {
|
|
127
129
|
ToggleSwitch(
|
|
128
|
-
isToggled =
|
|
130
|
+
isToggled = showFab
|
|
129
131
|
)
|
|
130
132
|
},
|
|
131
133
|
onClick = {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "expo-dev-menu",
|
|
3
|
-
"version": "7.0.
|
|
3
|
+
"version": "7.0.11",
|
|
4
4
|
"description": "Expo/React Native module with the developer menu.",
|
|
5
5
|
"main": "build/DevMenu.js",
|
|
6
6
|
"types": "build/DevMenu.d.ts",
|
|
@@ -40,17 +40,17 @@
|
|
|
40
40
|
"@babel/preset-typescript": "^7.7.4",
|
|
41
41
|
"@testing-library/react-native": "^13.2.0",
|
|
42
42
|
"babel-plugin-module-resolver": "^5.0.0",
|
|
43
|
-
"babel-preset-expo": "~
|
|
44
|
-
"expo-dev-client-components": "3.0.
|
|
45
|
-
"expo-module-scripts": "^5.0.
|
|
43
|
+
"babel-preset-expo": "~54.0.0",
|
|
44
|
+
"expo-dev-client-components": "3.0.7",
|
|
45
|
+
"expo-module-scripts": "^5.0.7",
|
|
46
46
|
"fuse.js": "^6.4.6",
|
|
47
47
|
"react": "19.1.0",
|
|
48
|
-
"react-native": "0.81.
|
|
48
|
+
"react-native": "0.81.4",
|
|
49
49
|
"url": "^0.11.0",
|
|
50
50
|
"use-subscription": "^1.8.0"
|
|
51
51
|
},
|
|
52
52
|
"peerDependencies": {
|
|
53
53
|
"expo": "*"
|
|
54
54
|
},
|
|
55
|
-
"gitHead": "
|
|
55
|
+
"gitHead": "088e79428be97cf3ee11fc93e0e5a1fc1c8bea1e"
|
|
56
56
|
}
|