MCPcopy Create free account
hub / github.com/AdamGold/Dryvo-App / render

Method render

src/components/InputSelectionButton.js:6–29  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4
5export 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
32const styles = StyleSheet.create({

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected