dhre-ui-kit 0.0.108 → 0.0.109

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/lib/index.js CHANGED
@@ -2276,14 +2276,24 @@ const CustomHeader = ({
2276
2276
  onLeftPress,
2277
2277
  onRightPress
2278
2278
  }) => {
2279
- return /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: styles$k.container, testID: testId }, /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: styles$k.headderContainer }, /* @__PURE__ */ React__default["default"].createElement(
2279
+ return /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: styles$k.container, testID: testId }, /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: styles$k.headderContainer }, showLeftIcon && React__default["default"].cloneElement(leftIcon, {
2280
+ width: moderateScale(24),
2281
+ height: moderateScale(24),
2282
+ onPress: onLeftPress,
2283
+ style: styles$k.leftIconStyle
2284
+ }), /* @__PURE__ */ React__default["default"].createElement(
2280
2285
  CustomTypography,
2281
2286
  {
2282
2287
  variant: "B2_REGULAR",
2283
2288
  text: title,
2284
2289
  style: styles$k.headerTitle
2285
2290
  }
2286
- )));
2291
+ )), showRightIcon && React__default["default"].cloneElement(rightIcon, {
2292
+ width: moderateScale(24),
2293
+ height: moderateScale(24),
2294
+ onPress: onRightPress,
2295
+ style: styles$k.rightIconStyle
2296
+ }));
2287
2297
  };
2288
2298
 
2289
2299
  const styles$j = reactNative.StyleSheet.create({