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

Method renderRow

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

Source from the content-addressed store, hash-verified

200 }
201
202 renderRow(option) {
203 const { style, titleProperty, renderOption, selectedOption } = this.props;
204
205 const optionItem = renderOption(option, titleProperty);
206 const selectedItem = selectedOption.id === option.id || false;
207 const onPress = () => this.selectOption(option);
208
209 return (
210 <TouchableOpacity
211 onPress={onPress}
212 style={selectedItem ? style.selectedModalItem : style.modalItem}
213 onLayout={this.onOptionLayout}
214 >
215 {optionItem}
216 </TouchableOpacity>
217 );
218 }
219
220 render() {
221 const { titleProperty, options, style, visible } = this.props;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected