ํ ํ๋ก์ ํธ*(Front 1๋ช , Back 1๋ช , Game 1๋ช )*
๋ด ์ญํ : Front-End Developer
๐ย GitHub Link
https://github.com/alardin/alardin-front
Alardin๋ โ5๋ถ๋ง ํ์โ์ ํด๊ฒฐํ๊ณ ์ ์ฌ์ฉ์์ ์์นจ์ โFunโํ๊ฒ ์ ๊ณตํ๊ณ ์ถ์ ๋ชฉ์ ์ผ๋ก ๋จ์ํ ์๋์ ๊ธฐ๋ฅ์ด ์๋๋ฉฐ ์ฃผ๋ณ ์ฌ๋๋ค๊ณผ์ ๋ฉ์ดํธ๋ฅผ ์ง์ด ํจ๊ป ์ผ์ด๋๊ณ ๊ฒ์์ ์ฆ๊ฑฐ์์ผ๋ก ์๋์ ๋ ์ ์๋ ์๋น์ค์ ๋๋ค.


์ฌ์ฌ์ฉ ๊ฐ๋ฅํ UI ์ปดํฌ๋ํธ ๊ตฌํ
๊ฐ ๊ธฐ๋ฅ๋ณ๋ก ํ์ํ ์ปดํฌ๋ํธ๋ฅผ ์๋ก ์์ฑํ์ง ์๊ณ ํ๋์ ์ปดํฌ๋ํธ๋ฅผ ์ ์ํ์ฌ ์ํฉ์ ๋ฐ๋ผ ํ์ํ๋ ์คํ์ผ๋ง, ์ด๋ฒคํธ ํธ๋ค๋ฌ ๋ฑ์ Props ํตํด ๋ฐ์์ ์ ์ฉ๋๋ ํํ๋ก ๊ตฌํ
...
const Button = ({
width,
height,
center,
value,
fontSize,
options,
disabled,
children,
...rest
}: IButtonProps) => {
const pressedColor = themeName.button[options].pressed.split(' ')[1];
return (
<DefaultButton
{...{ width, height, center, options, disabled, ...rest }}
activeOpacity={1}
underlayColor={pressedColor.substring(0, pressedColor.length - 1)}
value={value}>
{React.isValidElement(children) ? (
children
) : (
<ButtonText {...{ fontSize, options, height, disabled }}>
{children}
</ButtonText>
)}
</DefaultButton>
);
};
...