Check out example codes for "android get last crash adb". It will help you in understanding the concepts better.

Code Example 1

adb logcat -b crash

Learn ReactJs, React Native from akashmittal.com