diff --git a/generator/generate-svg.mjs b/generator/generate-svg.mjs index d2bd3f2c..c5742ee1 100644 --- a/generator/generate-svg.mjs +++ b/generator/generate-svg.mjs @@ -141,7 +141,7 @@ const generateMainIconFile = (icon) => { const component = Case.pascal(icon); const componentCode = `import { type Icon, type IconProps } from 'phosphor-react-native' -import IconBase from "../lib/icon-base"; +import IconBase from '../lib/icon-base' import weights from '../defs/${component}' const I: Icon = ({...props }: IconProps) => ( diff --git a/package.json b/package.json index 3353d085..97152ff8 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "phosphor-react-native", - "version": "3.0.3", + "version": "3.0.4", "description": "Flexible icons for React Native", "main": "lib/commonjs/index.js", "module": "lib/module/index.js", diff --git a/src/lib/index.tsx b/src/lib/index.tsx index 86ed0ad5..f3aa238f 100644 --- a/src/lib/index.tsx +++ b/src/lib/index.tsx @@ -1,5 +1,5 @@ import React, { createContext } from 'react'; -import { StyleProp, TextStyle, ViewStyle } from 'react-native'; +import type { StyleProp, TextStyle, ViewStyle } from 'react-native'; export type IconWeight = | 'thin' @@ -11,15 +11,15 @@ export type IconWeight = export interface IconProps { color?: string; + duotoneColor?: string; + duotoneOpacity?: number; + mirrored?: boolean; size?: string | number; - weight?: IconWeight; style?: StyleProp; - mirrored?: boolean; testID?: string; - duotoneColor?: string; - duotoneOpacity?: number; title?: string; // SVGRProps titleId?: string; // SVGRProps + weight?: IconWeight; } export type Icon = React.FC;