esoftplay 0.0.237 → 0.0.239

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.
@@ -1,11 +1,10 @@
1
1
  // noPage
2
2
  // withObject
3
- import { CommonActions, StackActions } from '@react-navigation/native';
3
+ import { StackActions } from '@react-navigation/native';
4
4
  import { LibNavigationRoutes } from 'esoftplay';
5
5
  import { EspArgsInterface } from 'esoftplay/cache/args';
6
6
  import { LibUtils } from 'esoftplay/cache/lib/utils/import';
7
7
  import { EspRouterInterface } from 'esoftplay/cache/routers';
8
- import { UserClass } from 'esoftplay/cache/user/class/import';
9
8
  import { UserRoutes } from 'esoftplay/cache/user/routes/import';
10
9
 
11
10
  import esp from 'esoftplay/esp';
@@ -195,17 +194,17 @@ export default {
195
194
  },
196
195
  /** Klik [disini](https://github.com/dev-esoftplay/mobile-docs/blob/main/modules/lib/navigation.md#reset) untuk melihat dokumentasi*/
197
196
  reset(route?: LibNavigationRoutes, ...routes: LibNavigationRoutes[]): void {
198
- const user = UserClass.state().get()
199
- let _route = [route || esp.config('home', (user && (user.id || user.user_id || user.apikey)) ? 'member' : 'public')]
200
- if (routes && routes.length > 0) {
201
- _route = [..._route, ...routes]
202
- }
203
197
  this._ref?.dispatch?.(StackActions.popToTop());
204
- const resetAction = CommonActions.reset({
205
- index: _route.length - 1,
206
- routes: _route.map((rn) => ({ name: rn }))
207
- });
208
- this._ref?.dispatch?.(resetAction);
198
+ // const user = UserClass.state().get()
199
+ // let _route = [route || esp.config('home', (user && (user.id || user.user_id || user.apikey)) ? 'member' : 'public')]
200
+ // if (routes && routes.length > 0) {
201
+ // _route = [..._route, ...routes]
202
+ // }
203
+ // const resetAction = CommonActions.reset({
204
+ // index: _route.length - 1,
205
+ // routes: _route.map((rn) => ({ name: rn }))
206
+ // });
207
+ // this._ref?.dispatch?.(resetAction);
209
208
  },
210
209
  /** Klik [disini](https://github.com/dev-esoftplay/mobile-docs/blob/main/modules/lib/navigation.md#back) untuk melihat dokumentasi*/
211
210
  back(deep?: number): void {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "esoftplay",
3
- "version": "0.0.237",
3
+ "version": "0.0.239",
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",