Skip to content
GuidesToolkitAPI

FeatureFormViewProps

FeatureFormViewProps = ViewProps & object

Defined in: packages/expo-arcgis-toolkit/src/FeatureFormView.tsx:14

optional editingButtons?: "automatic" | "visible" | "hidden"

The Save and Discard buttons: 'automatic' shows them once there are edits.

'automatic'

ios — on Android, see showFormActions.

feature: FeatureRef

The feature to edit: the ref of a feature from a view’s identify, in a feature layer that defines a form.

optional isNavigationEnabled?: boolean

Lets the user open related records’ forms and utility network associations.

true

optional onDismiss?: () => void

Called when the user closes the form. On iOS the close button shows only when this is set (the Toolkit’s isPresented binding).

void

optional onEditingEvent?: (event) => void

Called when the user saves or discards edits with the form’s buttons. Saving keeps the edits on the feature’s table; apply them to the service then, as in the Toolkit’s examples: feature.getLayer(), then applyEdits() on its service geodatabase or on the layer.

FeatureFormEditingEvent

void

optional showCloseIcon?: boolean

Shows the close icon.

true

android — on iOS, see onDismiss.

optional showFormActions?: boolean

Shows the save and discard actions.

true

android

optional validationErrorVisibility?: "automatic" | "visible"

When validation errors show: once a field is touched or a save is tried, or always.

'automatic'