@fto-consult/expo-ui 8.2.3 → 8.4.1

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/App.js CHANGED
@@ -14,4 +14,6 @@ export default function MainExpoApp(props){
14
14
  }}
15
15
  {...props}
16
16
  />
17
- }
17
+ }
18
+
19
+ registerRootComponent(MainExpoApp);
package/bin/create-app.js CHANGED
@@ -11,6 +11,7 @@ module.exports = function(appName,{projectRoot:root}){
11
11
  }
12
12
  root = root && fs.existsSync(path.resolve(root))? path.resolve(root) : process.cwd();
13
13
  const devDependencies = packageObj.devDependencies;
14
+ ["expo"].map((d)=>delete devDependencies[d]);
14
15
  const inSameFolder = typeof mainPackage?.name =="string" && mainPackage?.name.trim().toLowerCase() === name?.toLowerCase().trim();
15
16
  const projectRoot = path.join(`${root}/${!inSameFolder && name || ""}`);
16
17
  createDirSync(projectRoot);
@@ -23,6 +24,8 @@ module.exports = function(appName,{projectRoot:root}){
23
24
  };
24
25
  const euModule = "@fto-consult/expo-ui";
25
26
  let hasUpdateDeps = false;
27
+ const rnModule = "react-native";
28
+ const expoModule = "expo";
26
29
  console.log("creating application name "+name);
27
30
  if(!hasPackage){
28
31
  mainPackage = {
@@ -41,6 +44,8 @@ module.exports = function(appName,{projectRoot:root}){
41
44
  },
42
45
  "dependencies" : {
43
46
  [euModule] : packageObj.version,
47
+ [rnModule] : packageObj.dependencies[rnModule],
48
+ [expoModule] : packageObj.devDependencies[euModule],
44
49
  },
45
50
  devDependencies : devDeps
46
51
  }
@@ -191,9 +196,10 @@ const createAPPJSONFile = (projectRoot,{name,version})=>{
191
196
  appJSONManager.save();
192
197
  }
193
198
  const eas = path.resolve(projectRoot,"eas.json");
194
- if(!fs.existsSync(eas)){
199
+ const cEas = path.resolve(__dirname,"..","eas.json");
200
+ if(!fs.existsSync(eas) && fs.existsSync(cEas)){
195
201
  try {
196
- copy(path.resolve(__dirname,"eas.json"),eas,{overwrite:false})
202
+ copy(cEas,eas,{overwrite:false})
197
203
  } catch{}
198
204
  }
199
205
  return fs.existsSync(appJSONPath);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fto-consult/expo-ui",
3
- "version": "8.2.3",
3
+ "version": "8.4.1",
4
4
  "description": "Bibliothèque de composants UI Expo,react-native",
5
5
  "scripts": {
6
6
  "clear-npx-cache": "npx clear-npx-cache",
@@ -86,7 +86,6 @@
86
86
  "apexcharts": "^3.45.1",
87
87
  "commander": "^11.1.0",
88
88
  "crypto-browserify": "^3.12.0",
89
- "expo": "^50.0.2",
90
89
  "expo-camera": "~14.0.1",
91
90
  "expo-clipboard": "~5.0.1",
92
91
  "expo-font": "~11.10.2",
@@ -137,6 +136,7 @@
137
136
  "@expo/metro-config": "~0.17.1",
138
137
  "@expo/webpack-config": "^19.0.1",
139
138
  "babel-plugin-inline-dotenv": "^1.7.0",
140
- "babel-plugin-module-resolver": "^5.0.0"
139
+ "babel-plugin-module-resolver": "^5.0.0",
140
+ "expo": "^50.0.2"
141
141
  }
142
142
  }