react-crud-mobile 1.0.613 → 1.0.615

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.
@@ -4,6 +4,7 @@ import { StyleSheet, Text, TouchableHighlight, View } from 'react-native';
4
4
  import UIListRow from './UIListRow';
5
5
  import UI from '../UI';
6
6
  import { Ionicons } from '@expo/vector-icons';
7
+ import UIChildren from '../UIChildren';
7
8
 
8
9
  export default function UIList(props: ChildType) {
9
10
  const scope = props.scope;
@@ -97,21 +98,24 @@ export default function UIList(props: ChildType) {
97
98
  if (!original.click) {
98
99
  return (
99
100
  <View key={`k-${index}`} style={getRowStyle()}>
100
- {children}
101
+ <UIChildren scope={row} crud={row.crud}>
102
+ {children}
103
+ </UIChildren>
101
104
  </View>
102
105
  );
103
106
  }
104
107
  return (
105
108
  <TouchableHighlight
106
109
  key={`k-${index}`}
107
- style={getRowStyle()}
108
110
  underlayColor={'transparent'}
109
111
  onPress={e => {
110
112
  e.stopPropagation();
111
113
  onClick(item);
112
114
  }}
113
115
  >
114
- {children}
116
+ <UIChildren scope={row} crud={row.crud}>
117
+ {children}
118
+ </UIChildren>
115
119
  </TouchableHighlight>
116
120
  );
117
121
  };
@@ -130,9 +134,7 @@ export default function UIList(props: ChildType) {
130
134
  <Empty />
131
135
  {items.map((item: any, i: number) => (
132
136
  <RowItem index={i} item={item}>
133
- <UIListRow scope={scope} item={item} index={i}>
134
- {props.children}
135
- </UIListRow>
137
+ {props.children}
136
138
  </RowItem>
137
139
  ))}
138
140
  {isShowAdd() && <>{add}</>}