@fto-consult/expo-ui 6.18.36 → 6.18.37
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.
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import registerApp from "$expo-ui-root-path";
|
|
2
|
+
import screens from "./src/screens";
|
|
2
3
|
registerApp({
|
|
3
4
|
/**** application navigation */
|
|
4
5
|
navigation : {
|
|
5
|
-
|
|
6
|
+
//all application screeens
|
|
7
|
+
screens,
|
|
6
8
|
drawerItems : [], //application main drawer items
|
|
7
9
|
},
|
|
8
10
|
/**application components */
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import Screen from "$eScreen";
|
|
2
|
+
import Label from "$ecomponents/Label";
|
|
3
|
+
import { StyleSheet } from "react-native-web";
|
|
4
|
+
export default function HomeScreen(props){
|
|
5
|
+
return <Screen style={[styles.container]}>
|
|
6
|
+
<Label style={[styles.label]}>Hello world</Label>
|
|
7
|
+
</Screen>
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
HomeScreen.name = "Home";
|
|
11
|
+
HomeScreen.Modal = false;
|
|
12
|
+
HomeScreen.authRequired = false;
|
|
13
|
+
|
|
14
|
+
const styles = StyleSheet.create({
|
|
15
|
+
container : {
|
|
16
|
+
flex : 1,
|
|
17
|
+
justifyContent :"center",
|
|
18
|
+
alignItems : "center",
|
|
19
|
+
},
|
|
20
|
+
label : {
|
|
21
|
+
fontSize : 16,
|
|
22
|
+
fontWeight : "bold",
|
|
23
|
+
}
|
|
24
|
+
});
|
package/bin/create-app.js
CHANGED
|
@@ -31,6 +31,7 @@ module.exports = function(parsedArgs,{projectRoot}){
|
|
|
31
31
|
}
|
|
32
32
|
});
|
|
33
33
|
createAPPJSONFile(projectRoot,{...mainPackage,name});
|
|
34
|
+
copy(path.resolve(createAppDir,"src"),path.resolve(projectRoot,"src"),{recursive:true,overwrite:false});
|
|
34
35
|
process.exit();
|
|
35
36
|
});
|
|
36
37
|
}
|
|
@@ -47,7 +48,7 @@ const createEntryFile = (projectRoot)=>{
|
|
|
47
48
|
|
|
48
49
|
const createAPPJSONFile = (projectRoot,{name,version})=>{
|
|
49
50
|
version = version ||"1.0.0";
|
|
50
|
-
copy(path.join(createAppDir,"assets"),path.resolve(projectRoot,"assets"));
|
|
51
|
+
copy(path.join(createAppDir,"assets"),path.resolve(projectRoot,"assets"),{overwrite:false});
|
|
51
52
|
const appJSONPath = path.join(projectRoot,"app.json");
|
|
52
53
|
if(!fs.existsSync(appJSONPath)){
|
|
53
54
|
writeFile(appJSONPath,`
|
package/package.json
CHANGED
|
@@ -5,7 +5,7 @@ import PropTypes from "prop-types";
|
|
|
5
5
|
import {defaultObj,defaultStr,defaultNumber,defaultBool,uniqid} from "$cutils";
|
|
6
6
|
import View from "$ecomponents/View";
|
|
7
7
|
import { useNavigation} from '$cnavigation';
|
|
8
|
-
import Fab from "$
|
|
8
|
+
import Fab from "$elayouts/Fab";
|
|
9
9
|
import APP from "$capp";
|
|
10
10
|
import AppBar,{createAppBarRef} from "$elayouts/AppBar";
|
|
11
11
|
import {Portal as RNPortal} from "react-native-paper";
|