src/util.js
function paddingElementForTransform(proper, arr) {
    //RN not support multi font-family keywords
    if (proper === 'font-family') {
        return [proper, arr.pop()]
    }
    //not support such shorthand
    if (proper === 'background') {
        return ['background-color', arr.join(" ")]
    }
    //not support such shorthand
    if (proper === 'border-bottom' || proper === 'border-top' || proper === 'border-right' || proper === 'border-left') {
        // console.warn("not support property",proper)
        return []
    }
    //content property should take just single value
    if (proper === 'content' && arr.length === 1)
        return [proper, arr[0]]
    return [proper, arr.join(" ")]
}
function paddingElementForTransform(proper, arr) {
    //RN not support multi font-family keywords
    if (proper === 'font-family') {
        return [proper, arr.pop()]
    }
    //not support such shorthand
    if (proper === 'background') {
        return ['background-color', arr.join(" ")]
    }
    //not support such shorthand
    if (proper === 'border-bottom' || proper === 'border-top' || proper === 'border-right' || proper === 'border-left') {
        // console.warn("not support property",proper)
        return []
    }
    //content property should take just single value
    if (proper === 'content' && arr.length === 1)
        return [proper, arr[0]]
    return [proper, arr.join(" ")]
}
function paddingElementForTransform ( proper , arr ) { //RN not support multi font-family keywords if ( proper === 'font-family' ) { return [ proper , arr . pop ( ) ] } //not support such shorthand if ( proper === 'background' ) { return [ 'background-color' , arr . join ( " " ) ] } //not support such shorthand if ( proper === 'border-bottom' || proper === 'border-top' || proper === 'border-right' || proper === 'border-left' ) { // console.warn("not support property",proper) return [ ] } //content property should take just single value if ( proper === 'content' && arr . length === 1 ) return [ proper , arr [ 0 ] ] return [ proper , arr . join ( " " ) ] }
do some padding modification,to produce more stable run-time environment
@param proper
@param arr
@return {*}
do some padding modification to produce more stable run - time environment