Check out example codes for "toast in kotlin". It will help you in understanding the concepts better.

Code Example 1

Toast.makeText(this, ".....", Toast.LENGTH_SHORT).show

Code Example 2

Toast.makeText(applicationContext, "Hello", Toast.LENGTH_LONG).show()

Learn ReactJs, React Native from akashmittal.com