Skip to content

Latest commit

 

History

History
15 lines (11 loc) · 384 Bytes

File metadata and controls

15 lines (11 loc) · 384 Bytes

react-native-app-helpers/SvgIcon

Represents a SVG icon imported using react-native-svg-transformer. A fill color override is available.

Usage

import * as React from "react";
import type { SvgIcon } from "react-native-app-helpers";

const example: React.FunctionComponent<{
  readonly icon: SvgIcon;
}> = ({ icon }) => React.createElement(icon, { fill: `red` });