@momo-kits/title 0.92.2-rc.1 → 0.92.3

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.
Files changed (3) hide show
  1. package/index.tsx +2 -1
  2. package/package.json +1 -1
  3. package/types.ts +3 -0
package/index.tsx CHANGED
@@ -28,6 +28,7 @@ const Title: FC<TitleProps> = ({
28
28
  onPressTrailingAction = () => {},
29
29
  buttonSize = 'small',
30
30
  textOnly = false,
31
+ style,
31
32
  }) => {
32
33
  const {theme} = useContext(ApplicationContext);
33
34
  const [badgeWidth, setBadgeWidth] = useState(0);
@@ -176,7 +177,7 @@ const Title: FC<TitleProps> = ({
176
177
  }
177
178
 
178
179
  return (
179
- <View style={[styles.wrapper, isSection && styles.margin]}>
180
+ <View style={[style, styles.wrapper, isSection && styles.margin]}>
180
181
  {renderIcon()}
181
182
  {renderContent()}
182
183
  {renderActionRight()}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@momo-kits/title",
3
- "version": "0.92.2-rc.1",
3
+ "version": "0.92.3",
4
4
  "private": false,
5
5
  "main": "index.tsx",
6
6
  "dependencies": {},
package/types.ts CHANGED
@@ -1,3 +1,5 @@
1
+ import {ViewStyle} from 'react-native';
2
+
1
3
  export type TitleProps = {
2
4
  type?: 'card' | 'section';
3
5
  size?: 'small' | 'medium' | 'large';
@@ -14,4 +16,5 @@ export type TitleProps = {
14
16
  onPressRightAction?: () => void;
15
17
  onPressTrailingAction?: () => void;
16
18
  textOnly?: boolean;
19
+ style?: ViewStyle;
17
20
  };