@fto-consult/expo-ui 6.64.13 → 6.64.15

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.relative($src,"navigation"),
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"), gSpath = fs.existsSync(path.join(getAppDir(),".gitignore")) ;
107
- if(fs.existsSync(gSpath) && !fs.existsSync(gP)){
106
+ const gP = path.resolve(projectRoot,".gitignore") ;
107
+ if(!fs.existsSync(gP)){
108
108
  try {
109
- writeFile(gP,fs.readFileSync(gSpath));
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
+ `
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fto-consult/expo-ui",
3
- "version": "6.64.13",
3
+ "version": "6.64.15",
4
4
  "description": "Bibliothèque de composants UI Expo,react-native",
5
5
  "main": "main",
6
6
  "scripts": {
@@ -71,7 +71,7 @@
71
71
  "@expo/html-elements": "^0.5.1",
72
72
  "@expo/vector-icons": "^13.0.0",
73
73
  "@faker-js/faker": "^8.0.2",
74
- "@fto-consult/common": "^3.54.2",
74
+ "@fto-consult/common": "^3.54.3",
75
75
  "@pchmn/expo-material3-theme": "^1.3.1",
76
76
  "@react-native-async-storage/async-storage": "1.18.2",
77
77
  "@react-native-community/datetimepicker": "7.2.0",