esoftplay 0.0.123-e → 0.0.123-g

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.
@@ -10,7 +10,7 @@ export interface LibKeyboard_avoidProps {
10
10
  }
11
11
  export default function m(props: LibKeyboard_avoidProps): any {
12
12
  return (
13
- <KeyboardAvoidingView behavior={Platform.OS == 'android' ? 'height' : 'padding'} style={props.style} >
13
+ <KeyboardAvoidingView behavior={Platform.OS == 'android' ? 'height' : 'padding'} style={[{ flex: 1 }, props.style]} >
14
14
  {props.children}
15
15
  </KeyboardAvoidingView>
16
16
  )
@@ -21,7 +21,7 @@ import Worker from 'esoftplay/libs/worker';
21
21
  import _global from 'esoftplay/_global';
22
22
  import * as Font from "expo-font";
23
23
  import React, { useEffect, useLayoutEffect } from 'react';
24
- import { Platform, View } from "react-native";
24
+ import { Platform, Pressable, Text, View } from "react-native";
25
25
  import { GestureHandlerRootView } from 'react-native-gesture-handler';
26
26
 
27
27
  export interface UserIndexProps {
@@ -50,7 +50,7 @@ function setFonts(): Promise<void> {
50
50
  function isWorkerReady(onReady: () => void): void {
51
51
  // @ts-ignore
52
52
  if (_global.WorkerReady < 1) {
53
-
53
+
54
54
  setTimeout(() => isWorkerReady(onReady), 10)
55
55
  } else {
56
56
  onReady()
@@ -90,7 +90,7 @@ export default function m(props: UserIndexProps): any {
90
90
  }
91
91
 
92
92
  if (limitReady == 3) {
93
-
93
+
94
94
  isWorkerReady(() => {
95
95
  ready.current += 1
96
96
  if (ready.current >= limitReady) {
@@ -143,6 +143,12 @@ export default function m(props: UserIndexProps): any {
143
143
  <LibProgress />
144
144
  <LibToast />
145
145
  <UserHook />
146
+ {
147
+ __DEV__ &&
148
+ <Pressable onPress={() => route.reset()} style={{ padding: 8, backgroundColor: 'indigo', alignItems: 'center', justifyContent: 'center' }} >
149
+ <Text style={{ color: 'white' }} >RESET ROUTES</Text>
150
+ </Pressable>
151
+ }
146
152
  </>
147
153
  }
148
154
  </View>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "esoftplay",
3
- "version": "0.0.123-e",
3
+ "version": "0.0.123-g",
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",