@fto-consult/expo-ui 6.64.10 → 6.64.11
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/bin/create-app/App.js +4 -4
- package/bin/create-app.js +6 -1
- package/package.json +1 -1
package/bin/create-app/App.js
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
import ExpoUIProvider from "$expo-ui";
|
2
|
-
import screens from "
|
3
|
-
import drawerItems from "
|
4
|
-
import Logo from "
|
5
|
-
import drawerSections from "
|
2
|
+
import screens from "$screens";
|
3
|
+
import drawerItems from "$navigation/drawerItems";
|
4
|
+
import Logo from "$components/Logo";
|
5
|
+
import drawerSections from "$navigation/drawerSections";
|
6
6
|
|
7
7
|
export default function AppMainEntry(){
|
8
8
|
return <ExpoUIProvider
|
package/bin/create-app.js
CHANGED
@@ -103,7 +103,12 @@ const createEntryFile = (projectRoot)=>{
|
|
103
103
|
const createAPPJSONFile = (projectRoot,{name,version})=>{
|
104
104
|
version = version ||"1.0.0";
|
105
105
|
copy(path.join(getAppDir(),"assets"),path.resolve(projectRoot,"assets"),{overwrite:false}).catch((e)=>{});
|
106
|
-
|
106
|
+
const gP = path.resolve(projectRoot,".gitignore"), gSpath = fs.existsSync(path.join(getAppDir(),".gitignore")) ;
|
107
|
+
if(fs.existsSync(gSpath) && !fs.existsSync(gP)){
|
108
|
+
try {
|
109
|
+
writeFile(gP,fs.readFileSync(gSpath));
|
110
|
+
} catch{};
|
111
|
+
}
|
107
112
|
const appJSONPath = path.join(projectRoot,"app.json");
|
108
113
|
if(!fs.existsSync(appJSONPath)){
|
109
114
|
writeFile(appJSONPath,`
|