@fto-consult/expo-ui 1.5.6 → 1.5.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.5.
|
|
3
|
+
"version": "1.5.7",
|
|
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.9.
|
|
64
|
+
"@fto-consult/common": "^1.9.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",
|
|
@@ -59,7 +59,7 @@ class DropdownComponent extends AppComponent {
|
|
|
59
59
|
if(React.isValidElement(item,true) || isDecimal(item) || typeof item =='boolean') return item;
|
|
60
60
|
if(isObj(item) ) {
|
|
61
61
|
const itemLabel = this.props.itemLabel;
|
|
62
|
-
if(isNonNullString(itemLabel) && item.hasOwnProperty(itemLabel)) return item[itemLabel];
|
|
62
|
+
if(isNonNullString(itemLabel) && item.hasOwnProperty(itemLabel)) return defaultStr(item[itemLabel]);
|
|
63
63
|
if(isNonNullString(item.label)) return item.label;
|
|
64
64
|
return defaultStr(item.text,item[index]);
|
|
65
65
|
}
|