react-crud-mobile 1.3.23 → 1.3.25

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,5 +1,5 @@
1
1
  {
2
- "version": "1.3.23",
2
+ "version": "1.3.25",
3
3
  "license": "MIT",
4
4
  "description": "Uma biblioteca de componentes para React Native",
5
5
  "main": "dist/index.js",
@@ -30,6 +30,7 @@ export default function UISelect(props: ChildType) {
30
30
  setModalVisible(_modalVisible);
31
31
  };
32
32
  const iconColor = Utils.nvl(theme.colors?.text, '#100e0e');
33
+ const modalColor = Utils.nvl(headerStyle.color, 'white');
33
34
 
34
35
  const onClick = ({ crud, value }: MethodType) => {
35
36
  let val = value as any;
@@ -86,12 +87,23 @@ export default function UISelect(props: ChildType) {
86
87
  onPress={() => setModalVisible(false)}
87
88
  style={style('modalCloseButton')}
88
89
  >
89
- <Text style={style('modalCloseText')}>X</Text>
90
+ <Ionicons
91
+ name="close"
92
+ size={24}
93
+ color={modalColor}
94
+ style={style('modalCloseText', {})}
95
+ />
90
96
  </TouchableOpacity>
91
97
  <Text style={style('modalTitle')}>{placeholder}</Text>
92
98
  </View>
93
99
  <View style={style('modalContent')}>
94
- <UI.List data={items} name={scope.getName('list')} click={onClick}>
100
+ <UI.List
101
+ data={items}
102
+ name={scope.getName('list')}
103
+ layout="card"
104
+ click={onClick}
105
+ rowStyle={scope.original?.rowStyle}
106
+ >
95
107
  <UI.Value value="#{@this.label}" />
96
108
  </UI.List>
97
109
  </View>