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;