esoftplay 0.0.130-s → 0.0.130-u

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/bin/router.js CHANGED
@@ -65,7 +65,6 @@ var tmpExp = ["LibCrypt"]; // nama2 class yang tidak perlu dibuat
65
65
  var Nav5 = (importer, navs) => {
66
66
  return (`
67
67
  // @ts-nocheck
68
- import React, { useEffect } from 'react';
69
68
  import { NavigationContainer } from '@react-navigation/native';
70
69
  import { createNativeStackNavigator } from '@react-navigation/native-stack';
71
70
  \nimport { _global } from "esoftplay";\n
@@ -76,7 +75,7 @@ const config = require('../../../config.json')
76
75
  import { LibNavigation } from 'esoftplay/cache/lib/navigation/import';
77
76
  import { UserClass } from 'esoftplay/cache/user/class/import';
78
77
  import { UserRoutes } from 'esoftplay/cache/user/routes/import';
79
- import { stable } from 'usestable';
78
+ import { memo } from 'react';
80
79
 
81
80
  function m(props): any {
82
81
  const userEmail = UserClass.state().useSelector((s) => s?.email)
@@ -97,7 +96,7 @@ function m(props): any {
97
96
  </NavigationContainer>
98
97
  )
99
98
  }
100
- export default stable(m)
99
+ export default memo(m)
101
100
  `)
102
101
  }
103
102
 
@@ -738,8 +737,7 @@ function createRouter() {
738
737
  const orientation = NavsOrientation[nav]
739
738
  const [module, task] = nav.split('/')
740
739
  const comp = ucword(module) + ucword(task)
741
- importer.push(`import { ${comp}
742
- } from ${'"esoftplay/cache/' + module + '/' + task + '/import"'} `)
740
+ importer.push(`import { ${comp} } from ${'"esoftplay/cache/' + module + '/' + task + '/import"'} `)
743
741
  if (orientation)
744
742
  screens.push("\t\t\t\t" + "<Stack.Screen name={\"" + nav + "\"} options={{ orientation: '" + orientation + "' }} component={" + comp + "} />")
745
743
  else
package/oneplusfixfont.ts CHANGED
@@ -1,18 +1,19 @@
1
1
  //@ts-nocheck
2
- const React = require('react');
3
- const { Platform, Text } = require('react-native');
2
+ (() => {
3
+ const React = require('react');
4
+ const { Platform, Text } = require('react-native');
4
5
 
5
- const defaultFontFamily = {
6
- ...Platform.select({
7
- android: { fontFamily: 'Roboto' }
8
- })
9
- };
10
-
11
- const oldRender = Text.render;
12
- Text.render = function (...args: any) {
13
- const origin = oldRender.call(this, ...args);
14
- return React.cloneElement(origin, {
15
- style: [defaultFontFamily, origin.props.style]
16
- });
17
- };
6
+ const defaultFontFamily = {
7
+ ...Platform.select({
8
+ android: { fontFamily: 'Roboto' }
9
+ })
10
+ };
18
11
 
12
+ const oldRender = Text.render;
13
+ Text.render = function (...args: any) {
14
+ const origin = oldRender.call(this, ...args);
15
+ return React.cloneElement(origin, {
16
+ style: [defaultFontFamily, origin.props.style]
17
+ });
18
+ };
19
+ })()
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "esoftplay",
3
- "version": "0.0.130-s",
3
+ "version": "0.0.130-u",
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",