@fto-consult/expo-ui 6.21.7 → 6.21.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.
- package/babel.config.alias.js +2 -1
- package/find-licenses.js +9 -1
- package/index.js +2 -7
- package/package.json +1 -1
- package/src/screens/Help/About.js +1 -1
package/babel.config.alias.js
CHANGED
|
@@ -79,13 +79,14 @@ module.exports = (opts)=>{
|
|
|
79
79
|
const root = path.resolve(r.$src,"..");
|
|
80
80
|
const nModulePath = fs.existsSync(path.resolve(root,"node_modules")) && path.resolve(root,"node_modules") || fs.existsSync(path.resolve(r.$src,"node_modules")) && path.resolve(r.$src,"node_modules") || path.resolve(projectRoot,"node_modules");
|
|
81
81
|
const nodeModulesPath = fs.existsSync(nModulePath) ? nModulePath : path.resolve(process.cwd(),"node_modules");
|
|
82
|
-
const outputPath = path.resolve(
|
|
82
|
+
const outputPath = path.resolve(nodeModulesPath,"@fto-consult","expo-ui-openlibraries","openLibraries.js");
|
|
83
83
|
r.$nodeModulesPath = r.$enodeModulesPath= nodeModulesPath;
|
|
84
84
|
require("./find-licenses")({
|
|
85
85
|
paths : [root,r["$expo-ui-root-path",path.resolve(process.cwd())]],
|
|
86
86
|
nodeModulesPath : nodeModulesPath,
|
|
87
87
|
outputPath
|
|
88
88
|
});
|
|
89
|
+
r.$eHeloOpenLibrariesPath = outputPath;
|
|
89
90
|
const $assets = r.$assets;
|
|
90
91
|
const $electron = path.resolve(dir,"electron");
|
|
91
92
|
const electronPaths = {
|
package/find-licenses.js
CHANGED
|
@@ -82,7 +82,15 @@ module.exports = (options)=>{
|
|
|
82
82
|
if (a.toLowerCase() > b.toLowerCase()) return 1;
|
|
83
83
|
return 0;
|
|
84
84
|
});
|
|
85
|
-
const
|
|
85
|
+
const packageJSON = require("./package.json");
|
|
86
|
+
const content = {
|
|
87
|
+
[packageJSON.name] : {
|
|
88
|
+
name : packageJSON.name,
|
|
89
|
+
version : packageJSON.version,
|
|
90
|
+
repository : packageJSON.repository,
|
|
91
|
+
homepage : packageJSON.homepage,
|
|
92
|
+
}
|
|
93
|
+
};
|
|
86
94
|
for(let i in s){
|
|
87
95
|
content[s[i]] = openLibraries[s[i]]
|
|
88
96
|
}
|
package/index.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { registerRootComponent } from "expo";
|
|
2
|
-
import { View } from "react-native";
|
|
3
2
|
import App from "./src/App";
|
|
4
3
|
import Provider from "$econtext/Provider";
|
|
5
4
|
const REGISTER_EVENT = "REGISTER-APP-COMPONENT-ROOT";
|
|
@@ -23,9 +22,6 @@ import {isObj} from "$cutils";
|
|
|
23
22
|
*/
|
|
24
23
|
|
|
25
24
|
|
|
26
|
-
///fix bug lié au fait que l'application stuck on splashscreen en environnement mobile
|
|
27
|
-
//!isWeb && registerRootComponent(x=>null);
|
|
28
|
-
|
|
29
25
|
const MainAppEntry = function(mProps){
|
|
30
26
|
const [props,setProps] = useState(propsRef.current);
|
|
31
27
|
const onRegisterProps = (props)=>{
|
|
@@ -43,9 +39,8 @@ const MainAppEntry = function(mProps){
|
|
|
43
39
|
if(!isObj(cProps)) {
|
|
44
40
|
return null;
|
|
45
41
|
}
|
|
46
|
-
const
|
|
47
|
-
|
|
48
|
-
return <Provider {...props} {...rest} swrConfig={isObj(swrConfig) && swrConfig || {}} children={<App init={init} render={render} onMount={onMount} onUnmount={onUnmount} onRender={onRender}/>}/>
|
|
42
|
+
const {onMount,onUnmount,onRender,render,swrConfig,init,...rest} = {...mProps,...cProps};
|
|
43
|
+
return <Provider {...rest} swrConfig={isObj(swrConfig) && swrConfig || {}} children={<App init={init} render={render} onMount={onMount} onUnmount={onUnmount} onRender={onRender}/>}/>
|
|
49
44
|
};
|
|
50
45
|
|
|
51
46
|
export default function registerApp (opts){
|
package/package.json
CHANGED
|
@@ -20,7 +20,7 @@ import getReleaseText from "./getReleaseText";
|
|
|
20
20
|
import appConfig from "$capp/config";
|
|
21
21
|
let openLibraries = null;
|
|
22
22
|
try {
|
|
23
|
-
openLibraries = require("
|
|
23
|
+
openLibraries = require("$eHeloOpenLibrariesPath");
|
|
24
24
|
} catch{
|
|
25
25
|
openLibraries = null;
|
|
26
26
|
}
|