(option)
| 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; |
nothing calls this directly
no outgoing calls
no test coverage detected