@fto-consult/expo-ui 6.83.1 → 6.83.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": "6.83.1",
3
+ "version": "6.83.2",
4
4
  "description": "Bibliothèque de composants UI Expo,react-native",
5
5
  "main": "main",
6
6
  "scripts": {
@@ -1,3 +1,7 @@
1
+ /*****
2
+ si la props items est une fonction, alors elle ne doit en aucun cas retourner une promesse,
3
+ mais surtout un tableau un un objet
4
+ */
1
5
  import PropTypes from "prop-types";
2
6
  import View from "$ecomponents/View";
3
7
  import {Dimensions,Pressable,StyleSheet,Animated,} from "react-native";
@@ -794,7 +798,8 @@ class DropdownComponent extends AppComponent {
794
798
  }
795
799
  let menuActions = [];
796
800
  Object.map(dropdownActions,(action,index)=>{
797
- if(!isObj(action) || (!action.text)) return;
801
+ if(!isObj(action) || (!action.text && !!action.label)) return;
802
+ action.text = defaultVal(action.text,action.label);
798
803
  menuActions.push(action);
799
804
  });
800
805
  if(this.isSortable()){