expo-dev-menu 4.1.0 → 4.2.0
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 +12 -0
- package/README.md +5 -1
- package/android/build.gradle +12 -3
- package/app/components/Main.tsx +39 -59
- package/app/components/Onboarding.tsx +1 -1
- package/assets/EXDevMenuApp.android.js +118 -121
- package/assets/EXDevMenuApp.ios.js +118 -121
- package/build/ExpoDevMenu.d.ts +2 -2
- package/build/ExpoDevMenu.d.ts.map +1 -1
- package/build/ExpoDevMenu.js +2 -10
- package/build/ExpoDevMenu.js.map +1 -1
- package/ios/Interceptors/DevMenuKeyCommandsInterceptor.swift +3 -2
- package/package.json +3 -3
- package/src/ExpoDevMenu.ts +2 -10
package/build/ExpoDevMenu.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
declare
|
|
2
|
-
export default
|
|
1
|
+
declare const _default: any;
|
|
2
|
+
export default _default;
|
|
3
3
|
//# sourceMappingURL=ExpoDevMenu.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ExpoDevMenu.d.ts","sourceRoot":"","sources":["../src/ExpoDevMenu.ts"],"names":[],"mappings":"AAEA,
|
|
1
|
+
{"version":3,"file":"ExpoDevMenu.d.ts","sourceRoot":"","sources":["../src/ExpoDevMenu.ts"],"names":[],"mappings":";AAEA,wBAA0D"}
|
package/build/ExpoDevMenu.js
CHANGED
|
@@ -1,11 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
// Use try-catch to prevent crashes in release builds
|
|
4
|
-
try {
|
|
5
|
-
ExpoDevMenu = requireNativeModule('ExpoDevMenu');
|
|
6
|
-
}
|
|
7
|
-
catch {
|
|
8
|
-
ExpoDevMenu = null;
|
|
9
|
-
}
|
|
10
|
-
export default ExpoDevMenu;
|
|
1
|
+
import { requireOptionalNativeModule } from 'expo-modules-core';
|
|
2
|
+
export default requireOptionalNativeModule('ExpoDevMenu');
|
|
11
3
|
//# sourceMappingURL=ExpoDevMenu.js.map
|
package/build/ExpoDevMenu.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ExpoDevMenu.js","sourceRoot":"","sources":["../src/ExpoDevMenu.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"ExpoDevMenu.js","sourceRoot":"","sources":["../src/ExpoDevMenu.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2BAA2B,EAAE,MAAM,mBAAmB,CAAC;AAEhE,eAAe,2BAA2B,CAAC,aAAa,CAAC,CAAC","sourcesContent":["import { requireOptionalNativeModule } from 'expo-modules-core';\n\nexport default requireOptionalNativeModule('ExpoDevMenu');\n"]}
|
|
@@ -25,7 +25,8 @@ class DevMenuKeyCommandsInterceptor {
|
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
static let globalKeyCommands: [UIKeyCommand] = [
|
|
28
|
-
UIKeyCommand(input: "d", modifierFlags: .command, action: #selector(UIResponder.EXDevMenu_toggleDevMenu(_:)))
|
|
28
|
+
UIKeyCommand(input: "d", modifierFlags: .command, action: #selector(UIResponder.EXDevMenu_toggleDevMenu(_:))),
|
|
29
|
+
UIKeyCommand(input: "d", modifierFlags: .control, action: #selector(UIResponder.EXDevMenu_toggleDevMenu(_:)))
|
|
29
30
|
]
|
|
30
31
|
}
|
|
31
32
|
|
|
@@ -74,7 +75,7 @@ extension UIResponder: DevMenuUIResponderExtensionProtocol {
|
|
|
74
75
|
}
|
|
75
76
|
|
|
76
77
|
private func shouldTriggerAction(_ key: UIKeyCommand) -> Bool {
|
|
77
|
-
return UIResponder.lastKeyCommand !== key || CACurrentMediaTime() - UIResponder.lastKeyCommandExecutionTime > 0.
|
|
78
|
+
return UIResponder.lastKeyCommand !== key || CACurrentMediaTime() - UIResponder.lastKeyCommandExecutionTime > 0.1
|
|
78
79
|
}
|
|
79
80
|
|
|
80
81
|
private func tryHandleKeyCommand(_ key: UIKeyCommand, handler: () -> Void ) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "expo-dev-menu",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.2.0",
|
|
4
4
|
"description": "Expo/React Native module with the developer menu.",
|
|
5
5
|
"main": "build/DevMenu.js",
|
|
6
6
|
"types": "build/DevMenu.d.ts",
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"@testing-library/jest-native": "^4.0.4",
|
|
58
58
|
"@testing-library/react-native": "^8.0.0",
|
|
59
59
|
"babel-plugin-module-resolver": "^5.0.0",
|
|
60
|
-
"babel-preset-expo": "~9.
|
|
60
|
+
"babel-preset-expo": "~9.7.0",
|
|
61
61
|
"expo-dev-client-components": "1.6.1",
|
|
62
62
|
"expo-module-scripts": "^3.0.0",
|
|
63
63
|
"fuse.js": "^6.4.6",
|
|
@@ -71,5 +71,5 @@
|
|
|
71
71
|
"peerDependencies": {
|
|
72
72
|
"expo": "*"
|
|
73
73
|
},
|
|
74
|
-
"gitHead": "
|
|
74
|
+
"gitHead": "ee2c866ba3c7fbc35ff2a3e896041cf15d3bd7c5"
|
|
75
75
|
}
|
package/src/ExpoDevMenu.ts
CHANGED
|
@@ -1,11 +1,3 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { requireOptionalNativeModule } from 'expo-modules-core';
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
// Use try-catch to prevent crashes in release builds
|
|
5
|
-
try {
|
|
6
|
-
ExpoDevMenu = requireNativeModule('ExpoDevMenu');
|
|
7
|
-
} catch {
|
|
8
|
-
ExpoDevMenu = null;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
export default ExpoDevMenu;
|
|
3
|
+
export default requireOptionalNativeModule('ExpoDevMenu');
|