可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
I'm new to react-native and I want to use chart in my application. I've been trying use some libs:
- react-native-pathjs-charts
- react-native-ios-charts
But they are not really good choices (bad performance, hard to use). I want to ask, which of the followings is the best solution for me !!!?
- Use D3 + ART draw chart by my self.
- Find a good native lib and try to port it to react-native.
回答1:
You can check my repo: https://github.com/wuxudong/react-native-charts-wrapper
Support both android and ios, Latest MpAndroidChart and Charts are used.
回答2:
I am late to the game but victory-native.
https://github.com/FormidableLabs/victory-native
It is very declarative and the API is very usable.
回答3:
I would try react-native-svg-charts, it's easy to setup and very customisable
回答4:
You should have a look here: https://js.coach/react-native?search=chart, you'll probably find something that would suit your needs