@fto-consult/expo-ui 1.3.0 → 1.3.2
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.3.
|
|
3
|
+
"version": "1.3.2",
|
|
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.5.
|
|
64
|
+
"@fto-consult/common": "^1.5.2",
|
|
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
|
@@ -182,8 +182,10 @@ export default function LoginComponent(props){
|
|
|
182
182
|
style = {[styles.formData,{backgroundColor}]}
|
|
183
183
|
header = {<View style = {[styles.header]}>
|
|
184
184
|
<Avatar testID={testID+"_Avatar"} size={50} secondary icon = 'lock'/>
|
|
185
|
-
|
|
186
|
-
|
|
185
|
+
{
|
|
186
|
+
React.isValidElement(header)? header :
|
|
187
|
+
<Label testID={testID+"_HeaderText"} bool style={{color:theme.colors.primaryOnSurface,fontSize:18,paddingTop:10}}>Connectez vous SVP</Label>
|
|
188
|
+
}
|
|
187
189
|
</View>}
|
|
188
190
|
responsive = {false}
|
|
189
191
|
{...loginProps}
|
|
@@ -46,6 +46,7 @@ const DrawerNavigator = React.forwardRef(({content,children,state,...props},ref)
|
|
|
46
46
|
if(prevIsLoggedIn === isLoggedIn) return;
|
|
47
47
|
navigate("Home");
|
|
48
48
|
},[isLoggedIn]);
|
|
49
|
+
console.log(isLoggedIn," is loggggedd in ddd",isAuthLoggedIn)
|
|
49
50
|
if(!isLoggedIn) {
|
|
50
51
|
return <Login withPortal
|
|
51
52
|
onSuccess = {(data)=>{
|