()
| 4 | |
| 5 | export default class InputSelectionButton extends React.Component { |
| 6 | render() { |
| 7 | let style = { ...styles.rects, ...this.props.style } |
| 8 | if (this.props.selected || this.props.secondTimeSelected) { |
| 9 | const selectedColor = this.props.selectedColor || colors.blue |
| 10 | style = { |
| 11 | ...style, |
| 12 | ...styles.selected, |
| 13 | backgroundColor: selectedColor, |
| 14 | shadowColor: selectedColor |
| 15 | } |
| 16 | } |
| 17 | if (this.props.secondTimeSelected) { |
| 18 | style = { ...style, ...styles.secondTimeSelected } |
| 19 | } |
| 20 | return ( |
| 21 | <TouchableHighlight |
| 22 | onPress={this.props.onPress} |
| 23 | underlayColor="#ffffff00" |
| 24 | activeOpacity={0.3} |
| 25 | > |
| 26 | <View style={style}>{this.props.children}</View> |
| 27 | </TouchableHighlight> |
| 28 | ) |
| 29 | } |
| 30 | } |
| 31 | |
| 32 | const styles = StyleSheet.create({ |
nothing calls this directly
no outgoing calls
no test coverage detected