Skip to content

Commit 6872b4a

Browse files
authored
Merge pull request #392 from mrzachnugent/@zach/rn-primitives-120
chore: update rn-primitives and other libs
2 parents 118607d + 577ec9a commit 6872b4a

File tree

10 files changed

+977
-585
lines changed

10 files changed

+977
-585
lines changed

apps/cli/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@react-native-reusables/cli",
3-
"version": "0.3.8",
3+
"version": "0.4.0",
44
"description": "Add react-native-reusables to your project.",
55
"publishConfig": {
66
"access": "public"

apps/docs/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"astro": "^4.4.9",
2828
"class-variance-authority": "^0.7.0",
2929
"clsx": "^2.1.0",
30-
"lucide-react": "^0.334.0",
30+
"lucide-react": "^0.511.0",
3131
"react": "19.0.0",
3232
"react-dom": "19.0.0",
3333
"sharp": "^0.32.5",

apps/showcase/app/(tabs)/components/_layout.tsx

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,10 @@ import type {
33
MaterialTopTabNavigationOptions,
44
} from '@react-navigation/material-top-tabs';
55
import { createMaterialTopTabNavigator } from '@react-navigation/material-top-tabs';
6-
import {
7-
useTheme,
8-
type ParamListBase,
9-
type TabNavigationState,
10-
} from '@react-navigation/native';
6+
import { useTheme, type ParamListBase, type TabNavigationState } from '@react-navigation/native';
117
import { Stack, withLayoutContext } from 'expo-router';
8+
import React from 'react';
129
import { useWindowDimensions } from 'react-native';
13-
1410
const { Navigator } = createMaterialTopTabNavigator();
1511

1612
const MaterialTopTabs = withLayoutContext<
@@ -24,9 +20,10 @@ export default function MaterialTopTabsLayout() {
2420
const { colors } = useTheme();
2521
const { width } = useWindowDimensions();
2622
return (
27-
<>
23+
<React.Fragment>
2824
<Stack.Screen options={{ headerShadowVisible: false }} />
2925
<MaterialTopTabs
26+
id={undefined}
3027
initialRouteName='index'
3128
screenOptions={{
3229
tabBarActiveTintColor: colors.text,
@@ -56,6 +53,6 @@ export default function MaterialTopTabsLayout() {
5653
}}
5754
/>
5855
</MaterialTopTabs>
59-
</>
56+
</React.Fragment>
6057
);
6158
}

apps/showcase/app/material-top-tabs/_layout.tsx

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,7 @@ import type {
33
MaterialTopTabNavigationOptions,
44
} from '@react-navigation/material-top-tabs';
55
import { createMaterialTopTabNavigator } from '@react-navigation/material-top-tabs';
6-
import {
7-
useTheme,
8-
type ParamListBase,
9-
type TabNavigationState,
10-
} from '@react-navigation/native';
6+
import { useTheme, type ParamListBase, type TabNavigationState } from '@react-navigation/native';
117
import { withLayoutContext } from 'expo-router';
128

139
const { Navigator } = createMaterialTopTabNavigator();
@@ -23,6 +19,7 @@ export default function MaterialTopTabsLayout() {
2319
const { colors } = useTheme();
2420
return (
2521
<MaterialTopTabs
22+
id={undefined}
2623
initialRouteName='index'
2724
screenOptions={{
2825
tabBarActiveTintColor: colors.text,

apps/showcase/app/navigation-menu.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { TextRef } from '@rn-primitives/types';
1+
import type { ViewRef } from '@rn-primitives/types';
22
import { useNavigation } from 'expo-router';
33
import * as React from 'react';
44
import { Platform, Pressable, StyleSheet, View } from 'react-native';
@@ -154,8 +154,8 @@ const components: { title: string; href: string; description: string }[] = [
154154
];
155155

156156
const ListItem = React.forwardRef<
157-
TextRef,
158-
React.ComponentPropsWithoutRef<typeof Text> & { title: string; href: string }
157+
ViewRef,
158+
React.ComponentPropsWithoutRef<typeof View> & { title: string; href: string }
159159
>(({ className, title, children, ...props }, ref) => {
160160
return (
161161
<View role='listitem'>

apps/showcase/app/table.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ const MIN_COLUMN_WIDTHS = [120, 120, 100, 120];
2424

2525
export default function TableScreen() {
2626
const { width } = useWindowDimensions();
27-
const [isPopoverOpen, setIsPopoverOpen] = React.useState(false);
2827
const insets = useSafeAreaInsets();
2928

3029
const columnWidths = React.useMemo(() => {
@@ -42,7 +41,7 @@ export default function TableScreen() {
4241
<TableHeader>
4342
<TableRow>
4443
<TableHead className='px-0.5' style={{ width: columnWidths[0] }}>
45-
<Popover open={isPopoverOpen} onOpenChange={setIsPopoverOpen}>
44+
<Popover>
4645
<PopoverTrigger asChild>
4746
<Button variant='ghost' size='sm' className='flex-row justify-start gap-3'>
4847
<Text className={cn('text-base text-muted-foreground font-medium')}>

apps/showcase/package.json

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -19,29 +19,29 @@
1919
"@react-native-community/slider": "4.5.6",
2020
"@react-navigation/material-top-tabs": "^7.0.0",
2121
"@react-navigation/native": "^7.0.0",
22-
"@rn-primitives/aspect-ratio": "~1.1.0",
23-
"@rn-primitives/collapsible": "~1.1.0",
24-
"@rn-primitives/label": "~1.1.0",
22+
"@rn-primitives/aspect-ratio": "~1.2.0",
23+
"@rn-primitives/collapsible": "~1.2.0",
24+
"@rn-primitives/label": "~1.2.0",
2525
"@rn-primitives/portal": "~1.2.0",
26-
"@rn-primitives/slider": "~1.1.0",
27-
"@rn-primitives/toast": "~1.1.0",
28-
"@rn-primitives/toolbar": "~1.1.0",
29-
"@rn-primitives/types": "~1.1.0",
26+
"@rn-primitives/slider": "~1.2.0",
27+
"@rn-primitives/toast": "~1.2.0",
28+
"@rn-primitives/toolbar": "~1.2.0",
29+
"@rn-primitives/types": "~1.2.0",
3030
"@rnr/reusables": "workspace:*",
3131
"@shopify/flash-list": "1.7.6",
3232
"@tanstack/react-table": "^8.11.7",
3333
"class-variance-authority": "^0.7.0",
3434
"clsx": "^2.1.0",
35-
"expo": "^53.0.7",
35+
"expo": "^53.0.9",
3636
"expo-font": "~13.3.1",
3737
"expo-haptics": "~14.1.4",
38-
"expo-linking": "~7.1.4",
38+
"expo-linking": "~7.1.5",
3939
"expo-navigation-bar": "~4.2.4",
40-
"expo-router": "~5.0.5",
40+
"expo-router": "~5.0.7",
4141
"expo-splash-screen": "~0.30.8",
4242
"expo-status-bar": "~2.2.3",
4343
"expo-system-ui": "~5.0.7",
44-
"lucide-react-native": "^0.507.0",
44+
"lucide-react-native": "^0.511.0",
4545
"nativewind": "^4.1.23",
4646
"react": "19.0.0",
4747
"react-dom": "19.0.0",

packages/reusables/package.json

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -142,41 +142,41 @@
142142
"@hookform/resolvers": "^3.3.4",
143143
"@react-native-community/slider": "4.5.5",
144144
"@react-navigation/native": "^7.0.0",
145-
"@rn-primitives/accordion": "~1.1.0",
146-
"@rn-primitives/alert-dialog": "~1.1.0",
147-
"@rn-primitives/aspect-ratio": "~1.1.0",
148-
"@rn-primitives/avatar": "~1.1.0",
149-
"@rn-primitives/checkbox": "~1.1.0",
150-
"@rn-primitives/collapsible": "~1.1.0",
151-
"@rn-primitives/context-menu": "~1.1.0",
152-
"@rn-primitives/dialog": "~1.1.0",
153-
"@rn-primitives/dropdown-menu": "~1.1.0",
154-
"@rn-primitives/hover-card": "~1.1.0",
155-
"@rn-primitives/label": "~1.1.0",
156-
"@rn-primitives/menubar": "~1.1.0",
157-
"@rn-primitives/navigation-menu": "~1.1.0",
158-
"@rn-primitives/popover": "~1.1.0",
145+
"@rn-primitives/accordion": "~1.2.0",
146+
"@rn-primitives/alert-dialog": "~1.2.0",
147+
"@rn-primitives/aspect-ratio": "~1.2.0",
148+
"@rn-primitives/avatar": "~1.2.0",
149+
"@rn-primitives/checkbox": "~1.2.0",
150+
"@rn-primitives/collapsible": "~1.2.0",
151+
"@rn-primitives/context-menu": "~1.2.0",
152+
"@rn-primitives/dialog": "~1.2.0",
153+
"@rn-primitives/dropdown-menu": "~1.2.0",
154+
"@rn-primitives/hover-card": "~1.2.0",
155+
"@rn-primitives/label": "~1.2.0",
156+
"@rn-primitives/menubar": "~1.2.0",
157+
"@rn-primitives/navigation-menu": "~1.2.0",
158+
"@rn-primitives/popover": "~1.2.0",
159159
"@rn-primitives/portal": "~1.2.0",
160-
"@rn-primitives/progress": "~1.1.0",
161-
"@rn-primitives/radio-group": "~1.1.0",
162-
"@rn-primitives/select": "~1.1.0",
163-
"@rn-primitives/separator": "~1.1.0",
164-
"@rn-primitives/slider": "~1.1.0",
165-
"@rn-primitives/slot": "~1.1.0",
166-
"@rn-primitives/switch": "~1.1.0",
167-
"@rn-primitives/table": "~1.1.0",
168-
"@rn-primitives/tabs": "~1.1.0",
169-
"@rn-primitives/toast": "~1.1.0",
170-
"@rn-primitives/toggle": "~1.1.0",
171-
"@rn-primitives/toggle-group": "~1.1.0",
172-
"@rn-primitives/toolbar": "~1.1.0",
173-
"@rn-primitives/tooltip": "~1.1.0",
174-
"@rn-primitives/types": "~1.1.0",
160+
"@rn-primitives/progress": "~1.2.0",
161+
"@rn-primitives/radio-group": "~1.2.0",
162+
"@rn-primitives/select": "~1.2.0",
163+
"@rn-primitives/separator": "~1.2.0",
164+
"@rn-primitives/slider": "~1.2.0",
165+
"@rn-primitives/slot": "~1.2.0",
166+
"@rn-primitives/switch": "~1.2.0",
167+
"@rn-primitives/table": "~1.2.0",
168+
"@rn-primitives/tabs": "~1.2.0",
169+
"@rn-primitives/toast": "~1.2.0",
170+
"@rn-primitives/toggle": "~1.2.0",
171+
"@rn-primitives/toggle-group": "~1.2.0",
172+
"@rn-primitives/toolbar": "~1.2.0",
173+
"@rn-primitives/tooltip": "~1.2.0",
174+
"@rn-primitives/types": "~1.2.0",
175175
"@shopify/flash-list": "1.7.6",
176176
"@tanstack/react-table": "^8.11.7",
177177
"class-variance-authority": "^0.7.0",
178178
"clsx": "^2.1.0",
179-
"lucide-react-native": "^0.507.0",
179+
"lucide-react-native": "^0.511.0",
180180
"nativewind": "^4.1.23",
181181
"react-hook-form": "^7.49.2",
182182
"react-native-calendars": "^1.1302.0",

packages/templates/starter-base/package.json

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,22 +14,22 @@
1414
},
1515
"dependencies": {
1616
"@react-navigation/native": "^7.0.0",
17-
"@rn-primitives/avatar": "~1.1.0",
18-
"@rn-primitives/portal": "~1.2.0",
19-
"@rn-primitives/progress": "~1.1.0",
20-
"@rn-primitives/slot": "~1.1.0",
21-
"@rn-primitives/tooltip": "~1.1.0",
22-
"@rn-primitives/types": "~1.1.0",
17+
"@rn-primitives/avatar": "~1.2.0",
18+
"@rn-primitives/portal": "~1.3.0",
19+
"@rn-primitives/progress": "~1.2.0",
20+
"@rn-primitives/slot": "~1.2.0",
21+
"@rn-primitives/tooltip": "~1.2.0",
22+
"@rn-primitives/types": "~1.2.0",
2323
"class-variance-authority": "^0.7.0",
2424
"clsx": "^2.1.0",
25-
"expo": "^53.0.7",
26-
"expo-linking": "~7.1.4",
25+
"expo": "^53.0.9",
26+
"expo-linking": "~7.1.5",
2727
"expo-navigation-bar": "~4.2.4",
28-
"expo-router": "~5.0.5",
28+
"expo-router": "~5.0.7",
2929
"expo-splash-screen": "~0.30.8",
3030
"expo-status-bar": "~2.2.3",
3131
"expo-system-ui": "~5.0.7",
32-
"lucide-react-native": "^0.507.0",
32+
"lucide-react-native": "^0.511.0",
3333
"nativewind": "^4.1.23",
3434
"react": "19.0.0",
3535
"react-dom": "19.0.0",

0 commit comments

Comments
 (0)