react-crud-mobile 1.0.618 → 1.0.620

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.
@@ -108,11 +108,20 @@ export default function UIChildren(props: UIChildrenType) {
108
108
  const getStyle = (part?: string) => {
109
109
  let key = Utils.nvl(part, 'root');
110
110
  let def = styles[key];
111
+ let css = {};
111
112
 
112
113
  if (!Utils.isEmpty(props.style)) {
113
- console.log(props.style);
114
+ if (props.style?.push) {
115
+ Utils.each(props.style, s => {
116
+ if (s) {
117
+ css = { ...css, ...s };
118
+ }
119
+ });
120
+ } else {
121
+ css = { ...props.style };
122
+ }
114
123
  }
115
- return { ...def, ...scope.getStyle(part) };
124
+ return { ...def, ...css, ...scope.getStyle(part) };
116
125
  };
117
126
 
118
127
  return (
@@ -52,6 +52,7 @@ export default function UIListRow(props: UIListRowType) {
52
52
  return (
53
53
  <TouchableHighlight
54
54
  key={`k-${index}`}
55
+ style={getRowStyle()}
55
56
  underlayColor={'transparent'}
56
57
  onPress={e => {
57
58
  e.stopPropagation();