const shorthandStyles = (margin, padding) => {

    let s = {}
    
    if (typeof margin === "number") { s['margin'] = margin }
    else if (typeof margin === "array"){
        switch (margin.length) {
            case 1: 
                s['marginVertical'] = margin[0]
            case 2:
                s['marginVertical'] = margin[0]
                s['marginHorizontal'] = margin[1]
            case 3:
                s['marginTop'] = margin[0]
                s['marginHorizontal'] = margin[1]
                s['marginBottom'] = margin[2]
            case 4:
                s['marginTop'] = margin[0]
                s['marginRight'] = margin[1]
                s['marginBottom'] = margin[2]
                s['marginLeft'] = margin[3]
        }
    }
    
    if (typeof padding === "number") { s['padding'] = padding }
    else if (typeof padding === "array"){
        switch (padding.length) {
            case 1:
                s['paddingVertical'] = padding[0]
            case 2:
                s['paddingVertical'] = padding[0]
                s['paddingHorizontal'] = padding[1]
            case 3:
                s['paddingTop'] = padding[0]
                s['paddingHorizontal'] = padding[1]
                s['paddingBottom'] = padding[2]
            case 4:
                s['paddingTop'] = padding[0]
                s['paddingRight'] = padding[1]
                s['paddingBottom'] = padding[2]
                s['paddingLeft'] = padding[3]
        }
    }
    
    return s
}

export default shorthandStyles
@@ -139,33 +139,29 @@
 if (
-typeof margin === %22array%22
+Array.isArray(margin)
 )%7B%0A 
@@ -838,34 +838,30 @@
 if (
-typeof padding === %22array%22
+Array.isArray(padding)
 )%7B%0A 

fix array type check