Skip to content

Commit dc840ed

Browse files
authored
chore: add TextStyle to style prop and bump version to 3.0.2, upgrade dependencies (#84)
1 parent cf1c7f7 commit dc840ed

File tree

3 files changed

+568
-524
lines changed

3 files changed

+568
-524
lines changed

package.json

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "phosphor-react-native",
3-
"version": "3.0.1",
3+
"version": "3.0.2",
44
"description": "Flexible icons for React Native",
55
"main": "lib/commonjs/index.js",
66
"module": "lib/module/index.js",
@@ -38,17 +38,17 @@
3838
"devDependencies": {
3939
"@commitlint/config-conventional": "^19.8.1",
4040
"@eslint/eslintrc": "^3.3.1",
41-
"@eslint/js": "^9.36.0",
42-
"@release-it/conventional-changelog": "^10.0.1",
41+
"@eslint/js": "^9.39.1",
42+
"@release-it/conventional-changelog": "^10.0.2",
4343
"@svgr/babel-plugin-add-jsx-attribute": "^8.0.0",
4444
"@svgr/core": "^8.1.0",
4545
"@svgr/plugin-jsx": "^8.1.0",
4646
"@svgr/plugin-svgo": "^8.1.0",
4747
"@types/eslint__js": "^8.42.3",
4848
"@types/jest": "^29.5.14",
49-
"@types/react": "^19.1.14",
49+
"@types/react": "^19.2.7",
5050
"@types/react-native": "0.73.0",
51-
"caniuse-lite": "^1.0.30001745",
51+
"caniuse-lite": "^1.0.30001757",
5252
"case": "^1.6.3",
5353
"chalk": "^5",
5454
"commitlint": "^19.8.1",
@@ -62,13 +62,13 @@
6262
"jest": "^29.7.0",
6363
"pod-install": "^0.3.10",
6464
"prettier": "^3.6.2",
65-
"react": "19.1.1",
66-
"react-native": "0.81.4",
67-
"react-native-builder-bob": "^0.40.13",
68-
"react-native-svg": "^15.13.0",
65+
"react": "19.2.0",
66+
"react-native": "0.82.1",
67+
"react-native-builder-bob": "^0.40.16",
68+
"react-native-svg": "^15.15.0",
6969
"release-it": "^18.1.2",
70-
"typescript": "^5.9.2",
71-
"typescript-eslint": "^8.44.1"
70+
"typescript": "^5.9.3",
71+
"typescript-eslint": "^8.48.0"
7272
},
7373
"peerDependencies": {
7474
"react": "*",

src/lib/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React, { createContext } from 'react';
2-
import { StyleProp, ViewStyle } from 'react-native';
2+
import { StyleProp, TextStyle, ViewStyle } from 'react-native';
33

44
export type IconWeight =
55
| 'thin'
@@ -13,7 +13,7 @@ export interface IconProps {
1313
color?: string;
1414
size?: string | number;
1515
weight?: IconWeight;
16-
style?: StyleProp<ViewStyle>;
16+
style?: StyleProp<ViewStyle | TextStyle>;
1717
mirrored?: boolean;
1818
testID?: string;
1919
duotoneColor?: string;

0 commit comments

Comments
 (0)