Check out example codes for "wordpress get posts with meta data rest api". It will help you in understanding the concepts better.

Code Example 1

register_rest_field( 'post', 'metadata', array(
    'get_callback' => function ( $data ) {
        return get_post_meta( $data['id'], '', '' );
    }, ));

Learn ReactJs, React Native from akashmittal.com