@fto-consult/expo-ui 1.3.5 → 1.3.7

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.5",
3
+ "version": "1.3.7",
4
4
  "description": "Bibliothèque de composants UI Expo,react-native",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -13,7 +13,7 @@ import PropTypes from "prop-types";
13
13
  /**
14
14
  * update by @borisFouomene. for usage, @see : https://callstack.github.io/react-native-paper/drawer-item.html
15
15
  */
16
- const DrawerItem = ({icon,iconProps,borderRadius,color,minimized,contentContainerProps,labelProps,contentProps,label,
16
+ const DrawerItem = ({icon,iconProps,borderRadius,color,minimized,contentContainerProps,labelProps,contentProps,label,text,
17
17
  active,style,onPress,accessibilityLabel,isExpandable,right,divider, dividerProps,
18
18
  testID,
19
19
  left,
@@ -30,7 +30,7 @@ const DrawerItem = ({icon,iconProps,borderRadius,color,minimized,contentContaine
30
30
  contentProps = defaultObj(contentProps);
31
31
  labelProps = defaultObj(labelProps);
32
32
  iconProps = defaultObj(iconProps);
33
- label = defaultVal(label,children);
33
+ label = defaultVal(label,text,children);
34
34
  if(!label && !icon) return null;
35
35
  const rProps = {};
36
36
  if(active){
@@ -49,7 +49,7 @@ const UserProfileAvatarComponent = React.forwardRef(({drawerRef,...props},ref)=>
49
49
  }
50
50
  ];
51
51
  let pseudo = defaultStr(u.code,u.pseudo,u.email)
52
- const label = defaultStr(u.label,u.name,u.fullName,u.userName,user.email)
52
+ const label = defaultStr(u.label,u.name,u.fullName,u.userName,u.email)
53
53
  //let pT = pseudo;
54
54
  //pseudo = <Tooltip uppserCase={false} title={defaultStr(u.label)+" ["+pseudo+"]"}>{pT}</Tooltip>;
55
55
  return <View ref ={ref}>