Преглед на файлове

Merge branch 'release/1.0.0-pre-alpha.66'

lfabl преди 1 месец
родител
ревизия
fc73c5540b
променени са 3 файла, в които са добавени 4 реда и са изтрити 2 реда
  1. 1 1
      package.json
  2. 2 1
      src/components/button/index.tsx
  3. 1 0
      src/components/button/type.ts

+ 1 - 1
package.json

@@ -1,6 +1,6 @@
 {
     "name": "ncore-ui-kit",
-    "version": "1.0.0-pre-alpha.65",
+    "version": "1.0.0-pre-alpha.66",
     "description": "NİBGAT® | NCore - UI Kit for React-Native Mobile Apps.",
     "main": "./lib/module/index.js",
     "types": "./lib/typescript/src/index.d.ts",

+ 2 - 1
src/components/button/index.tsx

@@ -42,6 +42,7 @@ const Button: FC<IButtonProps> = ({
     customTheme,
     titleStyle,
     isLoading,
+    iconSize,
     onPress,
     title,
     style,
@@ -100,7 +101,7 @@ const Button: FC<IButtonProps> = ({
     };
 
     const iconProps: NCoreUIKit.IconCallbackProps = {
-        size: Number(typography[currentSize.fontSize].fontSize),
+        size: iconSize ? iconSize : Number(typography[currentSize.fontSize].fontSize),
         color: currentType.iconColor
     };
 

+ 1 - 0
src/components/button/type.ts

@@ -105,6 +105,7 @@ interface IButtonProps extends Omit<ButtonProps, "title" | "disabled"> {
     isDisabled?: boolean;
     onPress: () => void;
     isLoading?: boolean;
+    iconSize?: number;
     size?: ButtonSize;
     type?: ButtonType;
     title?: string;