Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion generator/generate-svg.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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) => (
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
10 changes: 5 additions & 5 deletions src/lib/index.tsx
Original file line number Diff line number Diff line change
@@ -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'
Expand All @@ -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<ViewStyle | TextStyle>;
mirrored?: boolean;
testID?: string;
duotoneColor?: string;
duotoneOpacity?: number;
title?: string; // SVGRProps
titleId?: string; // SVGRProps
weight?: IconWeight;
}

export type Icon = React.FC<IconProps>;
Expand Down
Loading