Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: Unable to resolve module @shopify/react-native-skia #23

Closed
surethink opened this issue Feb 18, 2023 · 7 comments
Closed

Error: Unable to resolve module @shopify/react-native-skia #23

surethink opened this issue Feb 18, 2023 · 7 comments

Comments

@surethink
Copy link

hi there,

First of all, it seems that I should import SvgChart, { SVGRenderer } from 'wrn-echarts', not 'wrn-echarts/svgChart'?

I imports Svg Chart only, but when building app, there is an error: Unable to resolve module @shopify/react-native-skia. I don't want to import the skia pkg

needs help
thank you for the library

@zhiqingchen
Copy link
Member

#13 (comment)

@zhiqingchen
Copy link
Member

@surethink
Copy link
Author

thanks for your reply. it works.

I use GraphChart to render about 20 more items with avatar image on ios simulator and the chart showed out successfully. but I found the screen was stuck at some time, app became slow after that, even slower than my web view based solution. I'm not sure what happened, can you give me some advice?

just follow the example code, everything is the same except the chart type and data source

import SvgChart, { SVGRenderer } from 'wrn-echarts/lib/module/svgChart';
import * as echarts from 'echarts/core';
import {GraphChart} from 'echarts/charts';

// register extensions
echarts.use([
GraphChart,
SVGRenderer,
])

@zhiqingchen
Copy link
Member

There are still some known issues with this project, so you can download the APP to experience it before you start.

@zhiqingchen
Copy link
Member

Since this issue has been fixed, this issue will be closed and if there are other issues, feel free to open a new issue

@NguyenHoangMinhkkkk
Copy link

i'm already install RNSvg, then install @wuba/react-native-echarts, but seem like it require Skia even when i don't import anything relative with Skia

Screenshot 2023-04-14 at 08 44 39

@zhiqingchen
Copy link
Member

zhiqingchen commented Apr 14, 2023

hi @NguyenHoangMinhkkkk have you try

import SvgChart, { SVGRenderer } from '@wuba/react-native-echarts/svgChart';

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants