esoftplay 0.0.241 → 0.0.243
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/modules/lib/navigation.ts +4 -6
- package/modules/lib/version.tsx +10 -2
- package/package.json +1 -1
|
@@ -183,17 +183,15 @@ export default {
|
|
|
183
183
|
},
|
|
184
184
|
/** Klik [disini](https://github.com/dev-esoftplay/mobile-docs/blob/main/modules/lib/navigation.md#replace) untuk melihat dokumentasi*/
|
|
185
185
|
replace<S extends keyof EspArgsInterface>(route: S, params?: EspArgsInterface[S]): void {
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
})
|
|
186
|
+
logArgs(params)
|
|
187
|
+
this._ref?.dispatch?.(
|
|
188
|
+
StackActions.replace(replaceModuleByUrlParam(params, route), params)
|
|
189
|
+
)
|
|
191
190
|
},
|
|
192
191
|
/** Klik [disini](https://github.com/dev-esoftplay/mobile-docs/blob/main/modules/lib/navigation.md#push) untuk melihat dokumentasi*/
|
|
193
192
|
push<S extends keyof EspArgsInterface>(route: S, params?: EspArgsInterface[S]): void {
|
|
194
193
|
logArgs(params)
|
|
195
194
|
doIt(() => {
|
|
196
|
-
|
|
197
195
|
this._ref?.dispatch?.(
|
|
198
196
|
StackActions.push(
|
|
199
197
|
replaceModuleByUrlParam(params, route),
|
package/modules/lib/version.tsx
CHANGED
|
@@ -51,8 +51,9 @@ export default class m extends LibComponent<LibVersionProps, LibVersionState> {
|
|
|
51
51
|
|
|
52
52
|
function isAvailableNewVersion(newVersion: string): boolean {
|
|
53
53
|
let oldVersion = m.appVersion()
|
|
54
|
-
return newVersion > oldVersion
|
|
54
|
+
return Number(newVersion) > Number(oldVersion)
|
|
55
55
|
}
|
|
56
|
+
|
|
56
57
|
if (!__DEV__)
|
|
57
58
|
if (isAvailableNewVersion(version)) {
|
|
58
59
|
LibNavigation.backToRoot()
|
|
@@ -71,7 +72,14 @@ export default class m extends LibComponent<LibVersionProps, LibVersionState> {
|
|
|
71
72
|
}
|
|
72
73
|
|
|
73
74
|
render(): any {
|
|
74
|
-
const { res
|
|
75
|
+
const { res, msg } = LibNavigation.getArgsAll<any>(this.props)
|
|
76
|
+
let title, version, android, ios
|
|
77
|
+
if (res) {
|
|
78
|
+
title = res.title
|
|
79
|
+
version = res.version
|
|
80
|
+
android = res.android
|
|
81
|
+
ios = res.ios
|
|
82
|
+
}
|
|
75
83
|
const link = Platform.OS == 'ios' ? ios : android
|
|
76
84
|
return (
|
|
77
85
|
<ImageBackground source={esp.assets("splash.png")} blurRadius={100} style={{ flex: 1, justifyContent: 'center', alignItems: 'center', borderStartColor: 'white', paddingHorizontal: 17 }} >
|