@fto-consult/expo-ui 2.5.2 → 2.5.3

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/babel.config.js CHANGED
@@ -2,6 +2,7 @@ module.exports = function(api,opts) {
2
2
  opts = typeof opts =='object' && opts ? opts : {};
3
3
  ///les chemin vers la variable d'environnement, le chemin du fichier .env,@see : https://github.com/brysgo/babel-plugin-inline-dotenv
4
4
  let environmentPath = opts.environmentPath || opts.envPath;
5
+ //console.log(environmentPath," is envvv ",opts);
5
6
  const path = require("path");
6
7
  const fs = require("fs");
7
8
  const dir = path.resolve(__dirname);
package/index.js CHANGED
@@ -1,12 +1,12 @@
1
1
  import { registerRootComponent } from "expo";
2
- import {AppRegistry, Platform } from 'react-native';
2
+ import {Platform } from 'react-native';
3
3
  import { createRoot } from 'react-dom/client';
4
4
  import appConfig from "$capp/config";
5
5
  import { activateKeepAwake } from 'expo-keep-awake';
6
6
  if (__DEV__) {
7
7
  activateKeepAwake();
8
8
  }
9
-
9
+ const isWeb = Platform.OS === "web";
10
10
  /**** initialise l'application expoUI avec les paramètres de configuration
11
11
  * les options sont de la forme :
12
12
  * {
@@ -17,10 +17,13 @@ export default function ExpoUIApp (options){
17
17
  options = options && typeof options =='object' && !Array.isArray(options)? options : {};
18
18
  appConfig.current = options.config;
19
19
  const App = require('./src/App').default(options);
20
- if (false && Platform.OS === "web") {
20
+ if (false) {
21
21
  const root = createRoot(document.getElementById("root") || document.getElementById("main"));
22
- root.render(<App />);
23
22
  } else {
23
+ console.log("registring compddd");
24
24
  registerRootComponent(App);
25
25
  }
26
- }
26
+ }
27
+
28
+ ///fix bug lié au fait que l'application stuck on splashscreen en environnement mobile
29
+ !isWeb && registerRootComponent(x=>null);
package/package.json CHANGED
@@ -1,8 +1,11 @@
1
1
  {
2
2
  "name": "@fto-consult/expo-ui",
3
- "version": "2.5.2",
3
+ "version": "2.5.3",
4
4
  "description": "Bibliothèque de composants UI Expo,react-native",
5
5
  "main": "index.js",
6
+ "resolutions": {
7
+ "@expo/cli": "xxx"
8
+ },
6
9
  "scripts": {
7
10
  "publish1": "npm publish --access=public",
8
11
  "unpublish": "npm -f unpublish @fto-consult/expo-ui",
@@ -62,7 +65,7 @@
62
65
  "@expo/html-elements": "^0.2.0",
63
66
  "@expo/metro-config": "^0.4.0",
64
67
  "@expo/webpack-config": "^0.17.2",
65
- "@fto-consult/common": "^1.12.2",
68
+ "@fto-consult/common": "^1.12.3",
66
69
  "@gorhom/portal": "^1.0.14",
67
70
  "@react-native-async-storage/async-storage": "~1.17.3",
68
71
  "@react-native-community/datetimepicker": "6.5.2",