Documentation Index
Fetch the complete documentation index at: https://docs.shipmobilefast.com/llms.txt
Use this file to discover all available pages before exploring further.
What is Normalization?
Normalization is a process of making the components look consistent and beautiful.
How to use Normalization?
Go to @/constants/appConstants.tsx file.
You’ll see normalize function. For example:
export const ScreenHeight: number = SCREEN_HEIGHT;
export const ScreenWidth: number = SCREEN_WIDTH;
export const PADDING: Record<PaddingSize, number> = {
xxxs: scale(1),
xxs: scale(2),
xs: scale(4),
sm: scale(8),
md: scale(16),
lg: scale(24),
xl: scale(32),
xxl: scale(40),
xxxl: scale(48),
};
You can use this constants to make your components look consistent. For Example:
<View style={{ padding: PADDING.md }}>
<Text style={{ fontSize: FONT_SIZE.lg }}>Hello</Text>
</View>