@fto-consult/expo-ui 8.4.8 → 8.5.0

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,3 +1,6 @@
1
+ import 'react-native-gesture-handler';//please do not remove this line
2
+ import "$session";//please do not remove this line
3
+ import { registerRootComponent } from 'expo';
1
4
  import ExpoUIProvider from "$expo-ui";
2
5
  import screens from "$screens";
3
6
  import drawerItems from "$navigation/drawerItems";
@@ -89,4 +92,6 @@ export default function AppMainEntry(){
89
92
 
90
93
  handleHelpScreen ={true} //si l'écran d'aide sera pris en compte, l'écran d'aide ainsi que les écrans des termes d'utilisations et autres
91
94
  />
92
- }
95
+ }
96
+
97
+ registerRootComponent(AppMainEntry);
@@ -0,0 +1,34 @@
1
+ module.exports = {
2
+ "@emotion/native": "^11.11.0",
3
+ "@expo/html-elements": "^0.5.1",
4
+ "@expo/vector-icons": "^14.0.0",
5
+ "@pchmn/expo-material3-theme": "^1.3.2",
6
+ "@react-native-community/datetimepicker": "7.6.1",
7
+ "@react-native-community/netinfo": "11.1.0",
8
+ "@react-native/assets-registry": "^0.72.0",
9
+ "@react-navigation/native": "^6.1.9",
10
+ "@react-navigation/native-stack": "^6.9.17",
11
+ "@react-navigation/stack": "^6.3.20",
12
+ "@shopify/flash-list": "1.6.3",
13
+ "expo": "^50.0.2",
14
+ "expo-camera": "~14.0.1",
15
+ "expo-clipboard": "~5.0.1",
16
+ "expo-font": "~11.10.2",
17
+ "expo-image-picker": "~14.7.1",
18
+ "expo-linking": "~6.2.2",
19
+ "expo-sharing": "~11.10.0",
20
+ "expo-sqlite": "~13.2.1",
21
+ "expo-status-bar": "~1.11.1",
22
+ "expo-system-ui": "~2.9.3",
23
+ "expo-web-browser": "~12.8.1",
24
+ "react-native": "0.73.2",
25
+ "@react-native-async-storage/async-storage": "1.21.0",
26
+ "react-native-big-list": "^1.6.1",
27
+ "react-native-blob-util": "^0.18.6",
28
+ "react-native-safe-area-context": "4.8.2",
29
+ "react-native-screens": "~3.29.0",
30
+ "react-native-svg": "14.1.0",
31
+ "react-native-webview": "13.6.4",
32
+ "react-native-gesture-handler": "~2.14.0",
33
+ "react-native-reanimated": "~3.6.0"
34
+ }
package/bin/create-app.js CHANGED
@@ -1,6 +1,7 @@
1
1
  const {exec,thowError,copy,writeFile,createDirSync,FILE:{sanitizeFileName},JSONFileManager} = require("./utils");
2
2
  const fs = require("fs"), path = require("path");
3
3
  const getAppDir = x=>path.resolve(__dirname,"create-app");
