react-crud-mobile 1.0.608 → 1.0.609

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.
@@ -24,16 +24,6 @@ export default function UIList(props: ChildType) {
24
24
  return scope.getStyle(key, { ...extra, ...styles[key] });
25
25
  };
26
26
 
27
- const getRowStyle = (extra?: any) => {
28
- let row = getStyle('row', {});
29
-
30
- if (cols > 0) {
31
- row.width = rowWidth;
32
- }
33
-
34
- return row;
35
- };
36
-
37
27
  const getContainerStyle = (extra?: any) => {
38
28
  let row = getStyle('container', {});
39
29
 
@@ -84,6 +74,16 @@ export default function UIList(props: ChildType) {
84
74
  };
85
75
 
86
76
  let RowItem = ({ item, index, children }) => {
77
+ const getRowStyle = () => {
78
+ let row = scope.getStyle('row', { ...styles.row });
79
+
80
+ if (cols > 0) {
81
+ row.width = rowWidth;
82
+ }
83
+
84
+ return row;
85
+ };
86
+
87
87
  if (!original.click) {
88
88
  return (
89
89
  <View key={`k-${index}`} style={getRowStyle()}>