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

Code Example 1

using UnityEngine;  using System.Collections; using UnityEngine.UI;  public class Radar : MonoBehaviour {   public Image Arrow;  void OnTriggerEnter( Collider other) {      if (other.gameObject.tag == "Enemy")          Arrow.gameObject.SetActive(true);  } }

Learn ReactJs, React Native from akashmittal.com