Check out example codes for "kotlin android intent pass data". It will help you in understanding the concepts better.

Code Example 1

//Send value from HomeActivity

val intent = Intent([email protected],ProfileActivity::class.java)
intent.putExtra("Username","John Doe")
startActivity(intent)

//Get values in ProfileActivity

val profileName=intent.getStringExtra("Username")

Learn ReactJs, React Native from akashmittal.com