Check out example codes for "Caused by: android.view.InflateException: Binary XML file line". It will help you in understanding the concepts better.

Code Example 1

Replace in your .xml

app:srcCompat="@drawable/ic_demo"

with

android:src="@drawable/ic_demo"

Learn ReactJs, React Native from akashmittal.com