react-crud-mobile 1.0.809 → 1.0.810
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/dist/react-crud-mobile.cjs.development.js +8 -3
- package/dist/react-crud-mobile.cjs.development.js.map +1 -1
- package/dist/react-crud-mobile.cjs.production.min.js +1 -1
- package/dist/react-crud-mobile.cjs.production.min.js.map +1 -1
- package/dist/react-crud-mobile.esm.js +8 -3
- package/dist/react-crud-mobile.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/elements/core/UIButton.tsx +4 -4
package/package.json
CHANGED
|
@@ -2,8 +2,8 @@ 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
4
|
|
|
5
|
-
const
|
|
6
|
-
const
|
|
5
|
+
const BUTTONS_SIZE: any = { small: { minWidth: 30, height: 30 } };
|
|
6
|
+
const ICONS_SIZE: any = { small: { fontSize: 20 } };
|
|
7
7
|
|
|
8
8
|
export default function UIButton(props: ChildType) {
|
|
9
9
|
let scope = props.scope;
|
|
@@ -77,7 +77,7 @@ export default function UIButton(props: ChildType) {
|
|
|
77
77
|
}
|
|
78
78
|
|
|
79
79
|
if (size) {
|
|
80
|
-
css = { ...css, ...
|
|
80
|
+
css = { ...css, ...BUTTONS_SIZE[size] };
|
|
81
81
|
}
|
|
82
82
|
return css;
|
|
83
83
|
});
|
|
@@ -91,7 +91,7 @@ export default function UIButton(props: ChildType) {
|
|
|
91
91
|
}
|
|
92
92
|
|
|
93
93
|
if (size) {
|
|
94
|
-
css = { ...css, ...
|
|
94
|
+
css = { ...css, ...ICONS_SIZE[size] };
|
|
95
95
|
}
|
|
96
96
|
return css;
|
|
97
97
|
});
|