Skip to content

Commit 70d211a

Browse files
committed
fix: chevron icons
1 parent 0c28405 commit 70d211a

File tree

2 files changed

+15
-10
lines changed

2 files changed

+15
-10
lines changed
Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,23 @@
11
import React from 'react';
2-
import Svg, { Path } from 'react-native-svg';
2+
import { I18nManager } from 'react-native';
3+
import Svg, { G, Path } from 'react-native-svg';
34

45
import { IconProps } from '../utils/base';
56
import { useLegacyColors } from '../theme/useLegacyColors';
67

78
export const GoBack: React.FC<IconProps> = ({ height = 24, width = 24 }) => {
89
const { black } = useLegacyColors();
10+
911
return (
10-
<Svg fill='none' height={height} viewBox={`0 0 ${height} ${width}`} width={width}>
11-
<Path
12-
clipRule='evenodd'
13-
d='M15.694 18.6943C16.102 18.2867 16.102 17.6259 15.694 17.2184L10.4699 12L15.694 6.78165C16.102 6.37408 16.102 5.71326 15.694 5.30568C15.2859 4.89811 14.6244 4.8981 14.2164 5.30568L8.30602 11.2096C8.08861 11.4267 7.98704 11.7158 8.00132 12.0002C7.98713 12.2844 8.0887 12.5733 8.30603 12.7904L14.2164 18.6943C14.6244 19.1019 15.2859 19.1019 15.694 18.6943Z'
14-
fill={black}
15-
fillRule='evenodd'
16-
/>
12+
<Svg fill='none' height={height} viewBox='0 0 24 24' width={width}>
13+
<G transform={I18nManager.isRTL ? 'matrix(-1 0 0 1 24 0)' : undefined}>
14+
<Path
15+
clipRule='evenodd'
16+
d='M15.694 18.6943C16.102 18.2867 16.102 17.6259 15.694 17.2184L10.4699 12L15.694 6.78165C16.102 6.37408 16.102 5.71326 15.694 5.30568C15.2859 4.89811 14.6244 4.8981 14.2164 5.30568L8.30602 11.2096C8.08861 11.4267 7.98704 11.7158 8.00132 12.0002C7.98713 12.2844 8.0887 12.5733 8.30603 12.7904L14.2164 18.6943C14.6244 19.1019 15.2859 19.1019 15.694 18.6943Z'
17+
fill={black}
18+
fillRule='evenodd'
19+
/>
20+
</G>
1721
</Svg>
1822
);
1923
};

examples/SampleApp/src/icons/GoForward.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
import React from 'react';
2+
import { I18nManager } from 'react-native';
23
import Svg, { G, Path } from 'react-native-svg';
34

45
import { IconProps } from '../utils/base';
56

67
export const GoForward: React.FC<IconProps> = ({ height = 20, width = 20, ...rest }) => {
78
return (
8-
<Svg fill='none' height={height} viewBox={`0 0 ${height} ${width}`} width={width}>
9-
<G>
9+
<Svg fill='none' height={height} viewBox='0 0 20 20' width={width}>
10+
<G transform={I18nManager.isRTL ? 'matrix(-1 0 0 1 20 0)' : undefined}>
1011
<Path
1112
d='M7.91675 15.2096L13.1251 10.0013L7.91675 4.79297'
1213
strokeWidth={1.5}

0 commit comments

Comments
 (0)