Skip to content

Commit 02c2bbd

Browse files
Align containerstyle to container for popup menu
1 parent 5d7ba45 commit 02c2bbd

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

styles/native/ts/core/widgets/popupmenu.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export const com_mendix_widget_native_popupmenu_PopupMenu: PopupMenuType = {
2626
itemStyle: {
2727
rippleColor: contrast.lower,
2828
},
29-
containerStyle: {
29+
container: {
3030
// All ViewStyle properties are allowed
3131
},
3232
},
@@ -51,7 +51,7 @@ export const com_mendix_widget_native_popupmenu_PopupMenu: PopupMenuType = {
5151
// All TextStyle properties are allowed
5252
},
5353
},
54-
containerStyle: {
54+
container: {
5555
// All ViewStyle properties are allowed
5656
height: 40,
5757
},

styles/native/ts/types/widgets.d.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -338,24 +338,25 @@ export interface PopupMenuType {
338338
}
339339

340340
interface CustomItemStyle extends ViewStyle {
341-
containerStyle?: ViewStyle;
341+
container?: ViewStyle;
342342
itemStyle: { rippleColor?: string };
343343
}
344344

345345
interface BasicItemStyle {
346346
itemStyle?: ItemStyle;
347-
containerStyle?: ViewStyle;
347+
container?: ViewStyle;
348348
dividerColor?: string;
349349
}
350+
350351
interface ItemStyle {
352+
rippleColor?: string;
351353
ellipsizeMode?: TextProps["ellipsizeMode"];
352354
defaultStyle?: TextStyle;
353355
primaryStyle?: TextStyle;
354356
dangerStyle?: TextStyle;
355357
customStyle?: TextStyle;
356358
}
357359

358-
359360
// QR Code
360361
export interface QRCodeType {
361362
container?: ViewStyle,

0 commit comments

Comments
 (0)