Broken HostnameVerifier for SSL

App is allowing All Hostnames, it does not verify if the certificate is issued for the URL that connecting to. For example, when a client connects to example.com, it will accept a server certificate issued for some-other-domain.com.
is there any way i can verify the hostname in expo?
please help me to solve this problem.