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 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._
@@ -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.9'
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.9'
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?.let {
370
- preferences?.showFab = !it
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 -> 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
@@ -72,6 +72,7 @@ fun DevMenuBottomSheet(
72
72
  appInfo = appInfo,
73
73
  devToolsSettings = state.devToolsSettings,
74
74
  shouldShowOnboarding = shouldShowOnboarding.value,
75
+ showFab = state.showFab,
75
76
  onAction = wrappedOnAction
76
77
  )
77
78
  }
@@ -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(onAction: DevMenuActionHandler, devToolsSettings: DevToolsSettings) {
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.Reload)
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 = if (IsRunningInPreview) false else DevMenuPreferencesHandle.showFab
130
+ isToggled = showFab
129
131
  )
130
132
  },
131
133
  onClick = {
@@ -23,6 +23,7 @@ struct DevMenuRootView: View {
23
23
  }
24
24
  }
25
25
  }
26
+ .navigationViewStyle(.stack)
26
27
  }
27
28
  }
28
29
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "expo-dev-menu",
3
- "version": "7.0.9",
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": "~14.0.6",
44
- "expo-dev-client-components": "3.0.6",
45
- "expo-module-scripts": "^5.0.6",
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.1",
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": "d087a2182086089f23bcee65e27434f21db50128"
55
+ "gitHead": "088e79428be97cf3ee11fc93e0e5a1fc1c8bea1e"
56
56
  }