Weex Style Validator
Check if weex components support the specific styles.
API
configure
: [Function] config the validatorvalidateStyles
: [Function] validate component styles
Usage
Validate styles
const validator = /** * Validate style object. * @param */validator /** * Validate styles for specific component. * @param * @param */validator
Config the validator
const validator = /** * Config the validator. * @param */validator
Common Error Output
Weex use display: flex;
by default:
[Style Validator] Not support to use the "display" style property.
Weex doesn't support short-hand properties currently:
[Style Validator] Not support to use the "margin" style property.
[Style Validator] Not support to use the "border" style property.
[Style Validator] <div> is not support to use the "margin" style property.
[Style Validator] <image> is not support to use the "padding" style property.