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

Method selectOption

components/DropDownMenu/DropDownModal.js:50–58  ·  view source on GitHub ↗
(option)

Source from the content-addressed store, hash-verified

48 }
49
50 selectOption(option) {
51 const { selectedOption } = this.props;
52
53 this.close();
54
55 if (option !== selectedOption) {
56 this.emitOnOptionSelectedEvent(option);
57 }
58 }
59
60 close() {
61 const { onClose } = this.props;

Callers 1

onPressMethod · 0.95

Calls 2

closeMethod · 0.95

Tested by

no test coverage detected