react-crud-mobile 1.3.28 → 1.3.30

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.28",
2
+ "version": "1.3.30",
3
3
  "license": "MIT",
4
4
  "description": "Uma biblioteca de componentes para React Native",
5
5
  "main": "dist/index.js",
@@ -33,6 +33,7 @@ export default function UISelect(props: ChildType) {
33
33
  const modalColor = Utils.nvl(headerStyle.color, 'white');
34
34
  const defaults = { color: modalColor };
35
35
  const onClick = ({ crud, value }: MethodType) => {
36
+ console.log(crud);
36
37
  let val = value as any;
37
38
 
38
39
  if (element.isObject && val?.object) {
@@ -62,7 +63,10 @@ export default function UISelect(props: ChildType) {
62
63
  }, [modalVisible]);
63
64
 
64
65
  return (
65
- <View style={style('selectRoot')}>
66
+ <View
67
+ key={scope.getName(`${scope.getPart('modal')}_${modalVisible}`)}
68
+ style={style('selectRoot')}
69
+ >
66
70
  <TouchableOpacity onPress={handlePress} style={style('selectInput')}>
67
71
  <Text style={style('selectLabel')}>
68
72
  {Utils.nvl(value, placeholder)}
@@ -102,7 +106,11 @@ export default function UISelect(props: ChildType) {
102
106
  name={scope.getName('list')}
103
107
  layout="card"
104
108
  click={onClick}
105
- rowStyle={scope.original?.rowStyle}
109
+ rowStyle={{
110
+ paddingLeft: 15,
111
+ paddinRight: 15,
112
+ ...scope.original?.rowStyle,
113
+ }}
106
114
  >
107
115
  <UI.Value value="#{@this.label}" />
108
116
  </UI.List>