@fto-consult/expo-ui 6.20.16 → 6.20.18
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 -0
- package/bin/create-app.js +4 -1
- package/index.js +7 -2
- package/package.json +1 -1
- package/src/screens/Help/About.js +1 -1
package/babel.config.alias.js
CHANGED
|
@@ -99,6 +99,7 @@ module.exports = (opts)=>{
|
|
|
99
99
|
//le chemin ver le repertoire electron
|
|
100
100
|
r.$eelectron = r["$e-electron"] = $electron;
|
|
101
101
|
r.$electron = r.$electron || r.$eelectron;
|
|
102
|
+
r.$projectRoot = r.$eprojectRoot = projectRoot;
|
|
102
103
|
r.$econtext = path.resolve(expo,"context");
|
|
103
104
|
if(!r.$context){
|
|
104
105
|
r.$context = r.$econtext;
|
package/bin/create-app.js
CHANGED
|
@@ -31,6 +31,8 @@ module.exports = function(parsedArgs,{projectRoot:root}){
|
|
|
31
31
|
"main": "index.js",
|
|
32
32
|
"scripts" : {
|
|
33
33
|
start : "npx expo start -c",
|
|
34
|
+
"serve-web" : "npx serve web-build --single",
|
|
35
|
+
"build-web" : "npx expo export:web",
|
|
34
36
|
},
|
|
35
37
|
"dependencies" : {
|
|
36
38
|
[euModule] : "latest",
|
|
@@ -117,7 +119,8 @@ const createAPPJSONFile = (projectRoot,{name,version})=>{
|
|
|
117
119
|
}
|
|
118
120
|
},
|
|
119
121
|
"web": {
|
|
120
|
-
"favicon": "./assets/favicon.png"
|
|
122
|
+
"favicon": "./assets/favicon.png",
|
|
123
|
+
"bundler": "metro"
|
|
121
124
|
}
|
|
122
125
|
}
|
|
123
126
|
}
|
package/index.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { registerRootComponent } from "expo";
|
|
2
|
-
import {Platform } from 'react-native';
|
|
2
|
+
import {Platform,AppRegistry } from 'react-native';
|
|
3
|
+
import apConfig from '$capp/config';
|
|
3
4
|
import App from "./src/App";
|
|
4
5
|
import Provider from "$econtext/Provider";
|
|
5
6
|
const isWeb = Platform.OS === "web";
|
|
@@ -17,10 +18,14 @@ const isWeb = Platform.OS === "web";
|
|
|
17
18
|
* }
|
|
18
19
|
*/
|
|
19
20
|
export default function registerApp ({onMount,onUnmount,onRender,render,swrConfig,init,...rest}){
|
|
21
|
+
console.log("will register heeein ",appConfing.name);
|
|
22
|
+
return AppRegistry.registerComponent(appConfing.name,()=>{
|
|
23
|
+
return <Provider {...rest} swrConfig={isObj(swrConfig) && swrConfig || {}} children={<App init={init} render={render} onMount={onMount} onUnmount={onUnmount} onRender={onRender}/>}/>
|
|
24
|
+
});
|
|
20
25
|
return registerRootComponent(function(props){
|
|
21
26
|
return <Provider {...props} {...rest} swrConfig={isObj(swrConfig) && swrConfig || {}} children={<App init={init} render={render} onMount={onMount} onUnmount={onUnmount} onRender={onRender}/>}/>
|
|
22
27
|
});
|
|
23
28
|
}
|
|
24
29
|
|
|
25
30
|
///fix bug lié au fait que l'application stuck on splashscreen en environnement mobile
|
|
26
|
-
|
|
31
|
+
//!isWeb && registerRootComponent(x=>null);
|
package/package.json
CHANGED
|
@@ -62,7 +62,7 @@ export default function HelpScreen(props){
|
|
|
62
62
|
const gridStyles = [{width:40,padding:gridPadding},{width:'60%',padding:gridPadding},{width:60,padding:gridPadding},{width:60,padding:gridPadding}];
|
|
63
63
|
const borderStyle = {borderColor:theme.colors.divider,borderWidth:1,justifyContent:'space-between'};
|
|
64
64
|
const testID = defaultStr(props.testID,"RN_HelpAboutScreenComponent")
|
|
65
|
-
return <Screen withScrollView title={title} {...props} testID={testID+"_Screen"}>
|
|
65
|
+
return <Screen withScrollView title={title} {...props} testID={testID+"_Screen"} contentContainerStyle={[{flex:1},theme.styles.alignItemsCenter,theme.styles.justifyContentCenter]}>
|
|
66
66
|
<View testID={testID+"_Container"} style={[theme.styles.alignItemsCenter,theme.styles.justifyContentCenter,theme.styles.flex1,theme.styles.w100,theme.styles.p1]}>
|
|
67
67
|
<Logo testID={testID+"_Logo"} style={{marginRight:10}}/>
|
|
68
68
|
{getReleaseText()}
|