Check out example codes for "add border to image android". It will help you in understanding the concepts better.

Code Example 1

<imageview     android:layout_width="wrap_content"     android:layout_height="wrap_content"     android:src="@drawable/red_minus_icon"     android:background="#000000"     android:padding="1dp"/>

Learn ReactJs, React Native from akashmittal.com