4
+ const mainAppDependencies = require("./create-app/dependencies");
4
5
  module.exports = function(appName,{projectRoot:root}){
5
6
  const packageObj = require("../package.json");
6
7
  root = root && fs.existsSync(root) && root || process.cwd();
@@ -24,7 +25,6 @@ module.exports = function(appName,{projectRoot:root}){
24
25
  delete devDeps.expo
25
26
  const euModule = "@fto-consult/expo-ui";
26
27
  let hasUpdateDeps = false;
27
- const rnModule = "react-native";
28
28
  console.log("creating application name "+name);
29
29
  if(!hasPackage){
30
30
  mainPackage = {
@@ -32,7 +32,7 @@ module.exports = function(appName,{projectRoot:root}){
32
32
  version : "1.0.0",
33
33
  "description": "",
34
34
  "main": "index.js",
35
- "main": "node_modules/expo/AppEntry.js",
35
+ "main": "App.js",
36
36
  "scripts" : {
37
37
  start : "npx expo start -c",
38
38
  "dev" : "npx expo start --no-dev --minify -c",
@@ -43,10 +43,7 @@ module.exports = function(appName,{projectRoot:root}){
43
43
  },
44
44
  "dependencies" : {
45
45
  [euModule] : packageObj.version,
46
- "expo" : packageObj.devDependencies.expo,
47
- [rnModule] : packageObj.dependencies[rnModule],
48
- "react-native-reanimated" : "latest",
49
- "react-native-gesture-handler" : "latest",
46
+ ...mainAppDependencies,
50
47
  },
51
48
  devDependencies : devDeps
52
49
  }
@@ -78,9 +75,14 @@ module.exports = function(appName,{projectRoot:root}){
78
75
  });
79
76
  createAPPJSONFile(projectRoot,{...mainPackage,name});
80
77
  createEntryFile(projectRoot);
78
+ console.log(projectRoot," is project root");
81
79
  copy(path.resolve(getAppDir(),"src"),path.resolve(projectRoot,"src"),{recursive:true,overwrite:false});
82
80
  console.log("installing dependencies ...");
83
- return exec(`npx expo install --fix`,{projectRoot}).finally(()=>{
81
+ return new Promise((resolve,reject)=>{
82
+ return exec(`npm install`,{projectRoot}).then(resolve).catch(resolve);
83
+ }).then(()=>{
84
+ return exec('npx expo install --fix',{projectRoot})
85
+ }).finally(()=>{
84
86
  setTimeout(()=>{
85
87
  console.log("application ready");
86
88
  process.exit();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fto-consult/expo-ui",
3
- "version": "8.4.8",
3
+ "version": "8.5.0",
4
4
  "description": "Bibliothèque de composants UI Expo,react-native",
5
5
  "scripts": {
6
6
  "clear-npx-cache": "npx clear-npx-cache",
@@ -47,7 +47,8 @@
47
47
  "delete-node-modules": "rimraf ./**/node_modules",
48
48
  "dev": "npx expo start --no-dev --minify -c",
49
49
  "modifier-url-remote-git": "git remote set-url origin 'https://borispipo@github.com/borispipo/smart-eneo.git'",
50
- "update": "npm i @fto-consult/node-utils@latest expo @emotion/native@latest react-native-big-list@latest apexcharts@latest file-saver@latest google-libphonenumber@latest @pchmn/expo-material3-theme@latest @emotion/native@latest @fto-consult/common@latest @react-navigation/stack react-native-blob-util react-native-iphone-x-helper@latest react-native-mime-types@latest react-native-paper@5 react-native-paper-dates@latest @react-navigation/native@latest @react-navigation/native-stack@latest react-virtuoso@latest tippy.js@latest websql@latest xlsx@latest react-native-web@latest react-dom@latest && npx expo install --fix && npm run update-apexchart && npm run find-licenses"
50
+ "update-app": "expo @emotion/native@latest react-native-big-list@latest @pchmn/expo-material3-theme@latest @emotion/native@latest @react-navigation/stack react-native-blob-util @react-navigation/native@latest @react-navigation/native-stack@latest && npx expo install --fix",
51
+ "update": "npm i @fto-consult/node-utils@latest apexcharts@latest file-saver@latest google-libphonenumber@latest @fto-consult/common@latest react-native-iphone-x-helper@latest react-native-mime-types@latest react-native-paper@5 react-native-paper-dates@latest react-virtuoso@latest tippy.js@latest websql@latest xlsx@latest react-native-web@latest react-dom@latest react-native-get-random-values@latest && npm run update-apexchart && npm run find-licenses"
51
52
  },
52
53
  "bin": {
53
54
  "expo-ui": "./bin/index.js"
@@ -67,64 +68,34 @@
67
68
  },
68
69
  "homepage": "https://github.com/borispipo/expo-ui#readme",
69
70
  "dependencies": {
70
- "@emotion/native": "^11.11.0",
71
71
  "@emotion/react": "^11.11.1",
72
- "@expo/html-elements": "^0.5.1",
73
- "@expo/vector-icons": "^14.0.0",
74
72
  "@faker-js/faker": "^8.0.2",
75
- "@fto-consult/common": "^4.11.0",
73
+ "@fto-consult/common": "^4.11.1",
76
74
  "@fto-consult/node-utils": "^1.4.7",
77
- "@pchmn/expo-material3-theme": "^1.3.2",
78
- "@react-native-community/datetimepicker": "7.6.1",
79
- "@react-native-community/netinfo": "11.1.0",
80
- "@react-native/assets-registry": "^0.72.0",
81
- "@react-navigation/native": "^6.1.9",
82
- "@react-navigation/native-stack": "^6.9.17",
83
- "@react-navigation/stack": "^6.3.20",
84
- "@shopify/flash-list": "1.6.3",
85
- "apexcharts": "^3.45.1",
75
+ "apexcharts": "^3.45.2",
86
76
  "commander": "^11.1.0",
87
77
  "crypto-browserify": "^3.12.0",
88
- "expo-camera": "~14.0.1",
89
- "expo-clipboard": "~5.0.1",
90
- "expo-font": "~11.10.2",
91
- "expo-image-picker": "~14.7.1",
92
- "expo-linking": "~6.2.2",
93
- "expo-sharing": "~11.10.0",
94
- "expo-sqlite": "~13.2.1",
95
- "expo-status-bar": "~1.11.1",
96
- "expo-system-ui": "~2.9.3",
97
- "expo-web-browser": "~12.8.1",
98
78
  "file-saver": "^2.0.5",
99
79
  "google-libphonenumber": "^3.2.34",
100
80
  "htmlparser2-without-node-native": "^3.9.2",
101
81
  "is-plain-obj": "^4.1.0",
102
82
  "js-base64": "^3.7.5",
103
- "process": "^0.11.10",
104
83
  "prop-types": "^15.8.1",
105
84
  "react": "^18.2.0",
106
85
  "react-content-loader": "^6.2.1",
107
86
  "react-dom": "^18.2.0",
108
- "react-native": "0.73.2",
109
- "react-native-big-list": "^1.6.1",
110
- "react-native-blob-util": "^0.18.6",
111
- "react-native-get-random-values": "~1.8.0",
87
+ "react-native-get-random-values": "^1.10.0",
112
88
  "react-native-iphone-x-helper": "^1.3.1",
113
89
  "react-native-mime-types": "^2.4.0",
114
90
  "react-native-paper": "^5.12.1",
115
91
  "react-native-paper-dates": "^0.21.7",
116
- "react-native-safe-area-context": "4.8.2",
117
- "react-native-screens": "~3.29.0",
118
- "react-native-svg": "14.1.0",
119
92
  "react-native-web": "^0.19.10",
120
- "react-native-webview": "13.6.4",
121
93
  "react-virtuoso": "^4.6.2",
122
94
  "readable-stream": "^4.5.2",
123
95
  "sanitize-filename": "^1.6.3",
124
96
  "sharp-cli": "^2.1.0",
125
97
  "stream-browserify": "^3.0.0",
126
98
  "tippy.js": "^6.3.7",
127
- "uninstall": "^0.0.0",
128
99
  "websql": "^2.0.3",
129
100
  "xlsx": "^0.18.5"
130
101
  },