@fto-consult/expo-ui 8.25.6 → 8.25.8

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.
@@ -3,6 +3,7 @@ const fs = require("fs");
3
3
 
4
4
  module.exports = (opts)=>{
5
5
  const dir = path.resolve(__dirname);
6
+ const isDev = String(process.env.NODE_ENV).toLowerCase() !="production";
6
7
  const projectRoot = typeof opts.projectRoot =='string' && fs.existsSync(opts.projectRoot.trim()) && opts.projectRoot.trim() || process.cwd();
7
8
  const assets = path.resolve(dir,"assets");
8
9
  opts = typeof opts =='object' && opts ? opts : {};
@@ -12,7 +13,8 @@ module.exports = (opts)=>{
12
13
  opts.withPouchDB = opts.withPouchDB !== false && opts.withPouchdb !== false ? true : false;
13
14
  delete opts.withPouchdb;
14
15
  const expoUI = require("./expo-ui-path")();
15
- const r = require("@fto-consult/common/babel.config.alias")(opts);
16
+ const cPath = isDev && fs.existsSync(path.resolve(expoUI,"node_modules","@fto-consult","common"))? path.resolve(expoUI,"node_modules","@fto-consult","common") : null;
17
+ const r = require(`${cPath ? path.resolve(cPath,"babel.config.alias.js"):'@fto-consult/common/babel.config.alias'}`)(opts);
16
18
  const expo = path.resolve(expoUI,"src");
17
19
  r["$ecomponents"] = r["$expo-components"] = path.resolve(expo,"components");
18
20
  r["$econfirm"] = path.resolve(r["$expo-components"],"Dialog","confirm");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fto-consult/expo-ui",
3
- "version": "8.25.6",
3
+ "version": "8.25.8",
4
4
  "description": "Bibliothèque de composants UI Expo,react-native",
5
5
  "scripts": {
6
6
  "clear-npx-cache": "npx clear-npx-cache",
@@ -68,7 +68,7 @@
68
68
  "dependencies": {
69
69
  "@emotion/react": "^11.11.1",
70
70
  "@faker-js/faker": "^8.0.2",
71
- "@fto-consult/common": "^4.25.0",
71
+ "@fto-consult/common": "^4.25.5",
72
72
  "@fto-consult/node-utils": "^1.4.7",
73
73
  "apexcharts": "^3.45.2",
74
74
  "crypto-browserify": "^3.12.0",
package/src/App.js CHANGED
@@ -18,7 +18,6 @@ import App from "./AppEntry";
18
18
 
19
19
  export default function ExpoUIAppEntryProvider({children:cChildren,init,...rest}){
20
20
  const [children,setChildren] = useState(null);
21
- return null;
22
21
  const canInit = typeof session.init =="function";
23
22
  useEffect(()=>{
24
23
  if(!canInit) return ()=>{}
@@ -28,6 +27,5 @@ export default function ExpoUIAppEntryProvider({children:cChildren,init,...rest}
28
27
  </Provider>);
29
28
  });
30
29
  },[]);
31
- console.log("can init is cna idddd",canInit);
32
30
  return canInit ? children : <Provider {...rest}><App init={init} children={cChildren}/></Provider>;
33
31
  }
@@ -269,7 +269,6 @@ function App({init:initApp,initialRouteName:appInitialRouteName,children}) {
269
269
  />
270
270
  </NavigationContainer> : null;
271
271
  const content = isLoaded ? typeof children == 'function'? children({children:child,appConfig,config:appConfig}) : child : null;
272
- console.log(content," will rendddddddddddd")
273
272
  const myChildren = <PreferencesContext.Provider value={preferences}>
274
273
  {isLoaded ? React.isValidElement(content) && content || child : null}
275
274
  </PreferencesContext.Provider>;
@@ -1,6 +1,6 @@
1
1
  module.exports = {
2
2
  "@fto-consult/expo-ui": {
3
- "version": "8.25.4",
3
+ "version": "8.25.6",
4
4
  "url": "https://github.com/borispipo/expo-ui#readme",
5
5
  "license": "ISC"
6
6
  },