react-crud-mobile 1.3.349 → 1.3.351

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,6 +1,6 @@
1
1
  {
2
2
  "name": "react-crud-mobile",
3
- "version": "1.3.349",
3
+ "version": "1.3.351",
4
4
  "license": "MIT",
5
5
  "description": "Uma biblioteca de componentes para React Native v1",
6
6
  "main": "dist/index.js",
@@ -46,7 +46,7 @@
46
46
  "@react-native-vector-icons/material-icons": "^0.0.1",
47
47
  "expo-status-bar": "~3.0.8",
48
48
  "react": "19.1.0",
49
- "react-crud-utils": "^0.1.456",
49
+ "react-crud-utils": "^0.1.457",
50
50
  "react-dom": "19.1.0",
51
51
  "react-native": "0.81.4",
52
52
  "react-native-draggable-flatlist": "^4.0.3",
@@ -38,7 +38,7 @@ const UI = {
38
38
  Email: (props: InputType) => <UIElement {...props} type="email" />,
39
39
  Button: (props: ButtonType) => <UIElement {...props} type="button" />,
40
40
  Link: (props: LinkType) => <UIElement {...props} type="link" />,
41
- Icon: (props: IconType) => <UIElement {...props} type="icon" />,
41
+ Icon: (props: IconType) => <UIElement {...props} type="icon" transient />,
42
42
  Output: (props: ContainerType) => <UIElement {...props} type="output" />,
43
43
  Form: (props: ContainerType) => <UIElement {...props} type="form" />,
44
44
  Crud: (props: ContainerType) => <UIElement {...props} type="crud" />,
@@ -1,6 +1,7 @@
1
1
  import { Ionicons } from '@expo/vector-icons';
2
2
  import { ChildType, Utils } from 'react-crud-utils';
3
3
  import { Text, TouchableHighlight, View } from 'react-native';
4
+ import UI from '../UI';
4
5
 
5
6
  const BUTTONS_SIZE: any = { small: { minWidth: 30, height: 30 } };
6
7
 
@@ -129,10 +130,10 @@ export default function UIButton(props: ChildType) {
129
130
  <>
130
131
  {icon && (
131
132
  <>
132
- <Ionicons
133
+ <UI.Icon
133
134
  size={Utils.nvl(element.iconSize, 30)}
134
135
  style={iconStyle}
135
- name={icon}
136
+ value={icon}
136
137
  />
137
138
  </>
138
139
  )}