esoftplay 0.0.115-w → 0.0.115-x

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.
@@ -17,6 +17,7 @@ export default class eclass {
17
17
  static create(user: any): Promise<void> {
18
18
  return new Promise((r, j) => {
19
19
  state?.set?.(user)
20
+ r(user)
20
21
  })
21
22
  }
22
23
 
@@ -52,7 +52,7 @@ export default function UserIndex(props: UserIndexProps): any {
52
52
  // const timeout = setTimeout(() => {
53
53
  // setLoading(false)
54
54
  // }, 15 * 1000);
55
- let limitReady = 2
55
+ let limitReady = 3
56
56
  if (Platform.OS == 'android')
57
57
  if (Platform.Version <= 22) {
58
58
  limitReady = 2
@@ -72,12 +72,12 @@ export default function UserIndex(props: UserIndexProps): any {
72
72
  }
73
73
  })()
74
74
 
75
- // UserClass.isLogin(async () => {
76
- // ready.current += 1
77
- // if (ready.current >= limitReady) {
78
- // setLoading(false)
79
- // }
80
- // })
75
+ UserClass.isLogin(async () => {
76
+ ready.current += 1
77
+ if (ready.current >= limitReady) {
78
+ setLoading(false)
79
+ }
80
+ })
81
81
  if (esp.config('firebase').hasOwnProperty('apiKey')) {
82
82
  try {
83
83
  if (ChattingFirebase)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "esoftplay",
3
- "version": "0.0.115-w",
3
+ "version": "0.0.115-x",
4
4
  "description": "embedding data from esoftplay framework (web based) into mobile app",
5
5
  "main": "cache/index.js",
6
6
  "types": "../../index.d.ts",