Check out example codes for "unity change the source image or image". It will help you in understanding the concepts better.

Code Example 1

public Image test;
public Sprite example;

void Start()
{
 test.sprite = example; //change the source image of the image "test" to the sprite "example" 
}

Learn ReactJs, React Native from akashmittal.com