0

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```


    

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.