UNPKG

react-native-global-styler

Version:

Lightweight and developer-friendly React Native styling toolkit with prebuilt styled components and a powerful useGlobalStyler hook for shorthand props like m_10, radius_12, resize_cover, and more.

14 lines (13 loc) 448 B
export const sidesArr = ['l', 'r', 'b', 't', 'tl', 'bl', 'tr', 'br', 'h', 'v'] as const; export const sidesRadius = ['tl', 'bl', 'tr', 'br'] as const; type Sides = typeof sidesArr[number]; export type SidesRadius = typeof sidesRadius[number]; export const SideMatcher = { 'l' : ['Left'], 'r' : ['Right'], 'b' : ['Bottom'], 't' : ['Top'], 'h' : ['Right', 'Left'], 'v' : ['Top', 'Bottom'] } export default Sides;