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.
@@ -1204,7 +1204,7 @@ function UIToggle(props) {
1204
1204
  var item = _ref.item,
1205
1205
  index = _ref.index;
1206
1206
  var selected = isSelected(item);
1207
- var style = _extends({}, styles$7.text);
1207
+ var style = _extends({}, styles$7.text, scope.getStyle('text'));
1208
1208
  if (selected) style.color = '#ffffff';
1209
1209
  if (reactCrudUtils.Utils.isEmpty(props.children)) {
1210
1210
  return /*#__PURE__*/jsxRuntime.jsx(reactNative.Text, {
@@ -1234,6 +1234,14 @@ function UIToggle(props) {
1234
1234
  style.color = '#ffffff';
1235
1235
  }
1236
1236
  }
1237
+ var backgroundColor = item.backgroundColor;
1238
+ var color = item.color;
1239
+ if (item.backgroundColor) style = _extends({}, style, {
1240
+ backgroundColor: backgroundColor
1241
+ });
1242
+ if (item.color) style = _extends({}, style, {
1243
+ color: color
1244
+ });
1237
1245
  style.width = width;
1238
1246
  return style;
1239
1247
  };
@@ -1259,7 +1267,8 @@ var styles$7 = /*#__PURE__*/reactNative.StyleSheet.create({
1259
1267
  width: '100%',
1260
1268
  justifyContent: 'center',
1261
1269
  flexDirection: 'row',
1262
- alignItems: 'center'
1270
+ alignItems: 'center',
1271
+ margin: 3
1263
1272
  },
1264
1273
  item: {
1265
1274
  backgroundColor: 'background',
@@ -1272,7 +1281,7 @@ var styles$7 = /*#__PURE__*/reactNative.StyleSheet.create({
1272
1281
  borderRadius: 2
1273
1282
  },
1274
1283
  text: {
1275
- fontSize: 12,
1284
+ fontSize: 13,
1276
1285
  fontWeight: '400'
1277
1286
  }
1278
1287
  });