From b3326aed7bbc47a287533a76a94b42368bca562f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Me=CC=81de=CC=81de=CC=81=20Raymond=20KPATCHAA?= Date: Sat, 28 Mar 2026 19:41:15 +0100 Subject: [PATCH 1/3] fix: correct type imports and reorder IconProps fields for consistency. Closes #86 --- src/lib/index.tsx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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; From 45cac308690cb52cdf0453573e945067a4252567 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Me=CC=81de=CC=81de=CC=81=20Raymond=20KPATCHAA?= Date: Sat, 28 Mar 2026 19:42:14 +0100 Subject: [PATCH 2/3] fix: standardize import quotes in generate-svg.mjs --- generator/generate-svg.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) => ( From 8957d596acad50999dfb68fcfa0fabe861d4f809 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Me=CC=81de=CC=81de=CC=81=20Raymond=20KPATCHAA?= Date: Sat, 28 Mar 2026 19:45:32 +0100 Subject: [PATCH 3/3] chore: release 3.0.4 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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",