This PR resolved #891 ## Summary When updating the imports of react-native-svg there is no check on the importKind. This would cause a wrong update import and a crash in the cli. This bug occurs when combining expandProp, native and typescript in the config. ## Current Output ```js import * as React from "react"; import Svg, { Path } from "react-native-svg"; // ^^^ ^^^^^ import type { SvgProps, Svg, Path } from "react-native-svg"; // ^^^^^^^^^ ``` ## Fixed Output ```js import * as React from "react"; import Svg, { Path } from "react-native-svg"; import type { SvgProps } from "react-native-svg"; ``` ## Test plan Run the cli with expandProp, native and typescript in the config. It used to crash and complain about duplicate imports. ## Acknowledgement Thanks to @atomicpages for their investigative work, it helped me track the bug.
This issue appears to be discussing a feature request or bug report related to the repository. Based on the content, it seems to be resolved. The issue was opened by MohammadKurjieh and has received 4 comments.