esoftplay 0.0.242 → 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.
@@ -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: { title, version, android, ios }, msg } = LibNavigation.getArgsAll<any>(this.props)
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 }} >
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "esoftplay",
3
- "version": "0.0.242",
3
+ "version": "0.0.243",
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",