Closed hetmann closed 5 years ago
When using margin and padding props with components like Block & Text it should use the base value from theme.js -> SIZES.base = 8
Current usage, by default is using the prop value
<Block marginTop={SIZES.base}> <Text paddingHorizontal={SIZES.base}>margin or padding</Text> </Block>
Without values
<Block marginTop> <Text paddingHorizontal>margin or padding</Text> </Block>
With 2x, 3x values representing SIZES.base * 2 and SIZES.base * 3 or dynamic extracting integer and multiply by "4" from "4x"
SIZES.base * 2
SIZES.base * 3
<Block marginTop="3x"> <Text paddingHorizontal="2x">margin or padding</Text> </Block>
When using margin and padding props with components like Block & Text it should use the base value from theme.js -> SIZES.base = 8
Current usage, by default is using the prop value
Without values
With 2x, 3x values representing
SIZES.base * 2
andSIZES.base * 3
or dynamic extracting integer and multiply by "4" from "4x"