Skip to content

Commit 34e1b9c

Browse files
committed
fix: wip
1 parent 28e58ad commit 34e1b9c

File tree

12 files changed

+320
-48
lines changed

12 files changed

+320
-48
lines changed

example/.env

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# EXPO_UNSTABLE_METRO_OPTIMIZE_GRAPH=1
2+
# EXPO_UNSTABLE_TREE_SHAKING=1

example/App.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import {
1313
Image,
1414
TouchableOpacity,
1515
} from 'react-native';
16-
import * as IconPack from 'phosphor-react-native';
16+
import * as IconPack from @mrkpatchaa/phosphor-react-native';
1717
import PhosphorLogo from './phosphor-mark-tight-yellow.png';
1818

1919
// eslint-disable-next-line @typescript-eslint/no-unused-vars

example/app/(tabs)/_layout.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { Tabs } from 'expo-router';
22
import React from 'react';
33

4-
// import List from 'phosphor-react-native/src/icons/List';
4+
import List from '@mrkpatchaa/phosphor-react-native/src/icons/List';
55
// import TestTube from '@/components/icons/icons/TestTube';
66
import { Colors } from '@/constants/Colors';
77
import { useColorScheme } from '@/hooks/useColorScheme';
@@ -20,9 +20,9 @@ export default function TabLayout() {
2020
name="index"
2121
options={{
2222
title: 'All icons',
23-
// tabBarIcon: ({ color, focused }) => (
24-
// <List weight={focused ? 'fill' : 'light'} color={color} />
25-
// ),
23+
tabBarIcon: ({ color, focused }) => (
24+
<List weight={focused ? 'fill' : 'light'} color={color} />
25+
),
2626
}}
2727
/>
2828
{/* <Tabs.Screen

example/app/(tabs)/test-lab.tsxold

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import {
1414
import { SafeAreaView } from 'react-native-safe-area-context';
1515
import PhosphorLogo from '@/assets/images/phosphor-mark-tight-yellow.png';
1616

17-
import { Icon, iconList } from 'phosphor-react-native/src';
17+
import { Icon, iconList } from '@mrkpatchaa/phosphor-react-native/src';
1818

1919
export default function TestLabScreen() {
2020
const [toggleActive, setToggleActive] = useState(false);

example/components/home-subset.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@ import {
1212
TouchableOpacity,
1313
} from 'react-native';
1414
import { SafeAreaView } from 'react-native-safe-area-context';
15-
import { IconWeight, Icon } from 'phosphor-react-native/src';
15+
import { IconWeight, Icon } from '@mrkpatchaa/phosphor-react-native';
16+
import { Camera } from 'lucide-react-native';
17+
1618
import PhosphorLogo from '@/assets/images/phosphor-mark-tight-yellow.png';
1719

1820
const weights = ['thin', 'light', 'regular', 'bold', 'fill', 'duotone'];
@@ -101,6 +103,7 @@ export default function HomeScreen() {
101103
mirrored={mirrorActive}
102104
color={iconColor}
103105
/>
106+
<Camera />
104107
<Text style={styles.iconName}>{name}</Text>
105108
</View>
106109
)}

example/components/home.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import {
1212
TouchableOpacity,
1313
} from 'react-native';
1414
import { SafeAreaView } from 'react-native-safe-area-context';
15-
import { IconWeight, Icon, iconList } from 'phosphor-react-native/src';
15+
import { IconWeight, Icon, iconList } from '@mrkpatchaa/phosphor-react-native/src';
1616
import PhosphorLogo from '@/assets/images/phosphor-mark-tight-yellow.png';
1717

1818
const weights = ['thin', 'light', 'regular', 'bold', 'fill', 'duotone'];

example/metro.config.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,10 @@ config.resolver.nodeModulesPaths = [
2424
// 3. Force Metro to resolve (sub)dependencies only from the `nodeModulesPaths`
2525
config.resolver.disableHierarchicalLookup = true;
2626

27+
// config.transformer.getTransformOptions = async () => ({
28+
// transform: {
29+
// experimentalImportSupport: true,
30+
// },
31+
// });
32+
2733
module.exports = config;

example/package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
"lint": "eslint . --fix"
1111
},
1212
"dependencies": {
13+
"@mrkpatchaa/phosphor-react-native": "^2.2.2",
1314
"@react-navigation/native": "^7.0.0",
1415
"expo": "^52.0.0",
1516
"expo-constants": "~17.0.3",
@@ -18,21 +19,22 @@
1819
"expo-splash-screen": "~0.29.18",
1920
"expo-status-bar": "~2.0.0",
2021
"expo-system-ui": "~4.0.6",
22+
"lucide-react-native": "^0.469.0",
2123
"react": "18.3.1",
2224
"react-native": "0.76.5",
2325
"react-native-gesture-handler": "~2.20.2",
2426
"react-native-reanimated": "~3.16.1",
2527
"react-native-safe-area-context": "4.12.0",
2628
"react-native-screens": "~4.1.0",
27-
"react-native-svg": "15.8.0",
28-
"phosphor-react-native": "file:.."
29+
"react-native-svg": "15.8.0"
2930
},
3031
"devDependencies": {
3132
"@babel/core": "^7.24.0",
3233
"@eslint/js": "^9.9.0",
3334
"@types/react": "~18.3.12",
3435
"eslint": "9.x",
3536
"eslint-plugin-react": "^7.35.0",
37+
"expo-atlas": "^0.4.0",
3638
"globals": "^15.9.0",
3739
"typescript": "~5.3.3",
3840
"typescript-eslint": "^8.0.1"

0 commit comments

Comments
 (0)