- 게시물 카드 슬라이드 7종, 좋아요·댓글, 텍스트 공유 - 시트 7종(RN Modal), 위 막대 지역·계절·로그인/아바타 - 각·노을·주말·행사·계절·상식 탭, 당겨서 새로고침 - 히어로 해·구름·비·눈 움직임, 스켈레톤 깜빡임, 첫 로딩 덮개, 하늘색 전환
30 lines
1.0 KiB
TypeScript
30 lines
1.0 KiB
TypeScript
import Svg, { Path } from 'react-native-svg';
|
|
|
|
export const HEART = 'M12 20.5s-8-4.9-8-11A4.6 4.6 0 0 1 12 6.8a4.6 4.6 0 0 1 8 2.7c0 6.1-8 11-8 11z';
|
|
|
|
type P = { size: number; color: string };
|
|
|
|
export function HeartIcon({ size, color, filled }: P & { filled: boolean }) {
|
|
return (
|
|
<Svg viewBox="0 0 24 24" width={size} height={size} fill={filled ? color : 'none'} stroke={color} strokeWidth={1.9}>
|
|
<Path d={HEART} />
|
|
</Svg>
|
|
);
|
|
}
|
|
|
|
export function CommentIcon({ size, color }: P) {
|
|
return (
|
|
<Svg viewBox="0 0 24 24" width={size} height={size} fill="none" stroke={color} strokeWidth={1.9} strokeLinejoin="round">
|
|
<Path d="M20.5 12a8.5 8.5 0 0 1-12.6 7.4L3.5 20.5l1.2-4.2A8.5 8.5 0 1 1 20.5 12z" />
|
|
</Svg>
|
|
);
|
|
}
|
|
|
|
export function SendIcon({ size, color }: P) {
|
|
return (
|
|
<Svg viewBox="0 0 24 24" width={size} height={size} fill="none" stroke={color} strokeWidth={1.9} strokeLinecap="round" strokeLinejoin="round">
|
|
<Path d="M21 3 10 14M21 3l-6.5 18-4-7.5L3 9.5z" />
|
|
</Svg>
|
|
);
|
|
}
|