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

Method onOptionLayout

components/DropDownMenu/DropDownModal.js:28–38  ·  view source on GitHub ↗
(event)

Source from the content-addressed store, hash-verified

26 }
27
28 onOptionLayout(event) {
29 const { height } = event.nativeEvent.layout;
30 const { optionHeight } = this.state;
31
32 if (height !== optionHeight) {
33 this.setState({
34 optionHeight: height,
35 listStyle: this.resolveListViewStyle(height),
36 });
37 }
38 }
39
40 getVisibleOptions() {
41 const {

Callers

nothing calls this directly

Calls 1

resolveListViewStyleMethod · 0.95

Tested by

no test coverage detected