mirror of
https://github.com/zhigang1992/react-native-web.git
synced 2026-04-08 22:42:58 +08:00
Initial StyleSheet implementation for Web. Converts style object declarations to "atomic" CSS rules. Close gh-25
10 lines
275 B
JavaScript
10 lines
275 B
JavaScript
import { pickProps } from '../filterObjectProps'
|
|
import StylePropTypes from '../StylePropTypes'
|
|
|
|
const isStyleObject = (obj) => {
|
|
const declarations = pickProps(obj, Object.keys(StylePropTypes))
|
|
return Object.keys(declarations).length > 0
|
|
}
|
|
|
|
export default isStyleObject
|