浏览代码

Release: v1.0.0-pre-alpha.54

lfabl 1 月之前
父节点
当前提交
4849ac45db
共有 3 个文件被更改,包括 4 次插入2 次删除
  1. 1 1
      package.json
  2. 2 1
      src/components/siteLogo/index.tsx
  3. 1 0
      src/components/siteLogo/type.ts

+ 1 - 1
package.json

@@ -1,6 +1,6 @@
 {
     "name": "ncore-ui-kit",
-    "version": "1.0.0-pre-alpha.53",
+    "version": "1.0.0-pre-alpha.54",
     "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/siteLogo/index.tsx

@@ -34,6 +34,7 @@ const SiteLogo = ({
     subTitleVariant,
     icon: IconProp,
     size = "large",
+    subTitleColor,
     titleVariant,
     imageSource,
     customTheme,
@@ -204,10 +205,10 @@ const SiteLogo = ({
                 subTitle ?
                     <Text
                         variant={subTitleVariant ? subTitleVariant : currentSize.subTitleSize}
+                        color={subTitleColor ? subTitleColor : "low"}
                         customColor={subTitleCustomColor}
                         ellipsizeMode="tail"
                         numberOfLines={1}
-                        color="low"
                         style={{
                             width: "100%"
                         }}

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

@@ -64,6 +64,7 @@ interface ISiteLogoProps {
     };
     style?: StyleProp<ViewStyle>[] | StyleProp<ViewStyle>;
     imageSpace?: keyof NCoreUIKit.ActivePalette["spaces"];
+    subTitleColor?: keyof NCoreUIKit.TextContentColors;
     iconColor?: keyof NCoreUIKit.ProjectColorPalette;
     titleColor?: keyof NCoreUIKit.TextContentColors;
     subTitleVariant?: keyof NCoreUIKit.Typography;