mirror of
https://github.com/lucide-icons/lucide.git
synced 2026-11-17 14:28:25 +00:00
fix: align react-native svg mock children typing
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user