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

Code Example 1

val boton : Button = findViewById(R.id.boton)
boton.setOnClickListener {
            display.text = diceOne.roll().toString()

Learn ReactJs, React Native from akashmittal.com