()
| 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 | /** |
nothing calls this directly
no test coverage detected