fix: align react-native svg mock children typing

This commit is contained in:
copilot-swe-agent[bot]
2026-09-22 05:56:57 +00:00
committed by GitHub
parent 04ca7b993d
commit 4f99c9974a
@@ -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;