No component found for view with name “ARTShape”

This post has the solution for the problem: No component found for view with name “ARTShape”. This problem can be faced while working with Pie charts or the graphs where you need different shapes. I have faced this issue while working with Pie Chart in React Native. This problem can be faced while working with IOS.

Solution:

To solve this problem you need to link the ART library to your React Native project for IOS. You’ll find the React ART library in node_modules/react-native/Libraries/ART/ART.xcodeproj. To Link, the ART library for the IOS open the ProjectName.xcodeproj in Xcode

You will see Project Structure in Left Menu. Click on the Libraries option to expand.

Navigate to node_modules/react-native/Libraries/ART/ART.xcodeproj and drag ART.xcodeproj into the Libraries

Now Open the ART.xcodeproj and navigate to Products. You will see libART.a. Click on the Project in the left sidebar (PieChartExample in this case), now find Build Phase tab in the workspace area where you can see Link Binary With Libraries. (Please make note that  you have selected the Project and then opening the Build Phase)

Now drag the libART.a file into the Link Binary With Libraries.

That’s it! Now you are good to go. Try to build your project again and I should work now. For more about Linking Libraries, you can visit here.

That was the solution to the problem No component found for view with name “ARTShape”. If you have any doubt or you want to share something about the topic you can comment below or contact us here. There will be more posts coming soon. Stay tuned!

Hope you liked it. 🙂

How useful was this post?

Click on a star to rate us!

Average rating / 5. Vote count:

As you found this post useful...

Follow us on social media!

We are sorry that this post was not useful for you!

Let us improve this post!

0 replies

Leave a Reply

Want to join the discussion?   Feel free to contribute!

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.