Skip to content

Commit 4591ed2

Browse files
Merge branch 'icons' into 'main'
Icons See merge request react-native/react-native-material-components!24
2 parents 4eb425c + eb72b9e commit 4591ed2

37 files changed

+323
-0
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import React from 'react';
2+
import Svg, {Path} from 'react-native-svg';
3+
4+
import {path} from './path.json';
5+
import type {IconProps} from '../icon-props';
6+
7+
const DEFAULT_SIZE = 24;
8+
const DEFAULT_COLOR = '#000';
9+
10+
export const PersonIcon = ({color = DEFAULT_COLOR, size = DEFAULT_SIZE, ...props}: IconProps) => (
11+
<Svg viewBox="0 0 24 24" width={size} height={size} {...props}>
12+
<Path fill={color} d={path} />
13+
</Svg>
14+
);
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"path": "M12 12c-1.1 0-2.042-0.392-2.825-1.175s-1.175-1.725-1.175-2.825c0-1.1 0.392-2.042 1.175-2.825s1.725-1.175 2.825-1.175c1.1 0 2.042 0.392 2.825 1.175s1.175 1.725 1.175 2.825c0 1.1-0.392 2.042-1.175 2.825s-1.725 1.175-2.825 1.175zM4 20v-2.8c0-0.567 0.146-1.087 0.438-1.563s0.679-0.837 1.163-1.087c1.033-0.517 2.083-0.904 3.15-1.163s2.15-0.387 3.25-0.387c1.1 0 2.183 0.129 3.25 0.387s2.117 0.646 3.15 1.163c0.483 0.25 0.871 0.612 1.163 1.087s0.438 0.996 0.438 1.563v2.8h-16zM6 18h12v-0.8c0-0.183-0.046-0.35-0.138-0.5s-0.213-0.267-0.363-0.35c-0.9-0.45-1.808-0.787-2.725-1.012s-1.842-0.338-2.775-0.338c-0.933 0-1.858 0.112-2.775 0.338s-1.825 0.563-2.725 1.012c-0.15 0.083-0.271 0.2-0.363 0.35s-0.138 0.317-0.138 0.5v0.8zM12 10c0.55 0 1.021-0.196 1.413-0.588s0.588-0.863 0.588-1.413c0-0.55-0.196-1.021-0.588-1.413s-0.862-0.588-1.413-0.588c-0.55 0-1.021 0.196-1.413 0.588s-0.588 0.863-0.588 1.413c0 0.55 0.196 1.021 0.588 1.413s0.863 0.588 1.413 0.588z"
3+
}
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import React from 'react';
2+
import Svg, {Path} from 'react-native-svg';
3+
4+
import {path} from './path.json';
5+
import type {IconProps} from '../icon-props';
6+
7+
const DEFAULT_SIZE = 24;
8+
const DEFAULT_COLOR = '#000';
9+
10+
export const ArrowForwardIcon = ({color = DEFAULT_COLOR, size = DEFAULT_SIZE, ...props}: IconProps) => (
11+
<Svg viewBox="0 0 24 24" width={size} height={size} {...props}>
12+
<Path fill={color} d={path} />
13+
</Svg>
14+
);
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"path": "M16.175 13h-12.175v-2h12.175l-5.6-5.6 1.425-1.4 8 8-8 8-1.425-1.4 5.6-5.6z"
3+
}
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import React from 'react';
2+
import Svg, {Path} from 'react-native-svg';
3+
4+
import {path} from './path.json';
5+
import type {IconProps} from '../icon-props';
6+
7+
const DEFAULT_SIZE = 24;
8+
const DEFAULT_COLOR = '#000';
9+
10+
export const DownloadIcon: React.FC<IconProps> = ({color = DEFAULT_COLOR, size = DEFAULT_SIZE, ...props}) => (
11+
<Svg viewBox="0 0 24 24" width={size} height={size} {...props}>
12+
<Path fill={color} d={path} />
13+
</Svg>
14+
);
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"path": "M12 16l-5-5 1.4-1.45 2.6 2.6v-8.15h2v8.15l2.6-2.6 1.4 1.45-5 5zM6 20c-0.55 0-1.021-0.196-1.413-0.588s-0.588-0.862-0.588-1.413v-3h2v3h12v-3h2v3c0 0.55-0.196 1.021-0.588 1.413s-0.863 0.588-1.413 0.588h-12z"
3+
}
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import React from 'react';
2+
import Svg, {Path} from 'react-native-svg';
3+
4+
import {path} from './path.json';
5+
import type {IconProps} from '../icon-props';
6+
7+
const DEFAULT_SIZE = 24;
8+
const DEFAULT_COLOR = '#000';
9+
10+
export const FavoriteFilledIcon: React.FC<IconProps> = ({color = DEFAULT_COLOR, size = DEFAULT_SIZE, ...props}) => (
11+
<Svg viewBox="0 0 24 24" width={size} height={size} {...props}>
12+
<Path fill={color} d={path} />
13+
</Svg>
14+
);
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"path": "M12 21l-1.45-1.3q-2.525-2.275-4.175-3.925t-2.625-2.963-1.362-2.412-0.387-2.25q0-2.35 1.575-3.925t3.925-1.575q1.3 0 2.475 0.55t2.025 1.55q0.85-1 2.025-1.55t2.475-0.55q2.35 0 3.925 1.575t1.575 3.925q0 1.15-0.387 2.25t-1.362 2.412-2.625 2.963-4.175 3.925l-1.45 1.3z"
3+
}
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import React from 'react';
2+
import Svg, {Path} from 'react-native-svg';
3+
4+
import {path} from './path.json';
5+
import type {IconProps} from '../icon-props';
6+
7+
const DEFAULT_SIZE = 24;
8+
const DEFAULT_COLOR = '#000';
9+
10+
export const FavoriteIcon: React.FC<IconProps> = ({color = DEFAULT_COLOR, size = DEFAULT_SIZE, ...props}) => (
11+
<Svg viewBox="0 0 24 24" width={size} height={size} {...props}>
12+
<Path fill={color} d={path} />
13+
</Svg>
14+
);
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"path": "M12 21l-1.45-1.3c-1.683-1.517-3.075-2.825-4.175-3.925s-1.975-2.083-2.625-2.95c-0.65-0.883-1.108-1.692-1.375-2.425-0.25-0.733-0.375-1.483-0.375-2.25 0-1.567 0.525-2.875 1.575-3.925s2.358-1.575 3.925-1.575c0.867 0 1.692 0.183 2.475 0.55s1.458 0.883 2.025 1.55c0.567-0.667 1.242-1.183 2.025-1.55s1.608-0.55 2.475-0.55c1.567 0 2.875 0.525 3.925 1.575s1.575 2.358 1.575 3.925c0 0.767-0.133 1.517-0.4 2.25-0.25 0.733-0.7 1.542-1.35 2.425-0.65 0.867-1.525 1.85-2.625 2.95s-2.492 2.408-4.175 3.925l-1.45 1.3zM12 18.3c1.6-1.433 2.917-2.658 3.95-3.675 1.033-1.033 1.85-1.925 2.45-2.675 0.6-0.767 1.017-1.442 1.25-2.025 0.233-0.6 0.35-1.192 0.35-1.775 0-1-0.333-1.833-1-2.5s-1.5-1-2.5-1c-0.783 0-1.508 0.225-2.175 0.675-0.667 0.433-1.125 0.992-1.375 1.675h-1.9c-0.25-0.683-0.708-1.242-1.375-1.675-0.667-0.45-1.392-0.675-2.175-0.675-1 0-1.833 0.333-2.5 1s-1 1.5-1 2.5c0 0.583 0.117 1.175 0.35 1.775 0.233 0.583 0.65 1.258 1.25 2.025 0.6 0.75 1.417 1.642 2.45 2.675 1.033 1.017 2.35 2.242 3.95 3.675z"
3+
}

0 commit comments

Comments
 (0)