@fto-consult/expo-ui 1.1.40 → 1.1.41
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/babel.config.alias.js +1 -1
- package/metro.config.js +1 -23
- package/package.json +1 -2
- package/src/components/Chart/appexChart/appexchart.3.5.html +14 -0
- package/src/components/Image/index.js +1 -1
- package/assets/adaptive-icon.png +0 -0
- package/assets/favicon.png +0 -0
- package/assets/icon.png +0 -0
- package/assets/logo.png +0 -0
- package/assets/splash.png +0 -0
package/babel.config.alias.js
CHANGED
|
@@ -4,7 +4,7 @@ module.exports = (opts)=>{
|
|
|
4
4
|
const assets = path.resolve(dir,"assets");
|
|
5
5
|
opts = typeof opts =='object' && opts ? opts : {};
|
|
6
6
|
opts.platform = "expo";
|
|
7
|
-
opts.assets = opts.assets || assets;
|
|
7
|
+
opts.assets = opts.assets || opts.alias && typeof opts.alias =='object' && opts.alias.$assets || assets;
|
|
8
8
|
opts.base = opts.base || dir;
|
|
9
9
|
opts.withPouchDB = opts.withPouchDB !== false && opts.withPouchdb !== false ? true : false;
|
|
10
10
|
delete opts.withPouchdb;
|
package/metro.config.js
CHANGED
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
const { getDefaultConfig } = require('@expo/metro-config');
|
|
2
2
|
const path = require("path");
|
|
3
|
-
const isCaseSensitive = require("./is-os-case-sensitive");
|
|
4
3
|
module.exports = (opts)=>{
|
|
5
4
|
opts = opts && typeof opts =='object'? opts : {};
|
|
6
|
-
let {dir,
|
|
7
|
-
nodeModulesPaths = Array.isArray(nodeModulesPaths)? nodeModulesPaths : [];
|
|
5
|
+
let {dir,assetExts,sourceExts} = opts;
|
|
8
6
|
assetExts = Array.isArray(assetExts)? assetExts: [];
|
|
9
7
|
sourceExts= Array.isArray(sourceExts)?sourceExts : [];
|
|
10
8
|
dir = dir || path.resolve(__dirname);
|
|
@@ -26,25 +24,5 @@ module.exports = (opts)=>{
|
|
|
26
24
|
...sourceExts,"txt",
|
|
27
25
|
'jsx', 'js','tsx',
|
|
28
26
|
]
|
|
29
|
-
const allNodePaths = [
|
|
30
|
-
path.resolve(projectRoot, 'node_modules'),
|
|
31
|
-
path.resolve(localDir, 'node_modules'),
|
|
32
|
-
...nodeModulesPaths,
|
|
33
|
-
];
|
|
34
|
-
const existingNodesPath= {},nPaths = [];
|
|
35
|
-
allNodePaths.map(p=>{
|
|
36
|
-
if(!p || typeof p !='string') return;
|
|
37
|
-
if(isCaseSensitive){
|
|
38
|
-
p = p.toLocaleLowerCase();
|
|
39
|
-
}
|
|
40
|
-
if(!existingNodesPath[p]){
|
|
41
|
-
existingNodesPath[p] = true;
|
|
42
|
-
nPaths.push(p);
|
|
43
|
-
}
|
|
44
|
-
});
|
|
45
|
-
|
|
46
|
-
config.resolver.nodeModulesPaths = nPaths;
|
|
47
|
-
// 3. Force Metro to resolve (sub)dependencies only from the `nodeModulesPaths`
|
|
48
|
-
config.resolver.disableHierarchicalLookup = true;
|
|
49
27
|
return config;
|
|
50
28
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fto-consult/expo-ui",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.41",
|
|
4
4
|
"description": "Bibliothèque de composants UI Expo,react-native",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -86,7 +86,6 @@
|
|
|
86
86
|
"react-apexcharts": "^1.4.0",
|
|
87
87
|
"react-content-loader": "^6.2.0",
|
|
88
88
|
"react-dom": "18.0.0",
|
|
89
|
-
"react-native": "0.69.6",
|
|
90
89
|
"react-native-big-list": "^1.5.5",
|
|
91
90
|
"react-native-gesture-handler": "~2.5.0",
|
|
92
91
|
"react-native-paper": "^4.12.5",
|