I am currently using Highcharts for my web application, but now I am creating an Android application using action-native. Will Highcharts work with React-native.
HighCharts works with the DOM. You cannot use HighCharts or DOM-dependent graphics libraries directly in React Native, but you can use graphics libraries in WebView using React Native. I did not use High Charts specifically, but I used other graphic libraries with WebView, and it works fine.
Here you can use this component to send config json to the component and it will be displayed
https://github.com/TradingPal/react-native-highcharts
Two main ways to use Highcharts in a React Native application:
For installation:
npm install @highcharts/highcharts-react-native
NOTE. There are other unofficial shells , such as response-native-highcharts , but I did not use them.
You can use this module: react-native-highcharts .
It works using the web engine on Android or iOS and the JavaScript Highcharts module for rendering dynamic charts.
Example:
<ChartView style={{height:300}} config={conf}></ChartView>
Add this line to the ChartView component: originWhitelist = {['']}
<ChartView style={{height:300}} config={conf} originWhitelist={['']}></ChartView>