0.2.6 • Published 7 years ago
@react-web/stylesheet v0.2.6
@react-web/stylesheet
Install
→ npm i @react-web/stylesheet API
StyleSheet.create(styleMap: Object) styles: objectStyleSheet.assign(styleList | styleMap) prefixedStyle: objectStyleSheet.flatten(nestedStyleList: Array): styleList: Array
Example:
import { StyleSheet, View } from 'react-bucket'
const styles = StyleSheet.create({
btn: {
height: 36,
textAlign: 'center'
},
btn_red: {
backgroundColor: '#F33'
}
})
ReactDOM.render(
<View style={[styles.btn, styles.btn_red]}>Click Me!</View>
)