@fto-consult/expo-ui 6.65.3 → 6.65.5

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/expo-ui-path.js CHANGED
@@ -23,14 +23,14 @@ module.exports = function (){
23
23
  if(isDevEnv && fs.existsSync(packageJSON)){
24
24
  try {
25
25
  const package = require(`${packageJSON}`);
26
- if(package && typeof package =='objects' && package?.expoUIRootPath && typeof package.expoUIRootPath ==='string'){
26
+ if(package && typeof package =='object' && package?.expoUIRootPath && typeof package.expoUIRootPath ==='string'){
27
27
  const p = path.resolve(package.expoUIRootPath);
28
28
  if(fs.existsSync(p) && fs.existsSync(path.resolve(p,"src")) && fs.existsSync(path.resolve(p,"webpack.config.js"))){
29
29
  return path.resolve(p,suffix).replace(sep,(sep+sep));
30
30
  }
31
31
  }
32
32
 
33
- } catch{}
33
+ } catch (e){}
34
34
  }
35
35
  /***** old dev env */
36
36
  return suffix ? path.join(expoUIPath,suffix).replace(sep,"/"): expoUIPath;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fto-consult/expo-ui",
3
- "version": "6.65.3",
3
+ "version": "6.65.5",
4
4
  "description": "Bibliothèque de composants UI Expo,react-native",
5
5
  "main": "main",
6
6
  "scripts": {
@@ -71,7 +71,7 @@
71
71
  "@expo/html-elements": "^0.5.1",
72
72
  "@expo/vector-icons": "^13.0.0",
73
73
  "@faker-js/faker": "^8.0.2",
74
- "@fto-consult/common": "^3.55.3",
74
+ "@fto-consult/common": "^3.55.4",
75
75
  "@pchmn/expo-material3-theme": "^1.3.1",
76
76
  "@react-native-async-storage/async-storage": "1.18.2",
77
77
  "@react-native-community/datetimepicker": "7.2.0",
@@ -109,6 +109,7 @@
109
109
  "react-native-big-list": "^1.6.1",
110
110
  "react-native-blob-util": "^0.18.6",
111
111
  "react-native-gesture-handler": "~2.12.0",
112
+ "react-native-get-random-values": "~1.9.0",
112
113
  "react-native-iphone-x-helper": "^1.3.1",
113
114
  "react-native-mime-types": "^2.4.0",
114
115
  "react-native-paper": "^5.11.1",
@@ -130,8 +130,9 @@ const useGetItems = (options)=>{
130
130
  dashboard : dash?.showInDrawer === false || typeof dash.showInDrawer ==='function' && dash.showInDrawer() === false ? null : dash,
131
131
  ...items,
132
132
  };
133
+ console.log(drawerSections," dddd is d sections for ",drawerItems);
133
134
  if(typeof drawerItemsMutator ==='function'){
134
- items = drawerItemsMutator(items);
135
+ items = drawerItemsMutator(items,{drawerItems,drawerSections});
135
136
  }
136
137
  Object.map(items,(item,section)=>{
137
138
  if(!isObj(item) || item.section !== true) return;