MCPcopy Create free account
hub / github.com/shoutem/ui / resolveListViewStyle

Method resolveListViewStyle

components/DropDownMenu/DropDownModal.js:76–88  ·  view source on GitHub ↗
(height)

Source from the content-addressed store, hash-verified

74 }
75
76 resolveListViewStyle(height) {
77 const { style } = this.props;
78
79 const { bufferHeight } = this.getKeyAreaHeights(height);
80
81 return {
82 listContent: {
83 backgroundColor: style.modal.backgroundColor,
84 paddingVertical: bufferHeight,
85 justifyContent: 'center',
86 },
87 };
88 }
89
90 calculateListViewHeight(optionHeight) {
91 const { optionHeight: existingHeight } = this.state;

Callers 1

onOptionLayoutMethod · 0.95

Calls 1

getKeyAreaHeightsMethod · 0.95

Tested by

no test coverage detected