()
| 8 | |
| 9 | class View extends PureComponent { |
| 10 | render() { |
| 11 | const { children, style } = this.props; |
| 12 | const { backgroundGradient, ...viewStyle } = style; |
| 13 | |
| 14 | let gradient = null; |
| 15 | if (backgroundGradient) { |
| 16 | gradient = ( |
| 17 | <LinearGradient styleName="fill-parent" style={backgroundGradient} /> |
| 18 | ); |
| 19 | } |
| 20 | |
| 21 | return ( |
| 22 | <RNView {...this.props} style={viewStyle}> |
| 23 | {gradient} |
| 24 | {children} |
| 25 | </RNView> |
| 26 | ); |
| 27 | } |
| 28 | } |
| 29 | |
| 30 | View.propTypes = { |
nothing calls this directly
no outgoing calls
no test coverage detected