@fto-consult/expo-ui 6.64.13 → 6.64.14
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.
@@ -5,7 +5,7 @@ module.exports = function(api) {
|
|
5
5
|
const alias = {
|
6
6
|
$src,
|
7
7
|
$component : path.resolve($src,"component"),
|
8
|
-
$navigation : path.
|
8
|
+
$navigation : path.resolve($src,"navigation"),
|
9
9
|
$screens : path.resolve($src,"screens"),
|
10
10
|
//...your custom module resolver alias, @see : https://www.npmjs.com/package/babel-plugin-module-resolver
|
11
11
|
}
|
@@ -1,4 +1,14 @@
|
|
1
1
|
|
2
|
+
/*** here you can export list of main drawerItems,
|
3
|
+
[key1] : {
|
4
|
+
label{string|ReactNode} : drawerLabel1,
|
5
|
+
routeName {string}, drawer routeName
|
6
|
+
routeParams {object}, list of custom params to pass to the navignation route,
|
7
|
+
icon {string|ReactNode}, icon,
|
8
|
+
left {function|string|ReactNode}, drawerItemLeft
|
9
|
+
right {function|string|ReactNode}, drawerItemRight,
|
10
|
+
}
|
11
|
+
*/
|
2
12
|
export default {
|
3
13
|
|
4
14
|
}
|
package/bin/create-app.js
CHANGED
@@ -103,10 +103,10 @@ 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
|
-
const gP = path.resolve(projectRoot,".gitignore")
|
107
|
-
if(
|
106
|
+
const gP = path.resolve(projectRoot,".gitignore") ;
|
107
|
+
if(!fs.existsSync(gP)){
|
108
108
|
try {
|
109
|
-
writeFile(gP,
|
109
|
+
writeFile(gP,gitignore);
|
110
110
|
} catch{};
|
111
111
|
}
|
112
112
|
const appJSONPath = path.join(projectRoot,"app.json");
|
@@ -153,4 +153,39 @@ const createAPPJSONFile = (projectRoot,{name,version})=>{
|
|
153
153
|
writeFile(appJSONPath,JSON.stringify(appJSON,null, 2));
|
154
154
|
}
|
155
155
|
return fs.existsSync(appJSONPath);
|
156
|
-
}
|
156
|
+
}
|
157
|
+
|
158
|
+
const gitignore = `
|
159
|
+
node_modules/
|
160
|
+
|
161
|
+
# Expo
|
162
|
+
.expo/
|
163
|
+
dist/
|
164
|
+
web-build/
|
165
|
+
|
166
|
+
# Native
|
167
|
+
*.orig.*
|
168
|
+
*.jks
|
169
|
+
*.p8
|
170
|
+
*.p12
|
171
|
+
*.key
|
172
|
+
*.mobileprovision
|
173
|
+
|
174
|
+
# Metro
|
175
|
+
.metro-health-check*
|
176
|
+
|
177
|
+
# debug
|
178
|
+
npm-debug.*
|
179
|
+
yarn-debug.*
|
180
|
+
yarn-error.*
|
181
|
+
|
182
|
+
# macOS
|
183
|
+
.DS_Store
|
184
|
+
*.pem
|
185
|
+
|
186
|
+
# local env files
|
187
|
+
.env*.local
|
188
|
+
|
189
|
+
# typescript
|
190
|
+
*.tsbuildinfo
|
191
|
+
`
|