From 4f99c9974a530038b874df3f40ac6cba83227789 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 22 Sep 2026 05:56:57 +0000 Subject: [PATCH] fix: align react-native svg mock children typing --- .../lucide-react-native/__mocks__/react-native-svg/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/lucide-react-native/__mocks__/react-native-svg/index.ts b/packages/lucide-react-native/__mocks__/react-native-svg/index.ts index 308ff57fe..4a95a054f 100644 --- a/packages/lucide-react-native/__mocks__/react-native-svg/index.ts +++ b/packages/lucide-react-native/__mocks__/react-native-svg/index.ts @@ -5,8 +5,8 @@ export type { SvgProps } from 'react-native-svg'; const createComponent = function (name: string) { // React Native identifies elements by `testID`, the DOM equivalent is `data-testid` - const component = ({ testID, ...props }: LucideProps) => { - return React.createElement(name, { ...props, 'data-testid': testID }, props.children); + const component = ({ testID, children, ...props }: LucideProps) => { + return React.createElement(name, { ...props, children, 'data-testid': testID }); }; component.displayName = name;