Closed cablegunmaster closed 7 years ago
It now work on 0.20,I will update to 0.25.
Awesome! :+1: Trying to get this working in my script and wondering how to use the import function.
Example says:
var {
BarChart,
CombinedChart
}=require('../index.android');
But in react-native you would more expect something like this:
import React, {
Component,
View,
Text
} from 'react-native';
How can I import it like this?
@cablegunmaster yes , web have to do this in 0.25,I will update it in this weekend。
@cablegunmaster you can change it and test it and pull request
did it work for 0.25 now? :(. I try to use it with sample data but nothing show.
@tuananhdn no ,now support 0.20
is still on 0.20?
you can use it edit or copy resouce to you project to make some simple chart work, you will find it work in the lastest version of react native,do it.
@lakeoffaith thanks
Yes for the new version of react native you would do:
import { BarChart, CombinedChart, LineChart, } from 'react-native-chart-android';
The documentation hasn't been updated.
Tried to follow the installation of this plugin but the MainActivity is not the same as described. Could you test it , and check if its possible to run under v0.25?
app/src/main/java/com/app/MainActivity.java
Update: added the line in getPackages() testing now if it works on v0.25