I'm working on a monorepo project that includes both React Native and Next.js (Web). I'm encountering an issue where I am using react-native-svg for rendering SVGs. The problem arises when the code runs on both platforms, and I get syntax errors due to platform-specific imports.
../../node_modules/react-native/Libraries/Utilities/codegenNativeComponent.js
../../node_modules/react-native-svg/lib/module/fabric/CircleNativeComponent.js
../../node_modules/react-native-svg/lib/module/fabric/index.js
../../node_modules/react-native-svg/lib/module/ReactNativeSVG.js
../../node_modules/react-native-svg/lib/module/index.js
../../libs/shared-ui/src/assets/icons/SvgIcon.native.tsx
../../libs/shared-ui/src/assets/icons/SvgIcon.tsx
../../libs/shared-ui/src/components/CustomTextInput.tsx
../../libs/shared-ui/src/index.ts
./src/app/page.tsx```