-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace uses of PathIcon & FontIcon with FURN Icojn
- Loading branch information
Showing
4 changed files
with
517 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import React from 'react'; | ||
import {SvgIcon} from '@fluentui-react-native/icon'; | ||
import type {SvgIconProps} from '@fluentui-react-native/icon'; | ||
import Svg, {G, Path} from 'react-native-svg'; | ||
import type {SvgProps} from 'react-native-svg'; | ||
|
||
const PathIcon = (props: any) => { | ||
const svgSrc: React.FunctionComponent<SvgProps> = () => { | ||
const path = props.data; | ||
|
||
return ( | ||
<Svg> | ||
<G> | ||
<Path d={path} fill="black" /> | ||
</G> | ||
</Svg> | ||
); | ||
}; | ||
|
||
const svgProps: SvgIconProps = { | ||
src: svgSrc, | ||
}; | ||
|
||
return <SvgIcon {...svgProps} />; | ||
}; | ||
|
||
export {PathIcon}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.