@fto-consult/expo-ui 6.18.6 → 6.18.8

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/bin/index.js CHANGED
@@ -4,11 +4,13 @@
4
4
  process.on('unhandledRejection', err => {
5
5
  throw err;
6
6
  });
7
+ const createAppScript = "create-app";
7
8
  const supportedScript = {
8
9
  "init" : true, //initialize electron app
9
10
  "start" : true,//start electron
10
- "build" : true, //script pour faire un build
11
+ "build" : true, //script pour faire un build,
11
12
  "package" : true, ///script pour le packagin de l'application
13
+ createAppScript : true,//les script de création de l'application
12
14
  }
13
15
  const createDir = require("../electron/utils/createDir");
14
16
  const writeFile = require("../electron/utils/writeFile");
@@ -24,6 +26,7 @@ if(projectRoot == dir){
24
26
  }
25
27
 
26
28
  const parsedArgs = require("../electron/utils/parseArgs")(null,supportedScript);
29
+ parsedArgs.script = typeof parsedArgs.script =='string' && parsedArgs.script && parsedArgs.script.toLowerCase().trim() || "";
27
30
  if(!parsedArgs.script || !(parsedArgs.script in supportedScript)){
28
31
  console.error ("Erreur : script invalide, vous devez spécifier script figurant parmi les script : ["+Object.keys(supportedScript).join(", ")+"]");
29
32
  process.exit();
@@ -149,5 +152,8 @@ if(parsedArgs.electron){
149
152
  process.exit();
150
153
  });
151
154
  } else {
155
+ if(script ===createAppScript){
156
+ console.log(createAppScript," is script ",parsedArgs," is parse arrrrrr");
157
+ }
152
158
  process.exit();
153
159
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fto-consult/expo-ui",
3
- "version": "6.18.6",
3
+ "version": "6.18.8",
4
4
  "description": "Bibliothèque de composants UI Expo,react-native",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/src/App.js CHANGED
@@ -5,7 +5,7 @@ import {defaultObj} from "$cutils";
5
5
  import Index from './index';
6
6
  import notify from "$notify";
7
7
  import { SafeAreaProvider } from 'react-native-safe-area-context';
8
- //import {GestureHandlerRootView} from "react-native-gesture-handler";
8
+ import {GestureHandlerRootView} from "react-native-gesture-handler";
9
9
  import APP from "$app";
10
10
  import {isMobileNative} from "$cplatform";
11
11
  import {setDeviceIdRef} from "$capp";
@@ -139,9 +139,11 @@ export default function getIndex({onMount,onUnmount,render,onRender,init}){
139
139
  }
140
140
  }}
141
141
  >
142
+ <GestureHandlerRootView style={{ flex: 1,flexGrow:1,flexShrink:1}} testID={"RN_GestureHandlerRootView"}>
142
143
  <SafeAreaProvider>
143
144
  <Index onMount={onMount} render={render} onUnmount={onUnmount} onRender={onRender} init={init}/>
144
145
  </SafeAreaProvider>
146
+ </GestureHandlerRootView>
145
147
  </SWRConfig>
146
148
  );
147
149
  };
@@ -7,9 +7,7 @@ import PropTypes from "prop-types";
7
7
  import React from "$react";
8
8
  import theme from "$theme"
9
9
  import {styles as rStyles} from "../utils";
10
- import {getSelectedBackgroundColor} from "../Actions/Header";
11
10
  import Swipeable from 'react-native-gesture-handler/Swipeable';
12
- import {isMobileNative} from "$platform";
13
11
 
14
12
  const DatagridAccordionRow = React.forwardRef((props,ref)=>{
15
13
  const {selectable,rowKey,