Check out example codes for "input get button uibutton". It will help you in understanding the concepts better.

Code Example 1

public void ButtonClick()
    {                 
    	//Do whatever you want here             
    }

Learn ReactJs, React Native from akashmittal.com