Skip to content

Commit 19319e4

Browse files
committed
feat(update): minor changes
1 parent e6116ad commit 19319e4

File tree

7 files changed

+204
-291
lines changed

7 files changed

+204
-291
lines changed

.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
node-linker=hoisted

package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"lint": "eslint src/ test/",
2424
"spec": "jest",
2525
"check": "tsc --noEmit",
26-
"test": "npm run typecheck && npm run spec && npm run lint && npm run prettycheck",
26+
"test": "npm run check && npm run spec && npm run lint",
2727
"prepublishOnly": "npm run build"
2828
},
2929
"peerDependencies": {
@@ -37,9 +37,9 @@
3737
"@babel/core": "^7.26.0",
3838
"@babel/preset-env": "^7.26.0",
3939
"@babel/runtime": "^7.26.0",
40-
"@mgcrea/eslint-config-react-native": "^0.12.18",
40+
"@mgcrea/eslint-config-react-native": "^0.12.20",
4141
"@testing-library/jest-native": "^5.4.3",
42-
"@testing-library/react-native": "^12.8.1",
42+
"@testing-library/react-native": "^12.9.0",
4343
"@tsconfig/react-native": "^3.0.5",
4444
"@types/jest": "^29.5.14",
4545
"@types/react": "^18.3.12",
@@ -52,10 +52,10 @@
5252
"prettier": "^3.3.3",
5353
"prettier-plugin-organize-imports": "^4.1.0",
5454
"react": "^18.3.1",
55-
"react-native": "^0.76.2",
56-
"react-native-gesture-handler": "^2.21.1",
55+
"react-native": "^0.76.5",
56+
"react-native-gesture-handler": "^2.21.2",
5757
"react-native-haptic-feedback": "^2.3.3",
58-
"react-native-reanimated": "^3.16.2",
58+
"react-native-reanimated": "^3.16.5",
5959
"react-test-renderer": "^18.3.1",
6060
"tsc-alias": "^1.8.10",
6161
"tsup": "^8.3.5",

pnpm-lock.yaml

Lines changed: 192 additions & 274 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/features/sort/components/DraggableGrid.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export const DraggableGrid: FunctionComponent<PropsWithChildren<DraggableGridPro
2020
size,
2121
style: styleProp,
2222
}) => {
23-
const initialOrder = useChildrenIds(children);
23+
const childrenIds = useChildrenIds(children);
2424

2525
const style = useMemo(
2626
() =>
@@ -38,7 +38,7 @@ export const DraggableGrid: FunctionComponent<PropsWithChildren<DraggableGridPro
3838
useDraggableGrid({
3939
direction: style.flexDirection,
4040
gap: style.gap,
41-
initialOrder,
41+
childrenIds,
4242
onOrderChange,
4343
onOrderUpdate,
4444
shouldSwapWorklet,

src/features/sort/components/DraggableStack.tsx

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,4 @@
1-
import React, {
2-
forwardRef,
3-
useEffect,
4-
useImperativeHandle,
5-
useMemo,
6-
type FunctionComponent,
7-
type PropsWithChildren,
8-
} from "react";
1+
import React, { forwardRef, useEffect, useImperativeHandle, useMemo, type PropsWithChildren } from "react";
92
import { type FlexStyle, type ViewProps } from "react-native";
103
import Animated, { runOnUI } from "react-native-reanimated";
114
import { useChildrenIds } from "../../../hooks";

src/features/sort/hooks/useDraggableSort.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import { useEffect } from "react";
21
import { LayoutRectangle } from "react-native";
32
import { runOnJS, useAnimatedReaction, useSharedValue } from "react-native-reanimated";
43
import { useDndContext } from "../../../DndContext";

test/setup.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
/* eslint-disable @typescript-eslint/no-unsafe-call */
55

66
import "@testing-library/jest-native/extend-expect";
7+
import "@testing-library/react-native/extend-expect";
8+
79
require("react-native-reanimated").setUpTests();
810

911
jest.mock("react-native-reanimated", () => require("react-native-reanimated/mock"));

0 commit comments

Comments
 (0)