MCPcopy Create free account
hub / github.com/shoutem/ui / render

Method render

components/View.js:10–27  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

8
9class 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
30View.propTypes = {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected