"ARTShape" was not found in the UIManager - React Native
Im using React native Expo(36.0.0). I am developing dashboard screen for my project. So, I just want to show some pie charts in dashboard screen. I have tried many libraries for all kind of charts. Nothing worked for me. Finally I have used react-native-pie with the help of youtube video. Still it is showing me a same error.
And i am new to React native.
Thanks!
import React, { Component } from 'react';
import { View, Text, ScrollView, StyleSheet, TouchableOpacity, ActivityIndicator, Dimensions } from 'react-native';
import Icon from 'react-native-vector-icons/Ionicons';
import Pie from 'react-native-pie';
class HomeScreen extends Component
{
constructor(props)
{
super(props);
}
render()
{
return(
<ScrollView>
<View style={styles.homeContainer}>
<View style={{paddingVertical:15, flexDirection:'row', width:350, justifyContent:'center'}}>
<Pie
radius={80}
sections={[
{
percentage:10,
color:'red'
},
{
percentage:30,
color:'green'
},
{
percentage:60,
color:'orange'
}
]}
/>
</View>
</View>
</ScrollView>
)
}
}
const styles = StyleSheet.create({
homeContainer:
{
alignItems:'center',
justifyContent:'center'
},
})
export default HomeScreen;
I think, this is not added in RN 0.62 with auto linking feature, so you can do it like this:
go to your ios folder and your project and click on podfile and add the below line with the other similar pods or add it to the end of the podfile.
pod 'ReactNativeART', :path => '../node_modules/@react-native-community/art'
after that go to your editor terminal open your project from the root folder and then:
cd ios
pod install
cd ..
react-native run-ios