nuke-components
Advanced tools
Comparing version 0.0.17 to 0.0.18
{ | ||
"name": "nuke-components", | ||
"version": "0.0.17", | ||
"version": "0.0.18", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
44
View.js
@@ -10,29 +10,29 @@ /* @jsx createElement */ | ||
class View extends Component { | ||
render() { | ||
let props = this.props; | ||
if (isWeex) { | ||
return <div {...props} />; | ||
} else { | ||
let styleProps = { | ||
...styles.base, | ||
...props.style | ||
}; | ||
return <div {...props} style={styleProps} />; | ||
} | ||
} | ||
render() { | ||
let props = this.props; | ||
if (isWeex) { | ||
// TODO: do not pass object value in props | ||
return <div {...props} />; | ||
} else { | ||
let styleProps = { | ||
...styles.initial, | ||
...props.style | ||
}; | ||
return <div {...props} style={styleProps} />; | ||
} | ||
} | ||
} | ||
const styles = { | ||
base: { | ||
border: '0 solid black', | ||
position: 'relative', | ||
boxSizing: 'border-box', | ||
display: 'flex', | ||
flexDirection: 'column', | ||
alignContent: 'flex-start', | ||
flexShrink: 0 | ||
} | ||
initial: { | ||
border: '0 solid black', | ||
position: 'relative', | ||
boxSizing: 'border-box', | ||
display: 'flex', | ||
flexDirection: 'column', | ||
alignContent: 'flex-start', | ||
flexShrink: 0 | ||
} | ||
}; | ||
export default View; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
20525
731