0

I just trying to work with react-native-svg in my ionic react project and I was able to make it successful with react-native-web. But then if I do import like

import {StyleSheet, View} from 'react-native';

it says

cannot find module react-native.

how can i solve this?

enter image description here

LVW23
  • 85
  • 2
  • 13
  • 1
    web not support `react-native` module – Nisharg Shah Jan 04 '21 at 07:59
  • It's a miracle even being able to install and use react-native-svg. The problem is, react-native is completely something else from ionic. I don't think you can combine react-native with ionic, probably no one has tried. If you want to use react-native, just use react-native. If you want to use ionic, just use ionic. react-native-svg probably did install react-native, but it is just it's dependency right now. you can try to install it with npm or yarn but i don't think you can even get it work, just as i said earlier. https://ionicframework.com/resources/articles/ionic-react-vs-react-native – Ugur Eren Jan 04 '21 at 08:06
  • First you need to check what is ionic-react. from my point you misunderstand ionic-react. in ionic-react you can use reactjs coding standard instead of angular in Ionic – Kathirpandian K Jan 04 '21 at 08:21

0 Answers0