Check out example codes for "kotlin toast.makeText non of the arguments supplied". It will help you in understanding the concepts better.

Code Example 1

//In Activity use: 
Toast.makeText([email protected]_ACTIVITY_NAME, "your message", Toast.LENGTH_LONG).show()
    
//In Fragments use: 
Toast.makeText(requireActivity(), "your message", Toast.LENGTH_LONG).show()
 
Your problem will be solved...

Learn ReactJs, React Native from akashmittal.com