Created
December 3, 2017 23:55
-
-
Save wokalski/521e87f15975a53c7d564dde5e48bffb to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PX_PCT_ANIMATED_INTERPOLATED=("height" "width" "top" "bottom" "left" "right") | |
PX_AUTO=( ("margin" ("" "Bottom" "Top" "Right" "Left" "Horizontal" "Vertical"))) | |
PX_PCT=( ("flexBasis" ("")) ("max" ("Height" "Width")) ("min" ("Width" "Height")) ("padding" ("" "Horizontal" "Vertical" "Left" "Right" "Bottom" "Top"))) | |
REPLACE=( | |
("transform" "Transform.make") | |
("transformAnimated" "Transform.makeAnimated") | |
("transformInterpolated" "Transform.makeInterpolated") | |
("\`flexStart" "FlexStart") | |
("\`flexEnd" "FlexEnd") | |
("\`center" "Center") | |
("\`spaceAround" "SpaceAround") | |
("\`spaceBetween" "SpaceBetween") | |
("\`baseline" "Baseline") | |
("\`flex" "Flex") | |
("\`none" "None") | |
("\`row" "Row") | |
("\`rowReverse" "RowReverse") | |
("\`column" "Column") | |
("\`columnReverse" "ColumnReverse") | |
("\`visible" "Visible") | |
("\`hidden" "Hidden") | |
("\`scroll" "Scroll") | |
("\`absolute" "Absolute") | |
("\`relative" "Relative") | |
("\`_inherit" "Inherit") | |
("\`ltr" "Ltr") | |
("\`rtl" "Rtl") | |
("\`solid" "Solid") | |
("\`dotted" "Dotted") | |
("\`dashed" "Dashed") | |
("\`normal" "Normal") | |
("\`italic" "Italic") | |
("\`normal" "Normal") | |
("\`bold" "Bold") | |
("\`auto" "Auto") | |
("\`left" "Left") | |
("\`right" "Right") | |
("\`center" "Center") | |
("\`justify" "Justify") | |
("\`underline" "Underline") | |
("\`lineThrough" "LineThrough") | |
("\`underlineLineThrough" "UnderlineLineThrough") | |
("\`double" "Double") | |
("\`cover" "Cover") | |
("\`contain" "Contain") | |
("\`stretch" "Stretch") | |
("\`repeat" "Repeat") | |
("\`wrap" "Wrap") | |
("\`nowrap" "Nowrap") | |
) | |
SUFFIX_PX=("(#)" "Px(#)") | |
SUFFIX_PCT=("Pct(#)" "(Pct(#))") | |
SUFFIX_ANIMATED=("Animated(#)" "(Animated(#))") | |
SUFFIX_INTERPOLATED=("Interpolated(#)" "(Interpolated(#))") | |
combine() { | |
} | |
replace_complex() { | |
} | |
replace_simple() { | |
} | |
replace_complex $(combine $PX_AUTO) ($SUFFIX_PX) | |
replace_complex $(combine $PX_PCT) ($SUFFIX_PX $SUFFIX_PCT) | |
replace_complex $PX_PCT_ANIMATED_INTERPOLATED ($SUFFIX_PX $SUFFIX_INTERPOLATED $SUFFIX_PCT $SUFFIX_ANIMATED) | |
replace_simple $REPLACE |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment