'check if point is within circle in react native maps

I have geofencing code to check that point is exist or not in polygon. but that is not working for circle please help. thanks. here is my polygon geofencing code

GeoFencing.containsLocation(point, arr)
                .then(() => {
                  console.log("point is within polygon");              
                })
                .catch(() => {
                  console.log("point is not in polygon");
                })


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source