Jagadish Upadhyay
Jagadish Upadhyay

Reputation: 1264

Application crashes after using react-native-chart-android

I am making an app using react native version 0.29. I need an chart library for my android app. After embedding react-native-chart-android in my app I got the following error.

enter image description here

Upvotes: 1

Views: 635

Answers (1)

Jagadish Upadhyay
Jagadish Upadhyay

Reputation: 1264

I got the answer for the problem. This library is written for below RN v 0.25. So they are using import React,{ requireNativeComponent, Component, PropTypes, View } from 'react-native'; in their import statements. For RN updated version they should have import React and Component from react. For that I will raise a PR in Github.

Upvotes: 1

Related Questions