iconoir/packages/iconoir-react-native/src/Search.tsx

35 lines
806 B
TypeScript
Raw Normal View History

import * as React from "react";
import Svg, { SvgProps, Path } from "react-native-svg";
import { IconoirContext } from "./IconoirContext";
function SvgSearch(
passedProps: SvgProps,
svgRef?: React.Ref<React.Component<SvgProps>>
) {
const context = React.useContext(IconoirContext);
2023-01-11 19:09:27 +01:00
const props = {
...context,
...passedProps,
};
return (
<Svg
width="1.5em"
height="1.5em"
viewBox="0 0 24 24"
2023-01-28 19:16:15 +01:00
strokeWidth={1.5}
fill="none"
color="currentColor"
ref={svgRef}
{...props}
>
<Path
2023-01-28 19:16:15 +01:00
d="M17 17l4 4M3 11a8 8 0 1016 0 8 8 0 00-16 0z"
stroke="currentColor"
strokeLinecap="round"
strokeLinejoin="round"
/>
</Svg>
);
}
const ForwardRef = React.forwardRef(SvgSearch);
export default ForwardRef;