@fto-consult/expo-ui 1.2.0 → 1.2.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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fto-consult/expo-ui",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.1",
|
|
4
4
|
"description": "Bibliothèque de composants UI Expo,react-native",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"@expo/html-elements": "^0.2.0",
|
|
62
62
|
"@expo/metro-config": "^0.4.0",
|
|
63
63
|
"@expo/webpack-config": "^0.17.2",
|
|
64
|
-
"@fto-consult/common": "^1.3.
|
|
64
|
+
"@fto-consult/common": "^1.3.1",
|
|
65
65
|
"@gorhom/portal": "^1.0.14",
|
|
66
66
|
"@react-native-async-storage/async-storage": "~1.17.3",
|
|
67
67
|
"@react-native-community/datetimepicker": "6.2.0",
|
|
@@ -98,7 +98,7 @@ const DialogComponent = React.forwardRef((props,ref)=>{
|
|
|
98
98
|
context.isClosed = x=> !visible ? true : false;
|
|
99
99
|
const isDimissable = defaultBool(dismissable,false);
|
|
100
100
|
const handleBack = (args,force)=>{
|
|
101
|
-
args = {...React.getOnPressArgs(args),context,props};
|
|
101
|
+
args = {...React.getOnPressArgs(args),isProvider,isFullScreen:isFullScreenDialog(),isPreloader,context,props};
|
|
102
102
|
if(typeof onBackActionPress =='function' && onBackActionPress(args) === false) return true;
|
|
103
103
|
if(typeof backActionProps.onPress =='function' && backActionProps.onPress(args)=== false) return true;
|
|
104
104
|
if(force === false && !isDimissable) return true;
|
|
@@ -7,8 +7,8 @@ import Checkbox from "./Checkbox";
|
|
|
7
7
|
//import PieceField from "./PieceField";
|
|
8
8
|
import Slider from "./Slider";
|
|
9
9
|
import ColorPicker from "./Color";
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
import Date from "./Date";
|
|
11
|
+
import Time from "./Time";
|
|
12
12
|
import Image from "./Image";
|
|
13
13
|
import Tel from "./Tel";
|
|
14
14
|
import SelectCountry from "./SelectCountry";
|
|
@@ -25,8 +25,8 @@ export default {
|
|
|
25
25
|
//,PieceField
|
|
26
26
|
,Slider
|
|
27
27
|
,ColorPicker
|
|
28
|
-
|
|
29
|
-
|
|
28
|
+
,Date
|
|
29
|
+
,Time
|
|
30
30
|
,Image
|
|
31
31
|
,Tel
|
|
32
32
|
,Html
|
|
@@ -44,8 +44,8 @@ export {
|
|
|
44
44
|
,Slider
|
|
45
45
|
,ColorPicker
|
|
46
46
|
,ColorPicker as Color
|
|
47
|
-
|
|
48
|
-
|
|
47
|
+
,Date
|
|
48
|
+
,Time
|
|
49
49
|
,Image
|
|
50
50
|
,Tel
|
|
51
51
|
,Html
|
|
@@ -75,7 +75,7 @@ export default class FormDataActionComponent extends FormData {
|
|
|
75
75
|
}
|
|
76
76
|
return this.close();
|
|
77
77
|
}
|
|
78
|
-
if(this.showConfirmOnCancel()){
|
|
78
|
+
if(this.showConfirmOnCancel() && (args.isProvider!==true && !args.isFullScreen)){
|
|
79
79
|
showConfirm({
|
|
80
80
|
title : defaultStr(this.getConfirmTitle(),'Annuler L\'opération en cours'),
|
|
81
81
|
message : "Voulez vous annuler l'opération en cours?",
|
package/src/index.js
CHANGED
|
@@ -99,7 +99,9 @@ function App(props) {
|
|
|
99
99
|
const unsubscribeNetInfo = NetInfo.addEventListener(state => {
|
|
100
100
|
APP.setOnlineState(state);
|
|
101
101
|
});
|
|
102
|
-
NetInfo.fetch().catch((e)=>{
|
|
102
|
+
NetInfo.fetch().catch((e)=>{
|
|
103
|
+
console.log(e," is net info heinn")
|
|
104
|
+
});
|
|
103
105
|
init().then(()=>{
|
|
104
106
|
if(Auth.isLoggedIn()){
|
|
105
107
|
Auth.loginUser(false);
|