Check out example codes for "android create snackbar". It will help you in understanding the concepts better.

Code Example 1

Snackbar.make(fragmentView, text, Snackbar.LENGTH_LONG).setAction("Action", null /* replace with your action or leave null to just display text*/).show();

Learn ReactJs, React Native from akashmittal.com