Skip to content

Commit 7f0a0c1

Browse files
committed
react-native: MainActionButton types: omit numberOfLines and ellipsizeMode from labelProps to prevent silent overrides
1 parent 0e46f38 commit 7f0a0c1

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

packages/design-system-react-native/src/components/MainActionButton/MainActionButton.types.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,13 @@ export type MainActionButtonProps = {
3131
*/
3232
labelProps?: Omit<
3333
Partial<TextProps>,
34-
'children' | 'variant' | 'fontWeight' | 'color' | 'twClassName'
34+
| 'children'
35+
| 'variant'
36+
| 'fontWeight'
37+
| 'color'
38+
| 'twClassName'
39+
| 'numberOfLines'
40+
| 'ellipsizeMode'
3541
>;
3642
/**
3743
* Disables the button interaction and applies disabled styling.

0 commit comments

Comments
 (0)