Error: Invariant Violation: requireNativeComponent: 'RNSVGSvgView' was not found in the UIManager
Solution:
Example:
import React from 'react';
import { View, StyleSheet } from 'react-native';
import Svg, { Circle, Rect } from 'react-native-svg';
const SvgExample = () => {
return (
);
};
const styles = StyleSheet.create({
container: {
flex: 1,
justifyContent: 'center',
alignItems: 'center',
},
});
export default SvgExample;
Try to do this:
npm install react-native-svg --save againreact-native link react-native-svgwatchman watch-del-allrm -rf node_modules/ && yarn cache clean && yarn install
Then, in another terminal:
npm start -- --reset-cache
Before starting your iOS app with react-native run-ios, you have to manually add libRNSVG.a to your Linked Frameworks and Libraries in Xcode.
I solved the issue by using 'npx expo install react-native-svg' instead of 'npm i react-native-svg'.
Now, 'react-native-wagmi-charts' works properly, but '@rainbow-me/animated-charts' shows another error.