Check out example codes for "android access main toolbar in fragment". It will help you in understanding the concepts better.

Code Example 1

var toolbar = activity.findViewById<Toolbar>(R.id.toolbar)
    toolbar.setTitle("Rashid")

Learn ReactJs, React Native from akashmittal.com