esoftplay 0.0.115-l → 0.0.115-o
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/bin/router.js +3 -3
- package/modules/lib/worker.tsx +2 -2
- package/modules/lib/workview.tsx +2 -1
- package/modules/user/index.tsx +3 -3
- package/package.json +1 -1
package/bin/router.js
CHANGED
|
@@ -601,11 +601,11 @@ function createRouter() {
|
|
|
601
601
|
if (module == 'lib' && task == 'component') {
|
|
602
602
|
staticImport.splice(0, 0, item)
|
|
603
603
|
} else if (module == 'lib' && task == 'style') {
|
|
604
|
-
staticImport.splice(
|
|
604
|
+
staticImport.splice(4, 0, item)
|
|
605
605
|
} else if (module == 'lib' && task == 'worker') {
|
|
606
|
-
staticImport.splice(
|
|
606
|
+
staticImport.splice(4, 0, item)
|
|
607
607
|
} else if (module == 'lib' && task == 'navigation') {
|
|
608
|
-
staticImport.splice(
|
|
608
|
+
staticImport.splice(4, 0, item)
|
|
609
609
|
} else if (task == 'style') {
|
|
610
610
|
staticImport.splice(9, 0, item)
|
|
611
611
|
} else if (task == 'scrollpicker') {
|
package/modules/lib/worker.tsx
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// noPage
|
|
2
2
|
|
|
3
|
-
import { useGlobalReturn, useGlobalState
|
|
3
|
+
import { useGlobalReturn, useGlobalState } from 'esoftplay';
|
|
4
4
|
import React, { Component } from "react";
|
|
5
5
|
import { Platform } from 'react-native';
|
|
6
6
|
|
|
@@ -16,7 +16,7 @@ export interface LibWorkerProps {
|
|
|
16
16
|
export interface LibWorkerState {
|
|
17
17
|
|
|
18
18
|
}
|
|
19
|
-
|
|
19
|
+
const _global = require('../../_global')
|
|
20
20
|
_global.LibWorkerBase = React.createRef()
|
|
21
21
|
_global.LibWorkerTasks = new Map()
|
|
22
22
|
_global.injectedJavaScripts = []
|
package/modules/lib/workview.tsx
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
// withHooks
|
|
2
2
|
// noPage
|
|
3
3
|
|
|
4
|
-
import { esp, LibWorker
|
|
4
|
+
import { esp, LibWorker } from 'esoftplay';
|
|
5
5
|
import React from 'react';
|
|
6
6
|
import { Platform, View } from 'react-native';
|
|
7
7
|
import WebView from 'react-native-webview';
|
|
8
|
+
const _global = require('../../_global')
|
|
8
9
|
|
|
9
10
|
export interface LibWorkviewArgs {
|
|
10
11
|
|
package/modules/user/index.tsx
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
import { ChattingFirebase, esp, LibDialog, LibImage, LibNet_status, LibProgress, LibStyle, LibToast, LibUpdaterProperty, LibVersion, LibWorker, LibWorkloop, LibWorkview, UseDeeplink, UserClass, UserLoading, UserMain, UserRoutes, useSafeState, _global } from 'esoftplay';
|
|
5
5
|
import * as Font from "expo-font";
|
|
6
|
-
import React, { useEffect
|
|
6
|
+
import React, { useEffect } from "react";
|
|
7
7
|
import { Platform, View } from "react-native";
|
|
8
8
|
import { GestureHandlerRootView } from 'react-native-gesture-handler';
|
|
9
9
|
import Navs from "../../cache/navs";
|
|
@@ -33,7 +33,7 @@ function setFonts(): Promise<void> {
|
|
|
33
33
|
|
|
34
34
|
export default function m(props: UserIndexProps): any {
|
|
35
35
|
const [loading, setLoading] = useSafeState(true)
|
|
36
|
-
const worker = LibWorker.workerState().
|
|
36
|
+
const [worker] = LibWorker.workerState().useState()
|
|
37
37
|
const user = UserClass.state().useSelector(s => s)
|
|
38
38
|
const ready = React.useRef(0)
|
|
39
39
|
UseDeeplink()
|
|
@@ -48,7 +48,7 @@ export default function m(props: UserIndexProps): any {
|
|
|
48
48
|
UserRoutes.set(currentState)
|
|
49
49
|
}
|
|
50
50
|
|
|
51
|
-
|
|
51
|
+
useEffect(() => {
|
|
52
52
|
// const timeout = setTimeout(() => {
|
|
53
53
|
// setLoading(false)
|
|
54
54
|
// }, 15 * 1000);
|