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

Method render

components/DropDownMenu/DropDownMenu.js:63–82  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

61 }
62
63 render() {
64 const { collapsed } = this.state;
65 const { options } = this.props;
66
67 const button = this.renderSelectedOption();
68 if (_.size(options) === 0 || !button) {
69 return null;
70 }
71
72 return (
73 <View renderToHardwareTextureAndroid>
74 {button}
75 <DropDownModal
76 {..._.omit(this.props, 'style')}
77 visible={collapsed}
78 onClose={this.close}
79 />
80 </View>
81 );
82 }
83}
84
85/**

Callers

nothing calls this directly

Calls 1

renderSelectedOptionMethod · 0.95

Tested by

no test coverage detected