react-crud-mobile 1.3.234 → 1.3.235

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": "react-crud-mobile",
3
- "version": "1.3.234",
3
+ "version": "1.3.235",
4
4
  "license": "MIT",
5
5
  "description": "Uma biblioteca de componentes para React Native",
6
6
  "main": "dist/index.js",
@@ -581,6 +581,15 @@ export default function UIElement(props: ElementType) {
581
581
  let Card = (props: any) => {
582
582
  let isCard = scope.is('type|layout', 'card');
583
583
 
584
+ if (scope.isType('list')) {
585
+ let empty = scope.getPart('empty', null, undefined);
586
+ let items = scope.getItems();
587
+
588
+ if (empty === false && Utils.isEmpty(items)) {
589
+ isCard = false;
590
+ }
591
+ }
592
+
584
593
  if (isCard) {
585
594
  let box = {
586
595
  ...getStyle('box', { ...boxStyle.box, alignSelf: 'stretch' }),