File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -141,7 +141,7 @@ const generateMainIconFile = (icon) => {
141141 const component = Case . pascal ( icon ) ;
142142 const componentCode = `import { type Icon, type IconProps } from 'phosphor-react-native'
143143
144- import IconBase from " ../lib/icon-base";
144+ import IconBase from ' ../lib/icon-base'
145145import weights from '../defs/${ component } '
146146
147147const I: Icon = ({...props }: IconProps) => (
Original file line number Diff line number Diff line change 11{
22 "name" : " phosphor-react-native" ,
3- "version" : " 3.0.3 " ,
3+ "version" : " 3.0.4 " ,
44 "description" : " Flexible icons for React Native" ,
55 "main" : " lib/commonjs/index.js" ,
66 "module" : " lib/module/index.js" ,
Original file line number Diff line number Diff line change 11import React , { createContext } from 'react' ;
2- import { StyleProp , TextStyle , ViewStyle } from 'react-native' ;
2+ import type { StyleProp , TextStyle , ViewStyle } from 'react-native' ;
33
44export type IconWeight =
55 | 'thin'
@@ -11,15 +11,15 @@ export type IconWeight =
1111
1212export interface IconProps {
1313 color ?: string ;
14+ duotoneColor ?: string ;
15+ duotoneOpacity ?: number ;
16+ mirrored ?: boolean ;
1417 size ?: string | number ;
15- weight ?: IconWeight ;
1618 style ?: StyleProp < ViewStyle | TextStyle > ;
17- mirrored ?: boolean ;
1819 testID ?: string ;
19- duotoneColor ?: string ;
20- duotoneOpacity ?: number ;
2120 title ?: string ; // SVGRProps
2221 titleId ?: string ; // SVGRProps
22+ weight ?: IconWeight ;
2323}
2424
2525export type Icon = React . FC < IconProps > ;
You can’t perform that action at this time.
0 commit comments