@fto-consult/expo-ui 1.2.8 → 1.2.10

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.8",
3
+ "version": "1.2.10",
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.4.4",
64
+ "@fto-consult/common": "^1.4.5",
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",
package/src/auth/Login.js CHANGED
@@ -85,7 +85,7 @@ export default function LoginComponent(props){
85
85
  },1000)
86
86
  }
87
87
  },[withPortal])
88
- const {header,children,initialize,contentTop,data:loginData,canGoToNext,keyboardEvents,onSuccess:onLoginSuccess,canSubmit:canSubmitForm,onStepChange,...loginProps} = defaultObj(getProps({
88
+ const {header,children,initialize,autoClosePreloader,contentTop,data:loginData,canGoToNext,keyboardEvents,onSuccess:onLoginSuccess,canSubmit:canSubmitForm,onStepChange,...loginProps} = defaultObj(getProps({
89
89
  ...state,
90
90
  setState,
91
91
  state,
@@ -100,11 +100,11 @@ export default function LoginComponent(props){
100
100
  previousButtonRef,
101
101
  }));
102
102
  React.useEffect(()=>{
103
+ Preloader.closeAll();
103
104
  /*** pour initializer les cordonnées du composant login */
104
105
  if(typeof initialize =='function'){
105
106
  initialize();
106
107
  }
107
- Preloader.closeAll();
108
108
  },[]);
109
109
  const prevStep = React.usePrevious(state.step);
110
110
  React.useEffect(()=>{