QuestionnaireContent.Item
Renders the current questionnaire item for paged mode, automatically handling field type selection and conditional logic.
Overview
The QuestionnaireContent.Item component automatically renders the current questionnaire item based on its FHIR type, handles conditional logic evaluation, and provides real-time validation feedback. It serves as the main content renderer for paged questionnaire navigation.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
style | StyleProp<ViewStyle> | undefined | Custom styles for the item container |
...viewProps | ViewProps | - | All other React Native View props (testID, accessible, etc.) |
Features
- Automatic Field Rendering: Selects appropriate field component based on FHIR item type
- Conditional Logic: Evaluates
enableWhenrules in real-time - Validation Integration: Shows validation errors and required field indicators
- Accessibility Support: Proper form field semantics and screen reader support
- Custom Styling: Full control over item container appearance