import { NativeModules } from 'react-native'; type MapplsGeofenceType = { openGeoFenceWidget(map: GeoFenceProps): Promise; POLYGON_CREATION_MODE_DRAW: number; POLYGON_CREATION_MODE_TAP: number; POLYGON_TYPE_NORMAL:string; POLYGON_TYPE_QUADRILATERAL: string; CONVERT_POINTS_ORIENTATION_NONE: string; CONVERT_POINTS_ORIENTATION_ANTICLOCKWISE: string; CONVERT_POINTS_ORIENTATION_CLOCKWISE: string; }; type GeoFence = { isPolygon: boolean, circleRadius: number, circleCenter: Array, polygon: Array>>, polygonType:string }; type GeoFenceProps = { circleFillColor: string, circleFillOutlineColor: string, circleOutlineWidth: number, draggingLineColor: string, enableCircleDrag: boolean, maxRadius: number, minRadius: number, polygonDrawingBackgroundColor: string, polygonDrawingLineColor: string, polygonFillColor: string, polygonFillOutlineColor: string, polygonOutlineWidth: number, radiusInterval: number, seekbarCornerRadius: number, polygonCreationMode: number, toolbarTitle: string, toolbarColor: string, toolbarTintColor: string, initialiseGeoFence: GeoFence, simplifyOnIntersection: boolean, maxEdgesInPolygon: number, convertPointsToClockWise:string, doneButtonColor: string, doneButtonTintColor: string }; const { MapplsGeofence } = NativeModules; export default MapplsGeofence as MapplsGeofenceType;