Skip to content
GuidesToolkitAPI

GeometryEditorProps

GeometryEditorProps = object

Defined in: packages/expo-arcgis/src/ExpoArcgis.types.ts:2486

optional active?: boolean

Defined in: packages/expo-arcgis/src/ExpoArcgis.types.ts:2490

When true (default) editing is started with type; set false to stop.


optional onGeometryChange?: (geometry) => void

Defined in: packages/expo-arcgis/src/ExpoArcgis.types.ts:2494

Called as the sketch geometry changes (null when empty / cleared).

Geometry | null

void


optional onInteractionPreview?: (preview) => void

Defined in: packages/expo-arcgis/src/ExpoArcgis.types.ts:2501

Called while a gesture is in flight with the geometry it would produce, and null once it ends (ArcGIS 300.1). onGeometryChange only fires once the edit is committed, so this is what to use for live feedback — validating a shape mid-drag, or enabling a control only when the pending result is acceptable.

GeometryEditorInteractionPreview | null

void


optional tool?: GeometryEditorTool

Defined in: packages/expo-arcgis/src/ExpoArcgis.types.ts:2492

Interaction tool (default vertex). Shape tools (arrow/ellipse/…) sketch by dragging.


type: GeometryEditorType

Defined in: packages/expo-arcgis/src/ExpoArcgis.types.ts:2488

The kind of geometry to sketch.