Check out example codes for "get product image woocommerce". It will help you in understanding the concepts better.
Code Example 1
// Use $post->ID to get from post object
$id = $loop->post->ID
$image = wp_get_attachment_image_src( get_post_thumbnail_id( $id ), 'single-post-thumbnail' );
<img src="<?php echo $image[0]; ?>" data-id="<?php echo $id; ?>" />
Learn ReactJs, React Native from akashmittal.com