Repo demonstrating the issue using svgr with both TypeScript and ReactNative. Error appears if you run yarn tsc --noEmit