@aks-dev/easyui 1.0.67 → 1.0.68
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.
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* @Author: shiguo
|
|
3
3
|
* @Date: 2022-04-25 17:57:29
|
|
4
4
|
* @LastEditors: shiguo
|
|
5
|
-
* @LastEditTime: 2022-07-07
|
|
5
|
+
* @LastEditTime: 2022-07-07 10:40:51
|
|
6
6
|
* @FilePath: /@aks-dev/easyui/android/src/main/java/com/easyui/RNEasyuiModule.java
|
|
7
7
|
*/
|
|
8
8
|
|
|
@@ -68,7 +68,7 @@ public class RNEasyuiModule extends ReactContextBaseJavaModule {
|
|
|
68
68
|
|
|
69
69
|
|
|
70
70
|
@ReactMethod
|
|
71
|
-
public void
|
|
71
|
+
public void gotoDesktop() {
|
|
72
72
|
//启动一个意图,回到桌面
|
|
73
73
|
Intent desktop = new Intent(Intent.ACTION_MAIN);
|
|
74
74
|
desktop.addCategory(Intent.CATEGORY_HOME);
|
package/jsbridge/RNEasyui.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* @Author: shiguo
|
|
3
3
|
* @Date: 2022-04-19 10:23:01
|
|
4
4
|
* @LastEditors: shiguo
|
|
5
|
-
* @LastEditTime: 2022-07-07
|
|
5
|
+
* @LastEditTime: 2022-07-07 10:41:19
|
|
6
6
|
* @FilePath: /@aks-dev/easyui/jsbridge/RNEasyui.ts
|
|
7
7
|
*/
|
|
8
8
|
|
|
@@ -30,6 +30,6 @@ export const getNavigationBarHeight = () => {
|
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
|
|
33
|
-
export const
|
|
33
|
+
export const gotoDesktop = () => {
|
|
34
34
|
if (Platform.OS == 'android') RNEasyui?.goHome();
|
|
35
35
|
}
|
package/jsbridge/index.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* @Author: shiguo
|
|
3
3
|
* @Date: 2022-04-19 10:23:01
|
|
4
4
|
* @LastEditors: shiguo
|
|
5
|
-
* @LastEditTime: 2022-07-07
|
|
5
|
+
* @LastEditTime: 2022-07-07 10:41:01
|
|
6
6
|
* @FilePath: /@aks-dev/easyui/jsbridge/index.ts
|
|
7
7
|
*/
|
|
8
8
|
|
|
@@ -50,4 +50,4 @@ export declare const getNavigationBarHeight: () => Promise<number>;
|
|
|
50
50
|
* only android
|
|
51
51
|
* 返回桌面
|
|
52
52
|
*/
|
|
53
|
-
export declare const
|
|
53
|
+
export declare const gotoDesktop: ()=>void;
|