Check out example codes for "javafx load image from resources". It will help you in understanding the concepts better.

Code Example 1

Image image = new Image("/path/to/your/resource/in/your/project");
ImageView imageView = new ImageView(image);

Learn ReactJs, React Native from akashmittal.com