react-crud-mobile 1.3.323 → 1.3.325

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.323",
3
+ "version": "1.3.325",
4
4
  "license": "MIT",
5
5
  "description": "Uma biblioteca de componentes para React Native v1",
6
6
  "main": "dist/index.js",
@@ -21,7 +21,7 @@ export default function UIToggle(props: ChildType) {
21
21
 
22
22
  const Item = ({ item, index }) => {
23
23
  let selected = isSelected(item);
24
- let style: any = { ...styles.text };
24
+ let style: any = { ...styles.text, ...scope.getStyle('text') };
25
25
 
26
26
  if (selected) style.color = '#ffffff';
27
27
 
@@ -56,6 +56,12 @@ export default function UIToggle(props: ChildType) {
56
56
  }
57
57
  }
58
58
 
59
+ const backgroundColor = item.backgroundColor;
60
+ const color = item.color;
61
+
62
+ if (item.backgroundColor) style = { ...style, backgroundColor };
63
+ if (item.color) style = { ...style, color };
64
+
59
65
  style.width = width;
60
66
 
61
67
  return style;
@@ -85,6 +91,7 @@ const styles = StyleSheet.create({
85
91
  justifyContent: 'center',
86
92
  flexDirection: 'row',
87
93
  alignItems: 'center',
94
+ margin: 3,
88
95
  },
89
96
  item: {
90
97
  backgroundColor: 'background',
@@ -97,7 +104,7 @@ const styles = StyleSheet.create({
97
104
  borderRadius: 2,
98
105
  },
99
106
  text: {
100
- fontSize: 12,
107
+ fontSize: 13,
101
108
  fontWeight: '400',
102
109
  },
103
110
  });