react-crud-mobile 1.0.697 → 1.0.699

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.
@@ -394,9 +394,9 @@ function UIButton(props) {
394
394
  },
395
395
  button: {
396
396
  height: 50,
397
- paddingHorizontal: 16,
398
397
  backgroundColor: color,
399
398
  borderRadius: 24,
399
+ gap: 10,
400
400
  justifyContent: 'center',
401
401
  alignItems: 'center',
402
402
  flexDirection: 'row'
@@ -422,10 +422,20 @@ function UIButton(props) {
422
422
  padding: 0
423
423
  };
424
424
  }
425
+ var buttonStyle = reactCrudUtils.Utils.call(function () {
426
+ var css = style('button', extra.button);
427
+ if (!css.width) {
428
+ var h = css.height;
429
+ if (typeof h === 'number') {
430
+ css.minWidth = h;
431
+ }
432
+ }
433
+ return css;
434
+ });
425
435
  return /*#__PURE__*/jsxRuntime.jsx(reactNative.TouchableHighlight, {
426
436
  underlayColor: 'transparent',
427
437
  onPress: onClick,
428
- style: style('button', extra.button),
438
+ style: buttonStyle,
429
439
  children: /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
430
440
  children: [icon && /*#__PURE__*/jsxRuntime.jsx(jsxRuntime.Fragment, {
431
441
  children: /*#__PURE__*/jsxRuntime.jsx(vectorIcons.Ionicons, {