Check out example codes for "imagesbutton how to set background". It will help you in understanding the concepts better.

Code Example 1

imageButton.setBackground(this.getDrawable(R.drawable.your_image));

Learn ReactJs, React Native from akashmittal.com